Class FrameGraphContext
Hierarchy (View Summary)
- FrameGraphContext
Properties
enable Debug Markers
If true, debug markers will be enabled in the context.
Methods
get Texture From Handle
-
Gets a texture from a handle. Note that if the texture is a history texture, the read texture for the current frame will be returned.
Parameters
- handle: FrameGraphTextureHandle
The handle of the texture
Returns Nullable<InternalTexture>
The texture or null if not found
- handle: FrameGraphTextureHandle
insert Debug Marker
-
Inserts a debug marker in the engine's debug stack.
Parameters
- text: string
The text of the debug marker
Returns void
- text: string
pop Debug Group
-
Pops a debug group from the engine's debug stack.
Returns void
push Debug Group
-
Pushes a debug group to the engine's debug stack.
Parameters
- name: string
The name of the debug group
Returns void
- name: string
render Unmanaged
-
Renders a component without managing the render target. Use this method when you have a component that handles its own rendering logic which is not fully integrated into the frame graph system.
Parameters
- component: { render: () => void }
The component to render.
- intermediateRendering: boolean = true
If true, the scene's intermediate rendering flag will be set to true during the render call (default: true)
Returns void
- component: { render: () => void }
restore Depth States
-
Restores the depth states saved by saveDepthStates
Returns void
save Depth States
-
Saves the current depth states (depth testing and depth writing)
Returns void
set Depth States
-
Sets the depth states for the current render target
Parameters
- depthTest: boolean
If true, depth testing is enabled
- depthWrite: boolean
If true, depth writing is enabled
Returns void
- depthTest: boolean
set Viewport
-
Sets the current viewport
Parameters
- viewport: IViewportLike
defines the viewport element to be used
OptionalrequiredWidth: numberdefines the width required for rendering. If not provided, the width of the render texture is used.
OptionalrequiredHeight: numberdefines the height required for rendering. If not provided the height of the render texture is used.
Returns void
- viewport: IViewportLike
Base class for frame graph context.