Package net.minecraft.client.gl
Class GlResourceManager
java.lang.Object
net.minecraft.client.gl.GlResourceManager
- All Implemented Interfaces:
CommandEncoder
- Mappings:
Namespace Name named net/minecraft/client/gl/GlResourceManager
intermediary net/minecraft/class_10860
official fjd
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlBackend
private @Nullable RenderPipeline
private @Nullable ShaderProgram
private static final Logger
private boolean
private final int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearColorAndDepthTextures
(GpuTexture colorAttachment, int color, GpuTexture depthAttachment, double depth) void
clearColorTexture
(GpuTexture texture, int color) void
clearDepthTexture
(GpuTexture texture, double depth) void
void
copyTextureToBuffer
(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel) void
copyTextureToBuffer
(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel, int intoX, int intoY, int width, int height) void
copyTextureToTexture
(GpuTexture target, GpuTexture source, int mipLevel, int intoX, int intoY, int sourceX, int sourceY, int width, int height) createRenderPass
(GpuTexture colorAttachment, OptionalInt clearColor) createRenderPass
(GpuTexture colorAttachment, OptionalInt clearColor, @Nullable GpuTexture depthAttachment, OptionalDouble clearDepth) protected void
drawBoundObjectWithRenderPass
(RenderPassImpl pass, int first, int count, VertexFormat.IndexType indexType) protected void
drawObjectsWithRenderPass
(RenderPassImpl pass, Collection<RenderPass.RenderObject> objects, @Nullable GpuBuffer indexBuffer, VertexFormat.IndexType indexType) private void
drawObjectWithRenderPass
(RenderPassImpl pass, int first, int count, VertexFormat.IndexType indexType, CompiledShaderPipeline pipeline) protected GlBackend
void
presentTexture
(GpuTexture texture) readBuffer
(GpuBuffer source) readBuffer
(GpuBuffer source, int offset, int count) private void
setPipelineAndApplyState
(RenderPipeline renderPipeline) private boolean
void
writeToBuffer
(GpuBuffer target, ByteBuffer source, int offset) void
writeToTexture
(GpuTexture target, IntBuffer source, NativeImage.Format format, int mipLevel, int intoX, int intoY, int width, int height) void
writeToTexture
(GpuTexture target, NativeImage source) void
writeToTexture
(GpuTexture target, NativeImage source, int mipLevel, int intoX, int intoY, int width, int height, int x, int y)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gl/GlResourceManager;LOGGER:Lorg/slf4j/Logger;
intermediary field_57843
Lnet/minecraft/class_10860;field_57843:Lorg/slf4j/Logger;
official a
Lfjd;a:Lorg/slf4j/Logger;
-
backend
- Mappings:
Namespace Name Mixin selector named backend
Lnet/minecraft/client/gl/GlResourceManager;backend:Lnet/minecraft/client/gl/GlBackend;
intermediary field_57844
Lnet/minecraft/class_10860;field_57844:Lnet/minecraft/class_10865;
official b
Lfjd;b:Lfjg;
-
temporaryFb1
private final int temporaryFb1- Mappings:
Namespace Name Mixin selector named temporaryFb1
Lnet/minecraft/client/gl/GlResourceManager;temporaryFb1:I
intermediary field_57845
Lnet/minecraft/class_10860;field_57845:I
official c
Lfjd;c:I
-
temporaryFb2
private final int temporaryFb2- Mappings:
Namespace Name Mixin selector named temporaryFb2
Lnet/minecraft/client/gl/GlResourceManager;temporaryFb2:I
intermediary field_57846
Lnet/minecraft/class_10860;field_57846:I
official d
Lfjd;d:I
-
currentPipeline
- Mappings:
Namespace Name Mixin selector named currentPipeline
Lnet/minecraft/client/gl/GlResourceManager;currentPipeline:Lcom/mojang/blaze3d/pipeline/RenderPipeline;
intermediary field_57847
Lnet/minecraft/class_10860;field_57847:Lcom/mojang/blaze3d/pipeline/RenderPipeline;
official e
Lfjd;e:Lcom/mojang/blaze3d/pipeline/RenderPipeline;
-
renderPassOpen
private boolean renderPassOpen- Mappings:
Namespace Name Mixin selector named renderPassOpen
Lnet/minecraft/client/gl/GlResourceManager;renderPassOpen:Z
intermediary field_57848
Lnet/minecraft/class_10860;field_57848:Z
official f
Lfjd;f:Z
-
currentProgram
- Mappings:
Namespace Name Mixin selector named currentProgram
Lnet/minecraft/client/gl/GlResourceManager;currentProgram:Lnet/minecraft/client/gl/ShaderProgram;
intermediary field_57849
Lnet/minecraft/class_10860;field_57849:Lnet/minecraft/class_5944;
official g
Lfjd;g:Lfjh;
-
-
Constructor Details
-
GlResourceManager
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gl/GlResourceManager;<init>(Lnet/minecraft/client/gl/GlBackend;)V
intermediary <init>
Lnet/minecraft/class_10860;<init>(Lnet/minecraft/class_10865;)V
official <init>
Lfjd;<init>(Lfjg;)V
-
-
Method Details
-
createRenderPass
- Specified by:
createRenderPass
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;)Lcom/mojang/blaze3d/systems/RenderPass;
intermediary createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;)Lcom/mojang/blaze3d/systems/RenderPass;
official createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;)Lcom/mojang/blaze3d/systems/RenderPass;
-
createRenderPass
public RenderPass createRenderPass(GpuTexture colorAttachment, OptionalInt clearColor, @Nullable @Nullable GpuTexture depthAttachment, OptionalDouble clearDepth) - Specified by:
createRenderPass
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalDouble;)Lcom/mojang/blaze3d/systems/RenderPass;
intermediary createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalDouble;)Lcom/mojang/blaze3d/systems/RenderPass;
official createRenderPass
Lcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalDouble;)Lcom/mojang/blaze3d/systems/RenderPass;
-
clearColorTexture
- Specified by:
clearColorTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named clearColorTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorTexture(Lcom/mojang/blaze3d/textures/GpuTexture;I)V
intermediary clearColorTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorTexture(Lcom/mojang/blaze3d/textures/GpuTexture;I)V
official clearColorTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorTexture(Lcom/mojang/blaze3d/textures/GpuTexture;I)V
-
clearColorAndDepthTextures
public void clearColorAndDepthTextures(GpuTexture colorAttachment, int color, GpuTexture depthAttachment, double depth) - Specified by:
clearColorAndDepthTextures
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named clearColorAndDepthTextures
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)V
intermediary clearColorAndDepthTextures
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)V
official clearColorAndDepthTextures
Lcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)V
-
clearDepthTexture
- Specified by:
clearDepthTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named clearDepthTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)V
intermediary clearDepthTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)V
official clearDepthTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)V
-
writeToBuffer
- Specified by:
writeToBuffer
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named writeToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)V
intermediary writeToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)V
official writeToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)V
-
readBuffer
- Specified by:
readBuffer
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
intermediary readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
official readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
-
readBuffer
- Specified by:
readBuffer
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
intermediary readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
official readBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
-
writeToTexture
- Specified by:
writeToTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/client/texture/NativeImage;)V
intermediary writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/class_1011;)V
official writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lfkf;)V
-
writeToTexture
public void writeToTexture(GpuTexture target, NativeImage source, int mipLevel, int intoX, int intoY, int width, int height, int x, int y) - Specified by:
writeToTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/client/texture/NativeImage;IIIIIII)V
intermediary writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/class_1011;IIIIIII)V
official writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lfkf;IIIIIII)V
-
writeToTexture
public void writeToTexture(GpuTexture target, IntBuffer source, NativeImage.Format format, int mipLevel, int intoX, int intoY, int width, int height) - Specified by:
writeToTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/nio/IntBuffer;Lnet/minecraft/client/texture/NativeImage$Format;IIIII)V
intermediary writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/nio/IntBuffer;Lnet/minecraft/class_1011$class_1012;IIIII)V
official writeToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/nio/IntBuffer;Lfkf$a;IIIII)V
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel) - Specified by:
copyTextureToBuffer
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;I)V
intermediary copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;I)V
official copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;I)V
-
copyTextureToBuffer
public void copyTextureToBuffer(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel, int intoX, int intoY, int width, int height) - Specified by:
copyTextureToBuffer
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;IIIII)V
intermediary copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;IIIII)V
official copyTextureToBuffer
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;IIIII)V
-
copyTextureToTexture
public void copyTextureToTexture(GpuTexture target, GpuTexture source, int mipLevel, int intoX, int intoY, int sourceX, int sourceY, int width, int height) - Specified by:
copyTextureToTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named copyTextureToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)V
intermediary copyTextureToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)V
official copyTextureToTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)V
-
presentTexture
- Specified by:
presentTexture
in interfaceCommandEncoder
- Mappings:
Namespace Name Mixin selector named presentTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;presentTexture(Lcom/mojang/blaze3d/textures/GpuTexture;)V
intermediary presentTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;presentTexture(Lcom/mojang/blaze3d/textures/GpuTexture;)V
official presentTexture
Lcom/mojang/blaze3d/systems/CommandEncoder;presentTexture(Lcom/mojang/blaze3d/textures/GpuTexture;)V
-
drawObjectsWithRenderPass
protected void drawObjectsWithRenderPass(RenderPassImpl pass, Collection<RenderPass.RenderObject> objects, @Nullable @Nullable GpuBuffer indexBuffer, @Nullable VertexFormat.IndexType indexType) - Mappings:
Namespace Name Mixin selector named drawObjectsWithRenderPass
Lnet/minecraft/client/gl/GlResourceManager;drawObjectsWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;Ljava/util/Collection;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$IndexType;)V
intermediary method_68355
Lnet/minecraft/class_10860;method_68355(Lnet/minecraft/class_10866;Ljava/util/Collection;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$class_5595;)V
official a
Lfjd;a(Lfji;Ljava/util/Collection;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$a;)V
-
drawBoundObjectWithRenderPass
protected void drawBoundObjectWithRenderPass(RenderPassImpl pass, int first, int count, @Nullable VertexFormat.IndexType indexType) - Mappings:
Namespace Name Mixin selector named drawBoundObjectWithRenderPass
Lnet/minecraft/client/gl/GlResourceManager;drawBoundObjectWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;IILcom/mojang/blaze3d/vertex/VertexFormat$IndexType;)V
intermediary method_68352
Lnet/minecraft/class_10860;method_68352(Lnet/minecraft/class_10866;IILcom/mojang/blaze3d/vertex/VertexFormat$class_5595;)V
official a
Lfjd;a(Lfji;IILcom/mojang/blaze3d/vertex/VertexFormat$a;)V
-
drawObjectWithRenderPass
private void drawObjectWithRenderPass(RenderPassImpl pass, int first, int count, @Nullable VertexFormat.IndexType indexType, CompiledShaderPipeline pipeline) - Mappings:
Namespace Name Mixin selector named drawObjectWithRenderPass
Lnet/minecraft/client/gl/GlResourceManager;drawObjectWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;IILcom/mojang/blaze3d/vertex/VertexFormat$IndexType;Lnet/minecraft/client/gl/CompiledShaderPipeline;)V
intermediary method_68353
Lnet/minecraft/class_10860;method_68353(Lnet/minecraft/class_10866;IILcom/mojang/blaze3d/vertex/VertexFormat$class_5595;Lnet/minecraft/class_10867;)V
official a
Lfjd;a(Lfji;IILcom/mojang/blaze3d/vertex/VertexFormat$a;Lfjj;)V
-
setupRenderPass
- Mappings:
Namespace Name Mixin selector named setupRenderPass
Lnet/minecraft/client/gl/GlResourceManager;setupRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;)Z
intermediary method_68351
Lnet/minecraft/class_10860;method_68351(Lnet/minecraft/class_10866;)Z
official a
Lfjd;a(Lfji;)Z
-
setPipelineAndApplyState
- Mappings:
Namespace Name Mixin selector named setPipelineAndApplyState
Lnet/minecraft/client/gl/GlResourceManager;setPipelineAndApplyState(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)V
intermediary method_68356
Lnet/minecraft/class_10860;method_68356(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)V
official a
Lfjd;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)V
-
closePass
public void closePass()- Mappings:
Namespace Name Mixin selector named closePass
Lnet/minecraft/client/gl/GlResourceManager;closePass()V
intermediary method_68346
Lnet/minecraft/class_10860;method_68346()V
official a
Lfjd;a()V
-
getBackend
- Mappings:
Namespace Name Mixin selector named getBackend
Lnet/minecraft/client/gl/GlResourceManager;getBackend()Lnet/minecraft/client/gl/GlBackend;
intermediary method_68369
Lnet/minecraft/class_10860;method_68369()Lnet/minecraft/class_10865;
official b
Lfjd;b()Lfjg;
-