Class RenderSystem

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

public class RenderSystem extends Object
  • Field Details

  • 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

      public static void pollEvents()
    • isFrozenAtPollEvents

      public static boolean isFrozenAtPollEvents()
    • flipFrame

      public static void flipFrame(@Nullable TracyFrameCapture tracyFrameCapture)
    • setShaderFog

      public static void setShaderFog(GpuBufferSlice fog)
    • getShaderFog

      public static @Nullable GpuBufferSlice getShaderFog()
    • setShaderLights

      public static void setShaderLights(GpuBufferSlice buffer)
    • getShaderLights

      public static @Nullable GpuBufferSlice getShaderLights()
    • enableScissorForRenderTypeDraws

      public static void enableScissorForRenderTypeDraws(int x, int y, int width, int height)
    • disableScissorForRenderTypeDraws

      public static void disableScissorForRenderTypeDraws()
    • getScissorStateForRenderTypeDraws

      public static ScissorState getScissorStateForRenderTypeDraws()
    • getBackendDescription

      public static String getBackendDescription()
    • getApiDescription

      public static String getApiDescription()
    • initBackendSystem

      public static TimeSource.NanoTimeSource initBackendSystem(BackendOptions options)
    • initRenderer

      public static void initRenderer(GpuDevice device)
    • setErrorCallback

      public static void setErrorCallback(GLFWErrorCallbackI onFullscreenError)
    • setupDefaultState

      public static void setupDefaultState()
    • setProjectionMatrix

      public static void setProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType type)
    • backupProjectionMatrix

      public static void backupProjectionMatrix()
    • restoreProjectionMatrix

      public static void restoreProjectionMatrix()
    • getProjectionMatrixBuffer

      public static @Nullable GpuBufferSlice getProjectionMatrixBuffer()
    • getModelViewMatrix

      public static Matrix4f getModelViewMatrix()
    • getModelViewStack

      public static Matrix4fStack getModelViewStack()
    • getSequentialBuffer

      public static RenderSystem.AutoStorageIndexBuffer getSequentialBuffer(VertexFormat.Mode primitiveMode)
    • setGlobalSettingsUniform

      public static void setGlobalSettingsUniform(GpuBuffer buffer)
    • getGlobalSettingsUniform

      public static @Nullable GpuBuffer getGlobalSettingsUniform()
    • getProjectionType

      public static ProjectionType getProjectionType()
    • queueFencedTask

      public static void queueFencedTask(Runnable task)
    • executePendingTasks

      public static void executePendingTasks()
    • getDevice

      public static GpuDevice getDevice()
    • tryGetDevice

      public static @Nullable GpuDevice tryGetDevice()
    • getDynamicUniforms

      public static DynamicUniforms getDynamicUniforms()
    • bindDefaultUniforms

      public static void bindDefaultUniforms(RenderPass renderPass)
    • pushPipelineModifier

      public static void pushPipelineModifier(ResourceKey<PipelineModifier> modifier)
      Neo: Push the provided PipelineModifier to be applied to subsequent rendering.

      Must be paired with a corresponding popPipelineModifier() call after flushing the used buffers

    • popPipelineModifier

      public static void popPipelineModifier()
      Neo: Pop the last PipelineModifier off the modifier stack
    • renderWithPipelineModifier

      public static void renderWithPipelineModifier(ResourceKey<PipelineModifier> modifier, Runnable renderTask)
      Neo: Run the provided Runnable with the provided PipelineModifier applied to the pipelines used by the rendering done in the Runnable
    • applyPipelineModifiers

      @Internal public static RenderPipeline applyPipelineModifiers(RenderPipeline pipeline)
    • ensurePipelineModifiersEmpty

      @Internal public static void ensurePipelineModifiersEmpty()