GPURenderPassColorAttachment


class GPURenderPassColorAttachment


Describes a color attachment 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 for the color attachment.

Public constructors

GPURenderPassColorAttachment

Added in 1.0.0-alpha05
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-alpha05
var clearValue: GPUColor

depthSlice

Added in 1.0.0-alpha05
var depthSlice: Int

loadOp

Added in 1.0.0-alpha05
var loadOp: Int

resolveTarget

Added in 1.0.0-alpha05
var resolveTarget: GPUTextureView?

storeOp

Added in 1.0.0-alpha05
var storeOp: Int

view

Added in 1.0.0-alpha05
var view: GPUTextureView?

The texture view for the color attachment.