Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static @Nullable GpuDeviceprivate static @Nullable DynamicUniformsprivate static @Nullable GpuBufferprivate static doubleprivate static final org.slf4j.Loggerstatic final intprivate static final Matrix4fStackstatic @Nullable GpuTextureViewstatic @Nullable GpuTextureViewprivate static final ArrayListDeque<RenderSystem.GpuAsyncTask> private static final PipelineModifierStackprivate static final AtomicLongprivate static final AtomicBooleanstatic final intprivate static @Nullable GpuBufferSliceprivate static ProjectionTypeprivate static @Nullable Threadprivate static final SamplerCacheprivate static @Nullable GpuBufferSliceprivate static ProjectionTypeprivate static final ScissorStateprivate static @Nullable GpuBufferSliceprivate static @Nullable GpuBufferSliceprivate static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBufferprivate static final RenderSystem.AutoStorageIndexBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPipelineapplyPipelineModifiers(RenderPipeline pipeline) static voidstatic voidstatic voidbindDefaultUniforms(RenderPass renderPass) private static IllegalStateExceptionstatic voidstatic voidenableScissorForRenderTypeDraws(int x, int y, int width, int height) static voidstatic voidstatic voidflipFrame(@Nullable TracyFrameCapture tracyFrameCapture) static Stringstatic Stringstatic GpuDevicestatic DynamicUniformsstatic @Nullable GpuBufferstatic Matrix4fstatic Matrix4fStackstatic @Nullable GpuBufferSlicestatic ProjectionTypestatic SamplerCachestatic ScissorStategetSequentialBuffer(VertexFormat.Mode primitiveMode) static @Nullable GpuBufferSlicestatic @Nullable GpuBufferSlicestatic TimeSource.NanoTimeSourcestatic voidinitRenderer(GpuDevice device) static voidstatic booleanstatic booleanstatic voidlimitDisplayFPS(int framerateLimit) static voidstatic voidNeo: Pop the lastPipelineModifieroff the modifier stackstatic voidpushPipelineModifier(ResourceKey<PipelineModifier> modifier) Neo: Push the providedPipelineModifierto be applied to subsequent rendering.static voidqueueFencedTask(Runnable task) static voidrenderWithPipelineModifier(ResourceKey<PipelineModifier> modifier, Runnable renderTask) Neo: Run the providedRunnablewith the providedPipelineModifierapplied to the pipelines used by the rendering done in theRunnablestatic voidstatic voidsetErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI onFullscreenError) static voidsetGlobalSettingsUniform(GpuBuffer buffer) static voidsetProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType type) static voidstatic voidsetShaderLights(GpuBufferSlice buffer) static voidstatic @Nullable GpuDevice
-
Field Details
-
LOGGER
private static final org.slf4j.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
-
DEVICE
-
lastDrawTime
private static double lastDrawTime -
projectionType
-
savedProjectionType
-
modelViewStack
-
shaderFog
-
shaderLightDirections
-
projectionMatrixBuffer
-
savedProjectionMatrixBuffer
-
apiDescription
-
pollEventsWaitStart
-
pollingEvents
-
PENDING_FENCES
-
outputColorTextureOverride
-
outputDepthTextureOverride
-
globalSettingsUniform
-
dynamicUniforms
-
scissorStateForRenderTypeDraws
-
samplerCache
-
PIPELINE_MODIFIERS
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
getSamplerCache
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
pollEvents
public static void pollEvents() -
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
flipFrame
-
limitDisplayFPS
public static void limitDisplayFPS(int framerateLimit) -
setShaderFog
-
getShaderFog
-
setShaderLights
-
getShaderLights
-
enableScissorForRenderTypeDraws
public static void enableScissorForRenderTypeDraws(int x, int y, int width, int height) -
disableScissorForRenderTypeDraws
public static void disableScissorForRenderTypeDraws() -
getScissorStateForRenderTypeDraws
-
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
-
setErrorCallback
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI onFullscreenError) -
setupDefaultState
public static void setupDefaultState() -
setProjectionMatrix
-
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrixBuffer
-
getModelViewMatrix
-
getModelViewStack
-
getSequentialBuffer
public static RenderSystem.AutoStorageIndexBuffer getSequentialBuffer(VertexFormat.Mode primitiveMode) -
setGlobalSettingsUniform
-
getGlobalSettingsUniform
-
getProjectionType
-
queueFencedTask
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-
getDynamicUniforms
-
bindDefaultUniforms
-
pushPipelineModifier
Neo: Push the providedPipelineModifierto 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 lastPipelineModifieroff the modifier stack -
renderWithPipelineModifier
public static void renderWithPipelineModifier(ResourceKey<PipelineModifier> modifier, Runnable renderTask) Neo: Run the providedRunnablewith the providedPipelineModifierapplied to the pipelines used by the rendering done in theRunnable -
applyPipelineModifiers
-
ensurePipelineModifiersEmpty
@Internal public static void ensurePipelineModifiersEmpty()
-