GPURenderPassColorAttachment


public final class GPURenderPassColorAttachment


Describes a color attachment for a render pass.

Summary

Nested types

Builder for GPURenderPassColorAttachment.

Public constructors

GPURenderPassColorAttachment(
    @NonNull GPUColor clearValue,
    GPUTextureView view,
    int depthSlice,
    GPUTextureView resolveTarget,
    int loadOp,
    int storeOp
)

Public methods

final @NonNull GPUColor
final int
final int
final GPUTextureView
final int
final GPUTextureView

The texture view for the color attachment.

final void
final void
setDepthSlice(int depthSlice)
final void
setLoadOp(int loadOp)
final void
final void
setStoreOp(int storeOp)
final void

The texture view for the color attachment.

Public constructors

GPURenderPassColorAttachment

Added in 1.0.0-alpha04
public GPURenderPassColorAttachment(
    @NonNull GPUColor clearValue,
    GPUTextureView view,
    int depthSlice,
    GPUTextureView resolveTarget,
    int loadOp,
    int storeOp
)

Public methods

getClearValue

Added in 1.0.0-alpha04
public final @NonNull GPUColor getClearValue()

getDepthSlice

Added in 1.0.0-alpha04
public final int getDepthSlice()

getLoadOp

Added in 1.0.0-alpha04
public final int getLoadOp()

getResolveTarget

Added in 1.0.0-alpha04
public final GPUTextureView getResolveTarget()

getStoreOp

Added in 1.0.0-alpha04
public final int getStoreOp()

getView

Added in 1.0.0-alpha04
public final GPUTextureView getView()

The texture view for the color attachment.

setClearValue

Added in 1.0.0-alpha04
public final void setClearValue(@NonNull GPUColor clearValue)

setDepthSlice

Added in 1.0.0-alpha04
public final void setDepthSlice(int depthSlice)

setLoadOp

Added in 1.0.0-alpha04
public final void setLoadOp(int loadOp)

setResolveTarget

Added in 1.0.0-alpha04
public final void setResolveTarget(GPUTextureView resolveTarget)

setStoreOp

Added in 1.0.0-alpha04
public final void setStoreOp(int storeOp)

setView

Added in 1.0.0-alpha04
public final void setView(GPUTextureView view)

The texture view for the color attachment.