Class RenderSystem

java.lang.Object
com.mojang.blaze3d.systems.RenderSystem

@Environment(CLIENT) public class RenderSystem extends Object
Mappings:
Namespace Name
named com/mojang/blaze3d/systems/RenderSystem
intermediary com/mojang/blaze3d/systems/RenderSystem
official com/mojang/blaze3d/systems/RenderSystem
  • Field Details

    • LOGGER

      static final Logger LOGGER
    • MINIMUM_ATLAS_TEXTURE_SIZE

      public static final int MINIMUM_ATLAS_TEXTURE_SIZE
      See Also:
    • PROJECTION_MATRIX_UBO_SIZE

      public static final int PROJECTION_MATRIX_UBO_SIZE
    • renderThread

      @Nullable private static @Nullable Thread renderThread
    • DEVICE

      @Nullable private static @Nullable GpuDevice DEVICE
    • lastDrawTime

      private static double lastDrawTime
    • sharedSequential

      private static final RenderSystem.ShapeIndexBuffer sharedSequential
    • sharedSequentialQuad

      private static final RenderSystem.ShapeIndexBuffer sharedSequentialQuad
    • sharedSequentialLines

      private static final RenderSystem.ShapeIndexBuffer sharedSequentialLines
    • projectionType

      private static ProjectionType projectionType
    • savedProjectionType

      private static ProjectionType savedProjectionType
    • modelViewStack

      private static final Matrix4fStack modelViewStack
    • textureMatrix

      private static Matrix4f textureMatrix
    • TEXTURE_COUNT

      public static final int TEXTURE_COUNT
      See Also:
    • shaderTextures

      private static final RenderSystem.class_12114[] shaderTextures
    • shaderFog

      @Nullable private static @Nullable GpuBufferSlice shaderFog
    • shaderLightDirections

      @Nullable private static @Nullable GpuBufferSlice shaderLightDirections
    • projectionMatrixBuffer

      @Nullable private static @Nullable GpuBufferSlice projectionMatrixBuffer
    • savedProjectionMatrixBuffer

      @Nullable private static @Nullable GpuBufferSlice savedProjectionMatrixBuffer
    • apiDescription

      private static String apiDescription
    • pollEventsWaitStart

      private static final AtomicLong pollEventsWaitStart
    • pollingEvents

      private static final AtomicBoolean pollingEvents
    • PENDING_FENCES

      private static final ArrayListDeque<RenderSystem.Task> PENDING_FENCES
    • outputColorTextureOverride

      @Nullable public static @Nullable GpuTextureView outputColorTextureOverride
    • outputDepthTextureOverride

      @Nullable public static @Nullable GpuTextureView outputDepthTextureOverride
    • globalSettingsUniform

      @Nullable private static @Nullable GpuBuffer globalSettingsUniform
    • dynamicUniforms

      @Nullable private static @Nullable DynamicUniforms dynamicUniforms
    • scissorStateForRenderTypeDraws

      private static final ScissorState scissorStateForRenderTypeDraws
    • samplerCache

      private static SamplerCache samplerCache
  • Constructor Details

    • RenderSystem

      public RenderSystem()
  • Method Details

    • getSamplerCache

      public static SamplerCache getSamplerCache()
    • initRenderThread

      public static void initRenderThread()
    • isOnRenderThread

      public static boolean isOnRenderThread()
    • assertOnRenderThread

      public static void assertOnRenderThread()
    • constructThreadException

      private static IllegalStateException constructThreadException()
    • pollEvents

      private static void pollEvents()
    • isFrozenAtPollEvents

      public static boolean isFrozenAtPollEvents()
    • flipFrame

      public static void flipFrame(Window window, @Nullable @Nullable TracyFrameCapturer capturer)
      Mappings:
      Namespace Name Mixin selector
      named flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lnet/minecraft/client/util/Window;Lnet/minecraft/client/util/tracy/TracyFrameCapturer;)V
      intermediary flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lnet/minecraft/class_1041;Lnet/minecraft/class_10219;)V
      official flipFrame Lcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lfvy;Lftt;)V
    • limitDisplayFPS

      public static void limitDisplayFPS(int fps)
      Mappings:
      Namespace Name Mixin selector
      named limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
      intermediary limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
      official limitDisplayFPS Lcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
    • setShaderFog

      public static void setShaderFog(GpuBufferSlice shaderFog)
      Mappings:
      Namespace Name Mixin selector
      named setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
      intermediary setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
      official setShaderFog Lcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
    • getShaderFog

      @Nullable public static @Nullable GpuBufferSlice getShaderFog()
    • setShaderLights

      public static void setShaderLights(GpuBufferSlice shaderLightDirections)
      Mappings:
      Namespace Name Mixin selector
      named setShaderLights Lcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
      intermediary setShaderLights Lcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
      official setShaderLights Lcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
    • getShaderLights

      @Nullable public static @Nullable GpuBufferSlice getShaderLights()
    • enableScissorForRenderTypeDraws

      public static void enableScissorForRenderTypeDraws(int int2, int int3, int int4, int int5)
    • disableScissorForRenderTypeDraws

      public static void disableScissorForRenderTypeDraws()
    • getScissorStateForRenderTypeDraws

      public static ScissorState getScissorStateForRenderTypeDraws()
    • getBackendDescription

      public static String getBackendDescription()
    • getApiDescription

      public static String getApiDescription()
    • initBackendSystem

      public static TimeSupplier.Nanoseconds initBackendSystem()
    • initRenderer

      public static void initRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier,ShaderType,String> shaderSourceGetter, boolean renderDebugLabels)
      Mappings:
      Namespace Name Mixin selector
      named initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
      intermediary initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
      official initRenderer Lcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
    • setErrorCallback

      public static void setErrorCallback(GLFWErrorCallbackI callback)
      Mappings:
      Namespace Name Mixin selector
      named setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
      intermediary setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
      official setErrorCallback Lcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
    • setupDefaultState

      public static void setupDefaultState()
    • setupOverlayColor

      public static void setupOverlayColor(@Nullable @Nullable GpuTextureView texture, @Nullable @Nullable GpuSampler gpuSampler)
      Mappings:
      Namespace Name Mixin selector
      named setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/client/gl/GpuSampler;)V
      intermediary setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/class_12137;)V
      official setupOverlayColor Lcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;Lfws;)V
    • teardownOverlayColor

      public static void teardownOverlayColor()
    • setShaderTexture

      public static void setShaderTexture(int index, @Nullable @Nullable GpuTextureView texture, @Nullable @Nullable GpuSampler gpuSampler)
      Mappings:
      Namespace Name Mixin selector
      named setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/client/gl/GpuSampler;)V
      intermediary setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;Lnet/minecraft/class_12137;)V
      official setShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;Lfws;)V
    • getShaderTexture

      @Nullable public static @Nullable RenderSystem.class_12114 getShaderTexture(int index)
      Mappings:
      Namespace Name Mixin selector
      named getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/systems/RenderSystem$class_12114;
      intermediary getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/systems/RenderSystem$class_12114;
      official getShaderTexture Lcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/systems/RenderSystem$c;
    • setProjectionMatrix

      public static void setProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType projectionType)
      Mappings:
      Namespace Name Mixin selector
      named setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lcom/mojang/blaze3d/systems/ProjectionType;)V
      intermediary setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lnet/minecraft/class_10366;)V
      official setProjectionMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lftr;)V
    • setTextureMatrix

      public static void setTextureMatrix(Matrix4f textureMatrix)
      Mappings:
      Namespace Name Mixin selector
      named setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
      intermediary setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
      official setTextureMatrix Lcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)V
    • resetTextureMatrix

      public static void resetTextureMatrix()
    • backupProjectionMatrix

      public static void backupProjectionMatrix()
    • restoreProjectionMatrix

      public static void restoreProjectionMatrix()
    • getProjectionMatrixBuffer

      @Nullable public static @Nullable GpuBufferSlice getProjectionMatrixBuffer()
    • getModelViewMatrix

      public static Matrix4f getModelViewMatrix()
    • getModelViewStack

      public static Matrix4fStack getModelViewStack()
    • getTextureMatrix

      public static Matrix4f getTextureMatrix()
    • getSequentialBuffer

      public static RenderSystem.ShapeIndexBuffer getSequentialBuffer(VertexFormat.DrawMode drawMode)
      Mappings:
      Namespace Name Mixin selector
      named getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;)Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;
      intermediary getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;
      official getSequentialBuffer Lcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$b;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
    • setGlobalSettingsUniform

      public static void setGlobalSettingsUniform(GpuBuffer globalSettingsUniform)
      Mappings:
      Namespace Name Mixin selector
      named setGlobalSettingsUniform Lcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)V
      intermediary setGlobalSettingsUniform Lcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)V
      official setGlobalSettingsUniform Lcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)V
    • getGlobalSettingsUniform

      @Nullable public static @Nullable GpuBuffer getGlobalSettingsUniform()
    • getProjectionType

      public static ProjectionType getProjectionType()
    • queueFencedTask

      public static void queueFencedTask(Runnable task)
      Mappings:
      Namespace Name Mixin selector
      named queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
      intermediary queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
      official queueFencedTask Lcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
    • executePendingTasks

      public static void executePendingTasks()
    • getDevice

      public static GpuDevice getDevice()
    • tryGetDevice

      @Nullable public static @Nullable GpuDevice tryGetDevice()
    • getDynamicUniforms

      public static DynamicUniforms getDynamicUniforms()
    • bindDefaultUniforms

      public static void bindDefaultUniforms(RenderPass pass)
      Mappings:
      Namespace Name Mixin selector
      named bindDefaultUniforms Lcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)V
      intermediary bindDefaultUniforms Lcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)V
      official bindDefaultUniforms Lcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)V