Class RenderSystem
java.lang.Object
com.mojang.blaze3d.systems.RenderSystem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static @Nullable GpuBackendprivate static @Nullable PipelineCachestatic final doubleprivate static @Nullable DynamicGpuDataprivate static @Nullable PipelineCachestatic booleanprivate static final org.slf4j.Loggerstatic final intprivate static final Matrix4fStackprivate static final ArrayListDeque<RenderSystem.GpuAsyncTask> private static final PipelineModifierStackprivate static final AtomicLongprivate static final AtomicBooleanstatic final intprivate static @Nullable GpuBufferSliceprivate static ProjectionTypeprivate 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 voidstatic voidstatic voidbindDefaultUniforms(RenderPass renderPass) private static IllegalStateExceptionstatic voidstatic voidenableScissorForRenderTypeDraws(int x, int y, int width, int height) static voidstatic voidstatic Stringstatic CompiledRenderPipelinegetCompiledPipeline(RenderPipeline pipeline) static @Nullable CompiledRenderPipelinegetCompiledPipelineNullable(RenderPipeline pipeline) static GpuDevicestatic DynamicGpuDatastatic Matrix4fstatic Matrix4fStackstatic @Nullable GpuBufferSlicestatic ProjectionTypestatic SamplerCachestatic ScissorStategetSequentialBuffer(PrimitiveTopology primitiveTopology) static @Nullable GpuBufferSlicestatic @Nullable GpuBufferSlicestatic TimeSource.NanoTimeSourcestatic voidinitRenderer(GpuDevice device) static voidstatic booleanstatic booleanstatic booleanstatic voidpollEvents(SDLEventHandler eventHandler) static voidNeo: Pop the lastPipelineModifieroff the modifier stackstatic voidpumpEvents(SDLEventHandler eventHandler) static 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 voidstatic @Nullable PipelineCachesetCurrentPipelineCache(PipelineCache pipelineCache) static voidsetFallbackPipelineCache(PipelineCache pipelineCache) static voidsetGlobalSettingsUniform(GpuBuffer buffer) static voidsetProjectionMatrix(GpuBufferSlice projectionMatrixBuffer, ProjectionType type) static voidstatic voidsetShaderLights(GpuBufferSlice buffer) static voidstatic voidstatic voidtrackBackendLibraryForShutdown(GpuBackend backend) static void
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
DEFAULT_DEPTH_CLEAR_VALUE
public static final double DEFAULT_DEPTH_CLEAR_VALUE- See Also:
-
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
-
BACKEND
-
projectionType
-
savedProjectionType
-
modelViewStack
-
shaderFog
-
shaderLightDirections
-
projectionMatrixBuffer
-
savedProjectionMatrixBuffer
-
pollEventsWaitStart
-
pollingEvents
-
PENDING_FENCES
-
isRenderingLevel
public static boolean isRenderingLevel -
globalSettingsUniform
-
dynamicGpuData
-
scissorStateForRenderTypeDraws
-
samplerCache
-
fallbackPipelineCache
-
currentPipelineCache
-
PIPELINE_MODIFIERS
-
-
Constructor Details
-
RenderSystem
public RenderSystem()
-
-
Method Details
-
getSamplerCache
-
setFallbackPipelineCache
-
setCurrentPipelineCache
-
getCompiledPipelineNullable
-
getCompiledPipeline
-
initRenderThread
public static void initRenderThread() -
isOnRenderThread
public static boolean isOnRenderThread() -
assertOnRenderThread
public static void assertOnRenderThread() -
constructThreadException
-
pollEvents
-
isFrozenAtPollEvents
public static boolean isFrozenAtPollEvents() -
pumpEvents
-
setShaderFog
-
getShaderFog
-
setShaderLights
-
getShaderLights
-
enableScissorForRenderTypeDraws
public static void enableScissorForRenderTypeDraws(int x, int y, int width, int height) -
disableScissorForRenderTypeDraws
public static void disableScissorForRenderTypeDraws() -
getScissorStateForRenderTypeDraws
-
getBackendDescription
-
initBackendSystem
-
initRenderer
-
shutdownRenderer
public static void shutdownRenderer() -
trackBackendLibraryForShutdown
-
unloadTrackedBackendLibrary
public static void unloadTrackedBackendLibrary() -
setupDefaultState
public static void setupDefaultState() -
setProjectionMatrix
-
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrixBuffer
-
getModelViewMatrixCopy
-
getModelViewStack
-
getSequentialBuffer
public static RenderSystem.AutoStorageIndexBuffer getSequentialBuffer(PrimitiveTopology primitiveTopology) -
setGlobalSettingsUniform
-
getGlobalSettingsUniform
-
getProjectionType
-
queueFencedTask
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-
isWireframeAvailable
public static boolean isWireframeAvailable() -
getDynamicUniforms
-
bindDefaultUniforms
-
resizeAllAutoStorageIndexBuffers
public static void resizeAllAutoStorageIndexBuffers() -
pushPipelineModifier
Neo: Push the provided
PipelineModifierto 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 -
ensurePipelineModifiersEmpty
-