GPURenderPassDescriptor


public final class GPURenderPassDescriptor


A descriptor for starting a render pass.

Summary

Public constructors

GPURenderPassDescriptor(
    String label,
    @NonNull GPURenderPassColorAttachment[] colorAttachments,
    GPURenderPassDepthStencilAttachment depthStencilAttachment,
    GPUQuerySet occlusionQuerySet,
    GPUPassTimestampWrites timestampWrites,
    GPURenderPassMaxDrawCount renderPassMaxDrawCount
)

Public methods

final @NonNull GPURenderPassColorAttachment[]
final GPURenderPassDepthStencilAttachment
final String

The label for the render pass.

final GPUQuerySet
final GPURenderPassMaxDrawCount
final GPUPassTimestampWrites
final void
setColorAttachments(
    @NonNull GPURenderPassColorAttachment[] colorAttachments
)
final void
final void

The label for the render pass.

final void
setOcclusionQuerySet(GPUQuerySet occlusionQuerySet)
final void
setRenderPassMaxDrawCount(
    GPURenderPassMaxDrawCount renderPassMaxDrawCount
)
final void

Public constructors

GPURenderPassDescriptor

Added in 1.0.0-alpha02
public GPURenderPassDescriptor(
    String label,
    @NonNull GPURenderPassColorAttachment[] colorAttachments,
    GPURenderPassDepthStencilAttachment depthStencilAttachment,
    GPUQuerySet occlusionQuerySet,
    GPUPassTimestampWrites timestampWrites,
    GPURenderPassMaxDrawCount renderPassMaxDrawCount
)

Public methods

getColorAttachments

Added in 1.0.0-alpha02
public final @NonNull GPURenderPassColorAttachment[] getColorAttachments()

getDepthStencilAttachment

Added in 1.0.0-alpha02
public final GPURenderPassDepthStencilAttachment getDepthStencilAttachment()

getLabel

Added in 1.0.0-alpha02
public final String getLabel()

The label for the render pass.

getOcclusionQuerySet

Added in 1.0.0-alpha02
public final GPUQuerySet getOcclusionQuerySet()

getRenderPassMaxDrawCount

Added in 1.0.0-alpha02
public final GPURenderPassMaxDrawCount getRenderPassMaxDrawCount()

getTimestampWrites

Added in 1.0.0-alpha02
public final GPUPassTimestampWrites getTimestampWrites()

setColorAttachments

Added in 1.0.0-alpha02
public final void setColorAttachments(
    @NonNull GPURenderPassColorAttachment[] colorAttachments
)

setDepthStencilAttachment

Added in 1.0.0-alpha02
public final void setDepthStencilAttachment(
    GPURenderPassDepthStencilAttachment depthStencilAttachment
)

setLabel

Added in 1.0.0-alpha02
public final void setLabel(String label)

The label for the render pass.

setOcclusionQuerySet

Added in 1.0.0-alpha02
public final void setOcclusionQuerySet(GPUQuerySet occlusionQuerySet)

setRenderPassMaxDrawCount

Added in 1.0.0-alpha02
public final void setRenderPassMaxDrawCount(
    GPURenderPassMaxDrawCount renderPassMaxDrawCount
)

setTimestampWrites

Added in 1.0.0-alpha02
public final void setTimestampWrites(GPUPassTimestampWrites timestampWrites)