RenderPassColorAttachment¶
data class RenderPassColorAttachment(
val view: GPUTextureOrGPUTextureView,
val loadOp: GPULoadOp,
val storeOp: GPUStoreOp,
val depthSlice: GPUIntegerCoordinate? = null,
val resolveTarget: GPUTextureOrGPUTextureView? = null,
val clearValue: GPUColor? = null
) : GPURenderPassColorAttachment
Constructors¶
RenderPassColorAttachment¶
constructor(
view: GPUTextureOrGPUTextureView,
loadOp: GPULoadOp,
storeOp: GPUStoreOp,
depthSlice: GPUIntegerCoordinate? = null,
resolveTarget: GPUTextureOrGPUTextureView? = null,
clearValue: GPUColor? = null
)
Properties¶
clearValue¶
open override val clearValue: GPUColor?
Indicates the value to clear view to prior to executing the render pass. If not provided, defaults to {r: 0, g: 0, b: 0, a: 0}. Ignored if loadOp is not "clear". The components of clearValue are all double values. They are converted to a texel value of texture format matching the render attachment. If conversion fails, a validation error is generated.
depthSlice¶
open override val depthSlice: GPUIntegerCoordinate?
Indicates the depth slice index of "3d" view that will be output to for this color attachment.
loadOp¶
open override val loadOp: GPULoadOp
Indicates the load operation to perform on view prior to executing the render pass. Note: It is recommended to prefer clearing; see "clear" for details.
resolveTarget¶
open override val resolveTarget: GPUTextureOrGPUTextureView?
Describes the texture subresource that will receive the resolved output for this color attachment if view is multisampled. The subresource is determined by calling get as texture view(resolveTarget).
storeOp¶
open override val storeOp: GPUStoreOp
The store operation to perform on view after executing the render pass.
view¶
open override val view: GPUTextureOrGPUTextureView
Describes the texture subresource that will be output to for this color attachment. The subresource is determined by calling get as texture view(view).