A WebGPU implementation of the RenderTarget.

Constructors

Properties

colorAttachments: ColorAttachment[] = []
depthAttachment: DepthAttachment = null
initialized: boolean = false
isBackbuffer: boolean = false

True if this is the backbuffer of the device.

key: number

Unique key used by render pipeline creation

Methods

  • Assign a color buffer. This allows the color buffer of the main framebuffer to be swapped each frame to a buffer provided by the context.

    Parameters

    • device: WebgpuGraphicsDevice

      The WebGPU graphics device.

    • gpuTexture: any

      The color buffer.

    Returns void