GPURenderPassColorAttachment


public final class GPURenderPassColorAttachment


Defines a single color attachment configuration for a render pass.

Summary

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 used as the color attachment, or {@code null} if discarded.

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

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

Public constructors

GPURenderPassColorAttachment

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

Public methods

getClearValue

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

getDepthSlice

Added in 1.0.0-alpha02
public final int getDepthSlice()

getLoadOp

Added in 1.0.0-alpha02
public final int getLoadOp()

getResolveTarget

Added in 1.0.0-alpha02
public final GPUTextureView getResolveTarget()

getStoreOp

Added in 1.0.0-alpha02
public final int getStoreOp()

getView

Added in 1.0.0-alpha02
public final GPUTextureView getView()

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

setClearValue

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

setDepthSlice

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

setLoadOp

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

setResolveTarget

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

setStoreOp

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

setView

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

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