Class FrameGraphSetupEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.FrameGraphSetupEvent
public final class FrameGraphSetupEvent
extends net.neoforged.bus.api.Event
Fired when the frame graph is set up at the start of level rendering, right before
the vanilla frame passes are set up.
This event is not cancellable.
This event is fired on the main Forge event bus, only on the logical client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FrameGraphBuilderprivate final CameraRenderStateprivate final DeltaTrackerprivate final Frustumprivate final Matrix4fcprivate final ProfilerFillerprivate final RenderTargetDescriptorprivate final LevelTargetBundle -
Constructor Summary
ConstructorsConstructorDescriptionFrameGraphSetupEvent(FrameGraphBuilder builder, LevelTargetBundle targets, RenderTargetDescriptor renderTargetDescriptor, CameraRenderState cameraState, Matrix4fc modelViewMatrix, DeltaTracker deltaTracker, ProfilerFiller profiler) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCameraRenderState.Returns theDeltaTracker.Returns theFrameGraphBuilderused to set up the frame graph.Returns the culling frustum.Returns the model view matrix.Returns the active profiler.Returns the render target descriptor to use for creating full-screen render targets.Returns the render targets used during level rendering.
-
Field Details
-
builder
-
targets
-
renderTargetDescriptor
-
frustum
-
cameraState
-
modelViewMatrix
-
deltaTracker
-
profiler
-
-
Constructor Details
-
FrameGraphSetupEvent
@Internal public FrameGraphSetupEvent(FrameGraphBuilder builder, LevelTargetBundle targets, RenderTargetDescriptor renderTargetDescriptor, CameraRenderState cameraState, Matrix4fc modelViewMatrix, DeltaTracker deltaTracker, ProfilerFiller profiler)
-
-
Method Details
-
getFrameGrapBuilder
Returns theFrameGraphBuilderused to set up the frame graph.- Returns:
- the
FrameGraphBuilderused to set up the frame graph
-
getTargetBundle
Returns the render targets used during level rendering.- Returns:
- the render targets used during level rendering
-
getRenderTargetDescriptor
Returns the render target descriptor to use for creating full-screen render targets.- Returns:
- the render target descriptor to use for creating full-screen render targets
-
getFrustum
-
getCameraState
Returns theCameraRenderState. extracted from the activeCamera- Returns:
- the
CameraRenderState
-
getModelViewMatrix
-
getDeltaTracker
-
getProfiler
-