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/GlResourceManagerintermediary net/minecraft/class_10860official fjd
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GlBackendprivate @Nullable RenderPipelineprivate @Nullable ShaderProgramprivate static final Loggerprivate booleanprivate final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearColorAndDepthTextures(GpuTexture colorAttachment, int color, GpuTexture depthAttachment, double depth) voidclearColorTexture(GpuTexture texture, int color) voidclearDepthTexture(GpuTexture texture, double depth) voidvoidcopyTextureToBuffer(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel) voidcopyTextureToBuffer(GpuTexture target, GpuBuffer source, int offset, Runnable dataUploadedCallback, int mipLevel, int intoX, int intoY, int width, int height) voidcopyTextureToTexture(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 voiddrawBoundObjectWithRenderPass(RenderPassImpl pass, int first, int count, VertexFormat.IndexType indexType) protected voiddrawObjectsWithRenderPass(RenderPassImpl pass, Collection<RenderPass.RenderObject> objects, @Nullable GpuBuffer indexBuffer, VertexFormat.IndexType indexType) private voiddrawObjectWithRenderPass(RenderPassImpl pass, int first, int count, VertexFormat.IndexType indexType, CompiledShaderPipeline pipeline) protected GlBackendvoidpresentTexture(GpuTexture texture) readBuffer(GpuBuffer source) readBuffer(GpuBuffer source, int offset, int count) private voidsetPipelineAndApplyState(RenderPipeline renderPipeline) private booleanvoidwriteToBuffer(GpuBuffer target, ByteBuffer source, int offset) voidwriteToTexture(GpuTexture target, IntBuffer source, NativeImage.Format format, int mipLevel, int intoX, int intoY, int width, int height) voidwriteToTexture(GpuTexture target, NativeImage source) voidwriteToTexture(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 LOGGERLnet/minecraft/client/gl/GlResourceManager;LOGGER:Lorg/slf4j/Logger;intermediary field_57843Lnet/minecraft/class_10860;field_57843:Lorg/slf4j/Logger;official aLfjd;a:Lorg/slf4j/Logger;
-
backend
- Mappings:
Namespace Name Mixin selector named backendLnet/minecraft/client/gl/GlResourceManager;backend:Lnet/minecraft/client/gl/GlBackend;intermediary field_57844Lnet/minecraft/class_10860;field_57844:Lnet/minecraft/class_10865;official bLfjd;b:Lfjg;
-
temporaryFb1
private final int temporaryFb1- Mappings:
Namespace Name Mixin selector named temporaryFb1Lnet/minecraft/client/gl/GlResourceManager;temporaryFb1:Iintermediary field_57845Lnet/minecraft/class_10860;field_57845:Iofficial cLfjd;c:I
-
temporaryFb2
private final int temporaryFb2- Mappings:
Namespace Name Mixin selector named temporaryFb2Lnet/minecraft/client/gl/GlResourceManager;temporaryFb2:Iintermediary field_57846Lnet/minecraft/class_10860;field_57846:Iofficial dLfjd;d:I
-
currentPipeline
- Mappings:
Namespace Name Mixin selector named currentPipelineLnet/minecraft/client/gl/GlResourceManager;currentPipeline:Lcom/mojang/blaze3d/pipeline/RenderPipeline;intermediary field_57847Lnet/minecraft/class_10860;field_57847:Lcom/mojang/blaze3d/pipeline/RenderPipeline;official eLfjd;e:Lcom/mojang/blaze3d/pipeline/RenderPipeline;
-
renderPassOpen
private boolean renderPassOpen- Mappings:
Namespace Name Mixin selector named renderPassOpenLnet/minecraft/client/gl/GlResourceManager;renderPassOpen:Zintermediary field_57848Lnet/minecraft/class_10860;field_57848:Zofficial fLfjd;f:Z
-
currentProgram
- Mappings:
Namespace Name Mixin selector named currentProgramLnet/minecraft/client/gl/GlResourceManager;currentProgram:Lnet/minecraft/client/gl/ShaderProgram;intermediary field_57849Lnet/minecraft/class_10860;field_57849:Lnet/minecraft/class_5944;official gLfjd;g:Lfjh;
-
-
Constructor Details
-
GlResourceManager
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gl/GlResourceManager;<init>(Lnet/minecraft/client/gl/GlBackend;)Vintermediary <init>Lnet/minecraft/class_10860;<init>(Lnet/minecraft/class_10865;)Vofficial <init>Lfjd;<init>(Lfjg;)V
-
-
Method Details
-
createRenderPass
- Specified by:
createRenderPassin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named createRenderPassLcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;)Lcom/mojang/blaze3d/systems/RenderPass;intermediary createRenderPassLcom/mojang/blaze3d/systems/CommandEncoder;createRenderPass(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/util/OptionalInt;)Lcom/mojang/blaze3d/systems/RenderPass;official createRenderPassLcom/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:
createRenderPassin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named createRenderPassLcom/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 createRenderPassLcom/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 createRenderPassLcom/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:
clearColorTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named clearColorTextureLcom/mojang/blaze3d/systems/CommandEncoder;clearColorTexture(Lcom/mojang/blaze3d/textures/GpuTexture;I)Vintermediary clearColorTextureLcom/mojang/blaze3d/systems/CommandEncoder;clearColorTexture(Lcom/mojang/blaze3d/textures/GpuTexture;I)Vofficial clearColorTextureLcom/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:
clearColorAndDepthTexturesin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named clearColorAndDepthTexturesLcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)Vintermediary clearColorAndDepthTexturesLcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)Vofficial clearColorAndDepthTexturesLcom/mojang/blaze3d/systems/CommandEncoder;clearColorAndDepthTextures(Lcom/mojang/blaze3d/textures/GpuTexture;ILcom/mojang/blaze3d/textures/GpuTexture;D)V
-
clearDepthTexture
- Specified by:
clearDepthTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named clearDepthTextureLcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)Vintermediary clearDepthTextureLcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)Vofficial clearDepthTextureLcom/mojang/blaze3d/systems/CommandEncoder;clearDepthTexture(Lcom/mojang/blaze3d/textures/GpuTexture;D)V
-
writeToBuffer
- Specified by:
writeToBufferin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named writeToBufferLcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)Vintermediary writeToBufferLcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)Vofficial writeToBufferLcom/mojang/blaze3d/systems/CommandEncoder;writeToBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;Ljava/nio/ByteBuffer;I)V
-
readBuffer
- Specified by:
readBufferin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;intermediary readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;official readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
-
readBuffer
- Specified by:
readBufferin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;intermediary readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;official readBufferLcom/mojang/blaze3d/systems/CommandEncoder;readBuffer(Lcom/mojang/blaze3d/buffers/GpuBuffer;II)Lcom/mojang/blaze3d/buffers/GpuBuffer$ReadView;
-
writeToTexture
- Specified by:
writeToTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/client/texture/NativeImage;)Vintermediary writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/class_1011;)Vofficial writeToTextureLcom/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:
writeToTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/client/texture/NativeImage;IIIIIII)Vintermediary writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lnet/minecraft/class_1011;IIIIIII)Vofficial writeToTextureLcom/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:
writeToTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/nio/IntBuffer;Lnet/minecraft/client/texture/NativeImage$Format;IIIII)Vintermediary writeToTextureLcom/mojang/blaze3d/systems/CommandEncoder;writeToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Ljava/nio/IntBuffer;Lnet/minecraft/class_1011$class_1012;IIIII)Vofficial writeToTextureLcom/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:
copyTextureToBufferin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named copyTextureToBufferLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;I)Vintermediary copyTextureToBufferLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;I)Vofficial copyTextureToBufferLcom/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:
copyTextureToBufferin interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named copyTextureToBufferLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;IIIII)Vintermediary copyTextureToBufferLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToBuffer(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/buffers/GpuBuffer;ILjava/lang/Runnable;IIIII)Vofficial copyTextureToBufferLcom/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:
copyTextureToTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named copyTextureToTextureLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)Vintermediary copyTextureToTextureLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)Vofficial copyTextureToTextureLcom/mojang/blaze3d/systems/CommandEncoder;copyTextureToTexture(Lcom/mojang/blaze3d/textures/GpuTexture;Lcom/mojang/blaze3d/textures/GpuTexture;IIIIIII)V
-
presentTexture
- Specified by:
presentTexturein interfaceCommandEncoder- Mappings:
Namespace Name Mixin selector named presentTextureLcom/mojang/blaze3d/systems/CommandEncoder;presentTexture(Lcom/mojang/blaze3d/textures/GpuTexture;)Vintermediary presentTextureLcom/mojang/blaze3d/systems/CommandEncoder;presentTexture(Lcom/mojang/blaze3d/textures/GpuTexture;)Vofficial presentTextureLcom/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 drawObjectsWithRenderPassLnet/minecraft/client/gl/GlResourceManager;drawObjectsWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;Ljava/util/Collection;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$IndexType;)Vintermediary method_68355Lnet/minecraft/class_10860;method_68355(Lnet/minecraft/class_10866;Ljava/util/Collection;Lcom/mojang/blaze3d/buffers/GpuBuffer;Lcom/mojang/blaze3d/vertex/VertexFormat$class_5595;)Vofficial aLfjd;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 drawBoundObjectWithRenderPassLnet/minecraft/client/gl/GlResourceManager;drawBoundObjectWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;IILcom/mojang/blaze3d/vertex/VertexFormat$IndexType;)Vintermediary method_68352Lnet/minecraft/class_10860;method_68352(Lnet/minecraft/class_10866;IILcom/mojang/blaze3d/vertex/VertexFormat$class_5595;)Vofficial aLfjd;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 drawObjectWithRenderPassLnet/minecraft/client/gl/GlResourceManager;drawObjectWithRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;IILcom/mojang/blaze3d/vertex/VertexFormat$IndexType;Lnet/minecraft/client/gl/CompiledShaderPipeline;)Vintermediary method_68353Lnet/minecraft/class_10860;method_68353(Lnet/minecraft/class_10866;IILcom/mojang/blaze3d/vertex/VertexFormat$class_5595;Lnet/minecraft/class_10867;)Vofficial aLfjd;a(Lfji;IILcom/mojang/blaze3d/vertex/VertexFormat$a;Lfjj;)V
-
setupRenderPass
- Mappings:
Namespace Name Mixin selector named setupRenderPassLnet/minecraft/client/gl/GlResourceManager;setupRenderPass(Lnet/minecraft/client/gl/RenderPassImpl;)Zintermediary method_68351Lnet/minecraft/class_10860;method_68351(Lnet/minecraft/class_10866;)Zofficial aLfjd;a(Lfji;)Z
-
setPipelineAndApplyState
- Mappings:
Namespace Name Mixin selector named setPipelineAndApplyStateLnet/minecraft/client/gl/GlResourceManager;setPipelineAndApplyState(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Vintermediary method_68356Lnet/minecraft/class_10860;method_68356(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)Vofficial aLfjd;a(Lcom/mojang/blaze3d/pipeline/RenderPipeline;)V
-
closePass
public void closePass()- Mappings:
Namespace Name Mixin selector named closePassLnet/minecraft/client/gl/GlResourceManager;closePass()Vintermediary method_68346Lnet/minecraft/class_10860;method_68346()Vofficial aLfjd;a()V
-
getBackend
- Mappings:
Namespace Name Mixin selector named getBackendLnet/minecraft/client/gl/GlResourceManager;getBackend()Lnet/minecraft/client/gl/GlBackend;intermediary method_68369Lnet/minecraft/class_10860;method_68369()Lnet/minecraft/class_10865;official bLfjd;b()Lfjg;
-