Package com.mojang.blaze3d.systems
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 String
private static GpuDevice
private static double
(package private) static final org.slf4j.Logger
static final int
private static final org.joml.Vector3f
private static final org.joml.Matrix4fStack
private static final ArrayListDeque
<RenderSystem.GpuAsyncTask> private static final PipelineModifierStack
private static final AtomicLong
private static final AtomicBoolean
private static org.joml.Matrix4f
private static ProjectionType
private static GpuBuffer
private static Thread
private static org.joml.Matrix4f
private static ProjectionType
static final ScissorState
private static final float[]
private static FogParameters
private static float
private static float
private static final org.joml.Vector3f[]
private static float
private static final GpuTexture[]
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
private static final RenderSystem.AutoStorageIndexBuffer
static StencilTest
static final int
private static org.joml.Matrix4f
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderPipeline
applyPipelineModifiers
(RenderPipeline pipeline) static void
static void
private static IllegalStateException
static void
static void
static void
enableScissor
(int p_69489_, int p_69490_, int p_69491_, int p_69492_) static void
enableStencil
(StencilTest stencilTest) static void
static void
static void
flipFrame
(long p_69496_, TracyFrameCapture p_372841_) static String
static String
static GpuDevice
static org.joml.Vector3f
static org.joml.Matrix4f
static org.joml.Matrix4fStack
static org.joml.Matrix4f
static ProjectionType
static GpuBuffer
getSequentialBuffer
(VertexFormat.Mode p_221942_) static float[]
static FogParameters
static float
static float
static org.joml.Vector3f[]
static float
static GpuTexture
getShaderTexture
(int p_157204_) static org.joml.Matrix4f
static TimeSource.NanoTimeSource
static void
initRenderer
(long p_409720_, int p_69581_, boolean p_69582_, BiFunction<ResourceLocation, ShaderType, String> p_410113_, boolean p_410401_) static void
static boolean
static boolean
static void
limitDisplayFPS
(int p_69831_) static void
lineWidth
(float p_69833_) private static void
static void
Neo: Pop the lastPipelineModifier
off the modifier stackstatic void
pushPipelineModifier
(ResourceKey<PipelineModifier> modifier) Neo: Push the providedPipelineModifier
to be applied to subsequent rendering.static void
queueFencedTask
(Runnable p_406359_) static void
renderWithPipelineModifier
(ResourceKey<PipelineModifier> modifier, Runnable renderTask) Neo: Run the providedRunnable
with the providedPipelineModifier
applied to the pipelines used by the rendering done in theRunnable
static void
static void
static void
static void
setErrorCallback
(org.lwjgl.glfw.GLFWErrorCallbackI p_69901_) static void
setModelOffset
(float p_401762_, float p_401844_, float p_401774_) static void
setProjectionMatrix
(org.joml.Matrix4f p_277884_, ProjectionType p_381637_) static void
setShaderColor
(float p_157430_, float p_157431_, float p_157432_, float p_157433_) static void
setShaderFog
(FogParameters p_360454_) static void
setShaderGameTime
(long p_157448_, float p_157449_) static void
setShaderGlintAlpha
(double p_268332_) static void
setShaderGlintAlpha
(float p_268329_) static void
setShaderLights
(org.joml.Vector3f p_254155_, org.joml.Vector3f p_254006_) static void
setShaderTexture
(int p_157454_, GpuTexture p_405442_) static void
setTextureMatrix
(org.joml.Matrix4f p_254081_) static void
static void
setupGui3DDiffuseLighting
(org.joml.Vector3f p_253859_, org.joml.Vector3f p_253890_) static void
setupGuiFlatDiffuseLighting
(org.joml.Vector3f p_254419_, org.joml.Vector3f p_254483_) static void
setupLevelDiffuseLighting
(org.joml.Vector3f p_254489_, org.joml.Vector3f p_254541_) static void
setupOverlayColor
(GpuTexture p_404695_) static void
static GpuDevice
-
Field Details
-
SCISSOR_STATE
-
STENCIL_TEST
-
LOGGER
static final org.slf4j.Logger LOGGER -
MINIMUM_ATLAS_TEXTURE_SIZE
public static final int MINIMUM_ATLAS_TEXTURE_SIZE- See Also:
-
renderThread
-
DEVICE
-
lastDrawTime
private static double lastDrawTime -
projectionMatrix
private static org.joml.Matrix4f projectionMatrix -
savedProjectionMatrix
private static org.joml.Matrix4f savedProjectionMatrix -
projectionType
-
savedProjectionType
-
modelViewStack
private static final org.joml.Matrix4fStack modelViewStack -
textureMatrix
private static org.joml.Matrix4f textureMatrix -
TEXTURE_COUNT
public static final int TEXTURE_COUNT- See Also:
-
shaderTextures
-
shaderColor
private static final float[] shaderColor -
shaderGlintAlpha
private static float shaderGlintAlpha -
shaderFog
-
shaderLightDirections
private static final org.joml.Vector3f[] shaderLightDirections -
shaderGameTime
private static float shaderGameTime -
modelOffset
private static final org.joml.Vector3f modelOffset -
shaderLineWidth
private static float shaderLineWidth -
apiDescription
-
pollEventsWaitStart
-
pollingEvents
-
QUAD_VERTEX_BUFFER
-
PENDING_FENCES
-
PIPELINE_MODIFIERS
-
-
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
-
limitDisplayFPS
public static void limitDisplayFPS(int p_69831_) -
enableScissor
public static void enableScissor(int p_69489_, int p_69490_, int p_69491_, int p_69492_) -
disableScissor
public static void disableScissor() -
enableStencil
-
disableStencil
public static void disableStencil() -
setShaderFog
-
getShaderFog
-
setShaderGlintAlpha
public static void setShaderGlintAlpha(double p_268332_) -
setShaderGlintAlpha
public static void setShaderGlintAlpha(float p_268329_) -
getShaderGlintAlpha
public static float getShaderGlintAlpha() -
setShaderLights
public static void setShaderLights(org.joml.Vector3f p_254155_, org.joml.Vector3f p_254006_) -
getShaderLights
public static org.joml.Vector3f[] getShaderLights() -
setShaderColor
public static void setShaderColor(float p_157430_, float p_157431_, float p_157432_, float p_157433_) -
getShaderColor
public static float[] getShaderColor() -
lineWidth
public static void lineWidth(float p_69833_) -
getShaderLineWidth
public static float getShaderLineWidth() -
getBackendDescription
-
getApiDescription
-
initBackendSystem
-
initRenderer
public static void initRenderer(long p_409720_, int p_69581_, boolean p_69582_, BiFunction<ResourceLocation, ShaderType, String> p_410113_, boolean p_410401_) -
setErrorCallback
public static void setErrorCallback(org.lwjgl.glfw.GLFWErrorCallbackI p_69901_) -
setupDefaultState
public static void setupDefaultState() -
setupOverlayColor
-
teardownOverlayColor
public static void teardownOverlayColor() -
setupLevelDiffuseLighting
public static void setupLevelDiffuseLighting(org.joml.Vector3f p_254489_, org.joml.Vector3f p_254541_) -
setupGuiFlatDiffuseLighting
public static void setupGuiFlatDiffuseLighting(org.joml.Vector3f p_254419_, org.joml.Vector3f p_254483_) -
setupGui3DDiffuseLighting
public static void setupGui3DDiffuseLighting(org.joml.Vector3f p_253859_, org.joml.Vector3f p_253890_) -
setShaderTexture
-
getShaderTexture
-
setProjectionMatrix
-
setTextureMatrix
public static void setTextureMatrix(org.joml.Matrix4f p_254081_) -
resetTextureMatrix
public static void resetTextureMatrix() -
backupProjectionMatrix
public static void backupProjectionMatrix() -
restoreProjectionMatrix
public static void restoreProjectionMatrix() -
getProjectionMatrix
public static org.joml.Matrix4f getProjectionMatrix() -
getModelViewMatrix
public static org.joml.Matrix4f getModelViewMatrix() -
getModelViewStack
public static org.joml.Matrix4fStack getModelViewStack() -
getTextureMatrix
public static org.joml.Matrix4f getTextureMatrix() -
getSequentialBuffer
-
setShaderGameTime
public static void setShaderGameTime(long p_157448_, float p_157449_) -
getShaderGameTime
public static float getShaderGameTime() -
getProjectionType
-
getQuadVertexBuffer
-
setModelOffset
public static void setModelOffset(float p_401762_, float p_401844_, float p_401774_) -
resetModelOffset
public static void resetModelOffset() -
getModelOffset
public static org.joml.Vector3f getModelOffset() -
queueFencedTask
-
executePendingTasks
public static void executePendingTasks() -
getDevice
-
tryGetDevice
-
pushPipelineModifier
Neo: Push the providedPipelineModifier
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 lastPipelineModifier
off the modifier stack -
renderWithPipelineModifier
public static void renderWithPipelineModifier(ResourceKey<PipelineModifier> modifier, Runnable renderTask) Neo: Run the providedRunnable
with the providedPipelineModifier
applied to the pipelines used by the rendering done in theRunnable
-
applyPipelineModifiers
-
ensurePipelineModifiersEmpty
@Internal public static void ensurePipelineModifiersEmpty()
-