Package com.mojang.blaze3d.systems
Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
- Mappings:
Namespace Name named com/mojang/blaze3d/systems/RenderSystemintermediary com/mojang/blaze3d/systems/RenderSystemofficial com/mojang/blaze3d/systems/RenderSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn index buffer that holds a pre-made indices for a specific shape.(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static @Nullable DynamicUniformsprivate static double(package private) static final Loggerstatic final intprivate static final Matrix4fStackstatic @Nullable GpuTextureViewstatic @Nullable GpuTextureViewprivate static final ArrayListDeque<RenderSystem.Task> private static final AtomicLongprivate static final AtomicBooleanstatic final intprivate static @Nullable GpuBufferSliceprivate static ProjectionTypeprivate static @Nullable GpuBufferSliceprivate static ProjectionTypeprivate static ScissorStateprivate static @Nullable GpuBufferSliceprivate static @Nullable GpuBufferSliceprivate static floatprivate static final GpuTextureView[]private static final RenderSystem.ShapeIndexBufferprivate static final RenderSystem.ShapeIndexBufferprivate static final RenderSystem.ShapeIndexBufferstatic final intprivate static Matrix4f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidprivate static IllegalStateExceptionstatic voidstatic voidenableScissorForRenderTypeDraws(int int2, int int3, int int4, int int5) static voidstatic voidflipFrame(Window window, @Nullable TracyFrameCapturer capturer) static Stringstatic Stringstatic GpuDevicestatic DynamicUniformsstatic Matrix4fstatic Matrix4fStackstatic @Nullable GpuBufferSlicestatic ProjectionTypestatic ScissorStategetSequentialBuffer(VertexFormat.DrawMode drawMode) static @Nullable GpuBufferSlicestatic @Nullable GpuBufferSlicestatic floatstatic @Nullable GpuTextureViewgetShaderTexture(int index) static Matrix4fstatic TimeSupplier.Nanosecondsstatic voidinitRenderer(long windowHandle, int debugVerbosity, boolean sync, BiFunction<Identifier, ShaderType, String> shaderSourceGetter, boolean renderDebugLabels) static voidstatic booleanstatic booleanstatic voidlimitDisplayFPS(int fps) static voidlineWidth(float width) private static voidstatic voidqueueFencedTask(Runnable task) static voidstatic voidstatic voidsetErrorCallback(GLFWErrorCallbackI callback) static voidsetGlobalSettingsUniform(GpuBuffer globalSettingsUniform) static voidsetProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType projectionType) static voidsetShaderFog(GpuBufferSlice shaderFog) static voidsetShaderLights(GpuBufferSlice shaderLightDirections) static voidsetShaderTexture(int index, @Nullable GpuTextureView texture) static voidsetTextureMatrix(Matrix4f textureMatrix) static voidstatic voidsetupOverlayColor(@Nullable GpuTextureView texture) static void
-
Field Details
-
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
-
DEVICE
-
lastDrawTime
private static double lastDrawTime -
projectionType
-
savedProjectionType
-
modelViewStack
-
textureMatrix
-
TEXTURE_COUNT
public static final int TEXTURE_COUNT- See Also:
-
shaderTextures
-
shaderFog
-
shaderLightDirections
-
projectionMatrixBuffer
-
savedProjectionMatrixBuffer
-
shaderLineWidth
private static float shaderLineWidth -
apiDescription
-
pollEventsWaitStart
-
pollingEvents
-
PENDING_FENCES
-
outputColorTextureOverride
-
outputDepthTextureOverride
-
globalSettingsUniform
-
dynamicUniforms
-
scissorStateForRenderTypeDraws
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
pollEvents
private static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
- Mappings:
Namespace Name Mixin selector named flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lnet/minecraft/client/util/Window;Lnet/minecraft/client/util/tracy/TracyFrameCapturer;)Vintermediary flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lnet/minecraft/class_1041;Lnet/minecraft/class_10219;)Vofficial flipFrameLcom/mojang/blaze3d/systems/RenderSystem;flipFrame(Lftb;Lfqy;)V
-
limitDisplayFPS
public static void limitDisplayFPS(int fps) - Mappings:
Namespace Name Mixin selector named limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)Vintermediary limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)Vofficial limitDisplayFPSLcom/mojang/blaze3d/systems/RenderSystem;limitDisplayFPS(I)V
-
setShaderFog
- Mappings:
Namespace Name Mixin selector named setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)Vintermediary setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)Vofficial setShaderFogLcom/mojang/blaze3d/systems/RenderSystem;setShaderFog(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
-
getShaderFog
-
setShaderLights
- Mappings:
Namespace Name Mixin selector named setShaderLightsLcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)Vintermediary setShaderLightsLcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)Vofficial setShaderLightsLcom/mojang/blaze3d/systems/RenderSystem;setShaderLights(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;)V
-
getShaderLights
-
lineWidth
public static void lineWidth(float width) - Mappings:
Namespace Name Mixin selector named lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)Vintermediary lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)Vofficial lineWidthLcom/mojang/blaze3d/systems/RenderSystem;lineWidth(F)V
-
getShaderLineWidth
public static float getShaderLineWidth() -
enableScissorForRenderTypeDraws
public static void enableScissorForRenderTypeDraws(int int2, int int3, int int4, int int5) -
disableScissorForRenderTypeDraws
public static void disableScissorForRenderTypeDraws() -
getScissorStateForRenderTypeDraws
-
getBackendDescription
-
getApiDescription
-
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 initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)Vintermediary initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)Vofficial initRendererLcom/mojang/blaze3d/systems/RenderSystem;initRenderer(JIZLjava/util/function/BiFunction;Z)V
-
setErrorCallback
- Mappings:
Namespace Name Mixin selector named setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)Vintermediary setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)Vofficial setErrorCallbackLcom/mojang/blaze3d/systems/RenderSystem;setErrorCallback(Lorg/lwjgl/glfw/GLFWErrorCallbackI;)V
-
setupDefaultState
public static void setupDefaultState() -
setupOverlayColor
- Mappings:
Namespace Name Mixin selector named setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;)Vintermediary setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;)Vofficial setupOverlayColorLcom/mojang/blaze3d/systems/RenderSystem;setupOverlayColor(Lcom/mojang/blaze3d/textures/GpuTextureView;)V
-
teardownOverlayColor
public static void teardownOverlayColor() -
setShaderTexture
- Mappings:
Namespace Name Mixin selector named setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;)Vintermediary setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;)Vofficial setShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;setShaderTexture(ILcom/mojang/blaze3d/textures/GpuTextureView;)V
-
getShaderTexture
- Mappings:
Namespace Name Mixin selector named getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTextureView;official getShaderTextureLcom/mojang/blaze3d/systems/RenderSystem;getShaderTexture(I)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
setProjectionMatrix
public static void setProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType projectionType) - Mappings:
Namespace Name Mixin selector named setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lcom/mojang/blaze3d/systems/ProjectionType;)Vintermediary setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lnet/minecraft/class_10366;)Vofficial setProjectionMatrixLcom/mojang/blaze3d/systems/RenderSystem;setProjectionMatrix(Lcom/mojang/blaze3d/buffers/GpuBufferSlice;Lfqw;)V
-
setTextureMatrix
- Mappings:
Namespace Name Mixin selector named setTextureMatrixLcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)Vintermediary setTextureMatrixLcom/mojang/blaze3d/systems/RenderSystem;setTextureMatrix(Lorg/joml/Matrix4f;)Vofficial setTextureMatrixLcom/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
-
getModelViewMatrix
-
getModelViewStack
-
getTextureMatrix
-
getSequentialBuffer
- Mappings:
Namespace Name Mixin selector named getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$DrawMode;)Lcom/mojang/blaze3d/systems/RenderSystem$ShapeIndexBuffer;intermediary getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$class_5596;)Lcom/mojang/blaze3d/systems/RenderSystem$class_5590;official getSequentialBufferLcom/mojang/blaze3d/systems/RenderSystem;getSequentialBuffer(Lcom/mojang/blaze3d/vertex/VertexFormat$b;)Lcom/mojang/blaze3d/systems/RenderSystem$a;
-
setGlobalSettingsUniform
- Mappings:
Namespace Name Mixin selector named setGlobalSettingsUniformLcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Vintermediary setGlobalSettingsUniformLcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)Vofficial setGlobalSettingsUniformLcom/mojang/blaze3d/systems/RenderSystem;setGlobalSettingsUniform(Lcom/mojang/blaze3d/buffers/GpuBuffer;)V
-
getGlobalSettingsUniform
-
getProjectionType
-
queueFencedTask
- Mappings:
Namespace Name Mixin selector named queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)Vintermediary queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)Vofficial queueFencedTaskLcom/mojang/blaze3d/systems/RenderSystem;queueFencedTask(Ljava/lang/Runnable;)V
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-
getDynamicUniforms
-
bindDefaultUniforms
- Mappings:
Namespace Name Mixin selector named bindDefaultUniformsLcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)Vintermediary bindDefaultUniformsLcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)Vofficial bindDefaultUniformsLcom/mojang/blaze3d/systems/RenderSystem;bindDefaultUniforms(Lcom/mojang/blaze3d/systems/RenderPass;)V
-