Skip to content

RenderPassLayout

data class RenderPassLayout(
    val colorFormats: List<GPUTextureFormat?>, 
    val depthStencilFormat: GPUTextureFormat? = null, 
    val sampleCount: GPUSize32, 
    val label: String = ""
) : GPURenderPassLayout
Describes the attachment formats and sample count used by a render pass or render bundle.

Constructors

RenderPassLayout

constructor(
    colorFormats: List<GPUTextureFormat?>, 
    depthStencilFormat: GPUTextureFormat? = null, 
    sampleCount: GPUSize32, 
    label: String = ""
)

Properties

colorFormats

open override val colorFormats: List<GPUTextureFormat?>
A list of the GPUTextureFormats of the color attachments for this pass or bundle.

depthStencilFormat

open override val depthStencilFormat: GPUTextureFormat?
The GPUTextureFormat of the depth/stencil attachment for this pass or bundle.

label

open override val label: String

sampleCount

open override val sampleCount: GPUSize32
Number of samples per pixel in the attachments for this pass or bundle.