Class GlResourceManager

java.lang.Object
net.minecraft.client.gl.GlResourceManager
All Implemented Interfaces:
CommandEncoder

@Environment(CLIENT) public class GlResourceManager extends Object implements CommandEncoder
Mappings:
Namespace Name
named net/minecraft/client/gl/GlResourceManager
intermediary net/minecraft/class_10860
official fjd
  • Field Details

    • LOGGER

      private static final Logger 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

      private final GlBackend 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

      @Nullable private @Nullable RenderPipeline 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

      @Nullable private @Nullable ShaderProgram 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

      protected GlResourceManager(GlBackend backend)
      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

      public RenderPass createRenderPass(GpuTexture gpuTexture, OptionalInt optionalInt)
      Specified by:
      createRenderPass in interface CommandEncoder
    • createRenderPass

      public RenderPass createRenderPass(GpuTexture gpuTexture, OptionalInt optionalInt, @Nullable @Nullable GpuTexture gpuTexture2, OptionalDouble optionalDouble)
      Specified by:
      createRenderPass in interface CommandEncoder
    • clearColorTexture

      public void clearColorTexture(GpuTexture gpuTexture, int int2)
      Specified by:
      clearColorTexture in interface CommandEncoder
    • clearColorAndDepthTextures

      public void clearColorAndDepthTextures(GpuTexture gpuTexture, int int2, GpuTexture gpuTexture2, double double2)
      Specified by:
      clearColorAndDepthTextures in interface CommandEncoder
    • clearDepthTexture

      public void clearDepthTexture(GpuTexture gpuTexture, double double2)
      Specified by:
      clearDepthTexture in interface CommandEncoder
    • writeToBuffer

      public void writeToBuffer(GpuBuffer gpuBuffer, ByteBuffer byteBuffer, int int2)
      Specified by:
      writeToBuffer in interface CommandEncoder
    • readBuffer

      public GpuBuffer.ReadView readBuffer(GpuBuffer gpuBuffer)
      Specified by:
      readBuffer in interface CommandEncoder
    • readBuffer

      public GpuBuffer.ReadView readBuffer(GpuBuffer gpuBuffer, int int2, int int3)
      Specified by:
      readBuffer in interface CommandEncoder
    • writeToTexture

      public void writeToTexture(GpuTexture gpuTexture, NativeImage nativeImage)
      Specified by:
      writeToTexture in interface CommandEncoder
    • writeToTexture

      public void writeToTexture(GpuTexture gpuTexture, NativeImage nativeImage, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
      Specified by:
      writeToTexture in interface CommandEncoder
    • writeToTexture

      public void writeToTexture(GpuTexture gpuTexture, IntBuffer intBuffer, NativeImage.Format format, int int2, int int3, int int4, int int5, int int6)
      Specified by:
      writeToTexture in interface CommandEncoder
    • copyTextureToBuffer

      public void copyTextureToBuffer(GpuTexture gpuTexture, GpuBuffer gpuBuffer, int int2, Runnable runnable, int int3)
      Specified by:
      copyTextureToBuffer in interface CommandEncoder
    • copyTextureToBuffer

      public void copyTextureToBuffer(GpuTexture gpuTexture, GpuBuffer gpuBuffer, int int2, Runnable runnable, int int3, int int4, int int5, int int6, int int7)
      Specified by:
      copyTextureToBuffer in interface CommandEncoder
    • copyTextureToTexture

      public void copyTextureToTexture(GpuTexture gpuTexture, GpuTexture gpuTexture2, int int2, int int3, int int4, int int5, int int6, int int7, int int8)
      Specified by:
      copyTextureToTexture in interface CommandEncoder
    • presentTexture

      public void presentTexture(GpuTexture gpuTexture)
      Specified by:
      presentTexture in interface CommandEncoder
    • drawObjectsWithRenderPass

      protected void drawObjectsWithRenderPass(RenderPassImpl renderPassImpl, Collection<RenderPass.RenderObject> collection, @Nullable @Nullable GpuBuffer gpuBuffer, @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 renderPassImpl, int int2, int int3, @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 renderPassImpl, int int2, int int3, @Nullable VertexFormat.IndexType indexType, CompiledShaderPipeline compiledShaderPipeline)
      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

      private boolean setupRenderPass(RenderPassImpl pass)
      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

      private void setPipelineAndApplyState(RenderPipeline renderPipeline)
      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

      protected GlBackend 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;