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 colorAttachment, OptionalInt clearColor)
      Specified by:
      createRenderPass in interface CommandEncoder
      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 interface CommandEncoder
      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

      public void clearColorTexture(GpuTexture texture, int color)
      Specified by:
      clearColorTexture in interface CommandEncoder
      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 interface CommandEncoder
      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

      public void clearDepthTexture(GpuTexture texture, double depth)
      Specified by:
      clearDepthTexture in interface CommandEncoder
      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

      public void writeToBuffer(GpuBuffer target, ByteBuffer source, int offset)
      Specified by:
      writeToBuffer in interface CommandEncoder
      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

      public GpuBuffer.ReadView readBuffer(GpuBuffer source)
      Specified by:
      readBuffer in interface CommandEncoder
      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

      public GpuBuffer.ReadView readBuffer(GpuBuffer source, int offset, int count)
      Specified by:
      readBuffer in interface CommandEncoder
      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

      public void writeToTexture(GpuTexture target, NativeImage source)
      Specified by:
      writeToTexture in interface CommandEncoder
      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 interface CommandEncoder
      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 interface CommandEncoder
      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 interface CommandEncoder
      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 interface CommandEncoder
      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 interface CommandEncoder
      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

      public void presentTexture(GpuTexture texture)
      Specified by:
      presentTexture in interface CommandEncoder
      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

      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;