API

Class FrameGraphContext

Base class for frame graph context.

Hierarchy (View Summary)

Index
enableDebugMarkers: boolean = true

If true, debug markers will be enabled in the context.

  • 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

  • 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

  • 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

  • Sets the current viewport

    Parameters

    • viewport: IViewportLike

      defines the viewport element to be used

    • OptionalrequiredWidth: number

      defines the width required for rendering. If not provided, the width of the render texture is used.

    • OptionalrequiredHeight: number

      defines the height required for rendering. If not provided the height of the render texture is used.

    Returns void