GPURenderPassColorAttachment


class GPURenderPassColorAttachment


Defines a single color attachment configuration for a render pass.

Summary

Public constructors

GPURenderPassColorAttachment(
    clearValue: GPUColor,
    view: GPUTextureView?,
    depthSlice: Int,
    resolveTarget: GPUTextureView?,
    loadOp: Int,
    storeOp: Int
)

Public properties

GPUColor
Int
Int
GPUTextureView?
Int
GPUTextureView?

The texture view used as the color attachment, or {@code null} if discarded.

Public constructors

GPURenderPassColorAttachment

Added in 1.0.0-alpha02
GPURenderPassColorAttachment(
    clearValue: GPUColor,
    view: GPUTextureView? = null,
    depthSlice: Int = Constants.DEPTH_SLICE_UNDEFINED,
    resolveTarget: GPUTextureView? = null,
    loadOp: Int = LoadOp.Undefined,
    storeOp: Int = StoreOp.Undefined
)

Public properties

clearValue

Added in 1.0.0-alpha02
var clearValueGPUColor

depthSlice

Added in 1.0.0-alpha02
var depthSliceInt

loadOp

Added in 1.0.0-alpha02
var loadOpInt

resolveTarget

Added in 1.0.0-alpha02
var resolveTargetGPUTextureView?

storeOp

Added in 1.0.0-alpha02
var storeOpInt

view

Added in 1.0.0-alpha02
var viewGPUTextureView?

The texture view used as the color attachment, or {@code null} if discarded.