RenderPassDescriptor


public final class RenderPassDescriptor


A descriptor for starting a render pass.

Summary

Public constructors

RenderPassDescriptor(
    String label,
    @NonNull RenderPassColorAttachment[] colorAttachments,
    RenderPassDepthStencilAttachment depthStencilAttachment,
    GPUQuerySet occlusionQuerySet,
    PassTimestampWrites timestampWrites,
    RenderPassMaxDrawCount renderPassMaxDrawCount
)

Public methods

final @NonNull RenderPassColorAttachment[]
final RenderPassDepthStencilAttachment
final String

The label for the render pass.

final GPUQuerySet
final RenderPassMaxDrawCount
final PassTimestampWrites
final void
setColorAttachments(
    @NonNull RenderPassColorAttachment[] colorAttachments
)
final void
final void

The label for the render pass.

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

Public constructors

RenderPassDescriptor

Added in 1.0.0-alpha01
public RenderPassDescriptor(
    String label,
    @NonNull RenderPassColorAttachment[] colorAttachments,
    RenderPassDepthStencilAttachment depthStencilAttachment,
    GPUQuerySet occlusionQuerySet,
    PassTimestampWrites timestampWrites,
    RenderPassMaxDrawCount renderPassMaxDrawCount
)

Public methods

getColorAttachments

Added in 1.0.0-alpha01
public final @NonNull RenderPassColorAttachment[] getColorAttachments()

getDepthStencilAttachment

Added in 1.0.0-alpha01
public final RenderPassDepthStencilAttachment getDepthStencilAttachment()

getLabel

Added in 1.0.0-alpha01
public final String getLabel()

The label for the render pass.

getOcclusionQuerySet

Added in 1.0.0-alpha01
public final GPUQuerySet getOcclusionQuerySet()

getRenderPassMaxDrawCount

Added in 1.0.0-alpha01
public final RenderPassMaxDrawCount getRenderPassMaxDrawCount()

getTimestampWrites

Added in 1.0.0-alpha01
public final PassTimestampWrites getTimestampWrites()

setColorAttachments

Added in 1.0.0-alpha01
public final void setColorAttachments(
    @NonNull RenderPassColorAttachment[] colorAttachments
)

setDepthStencilAttachment

Added in 1.0.0-alpha01
public final void setDepthStencilAttachment(
    RenderPassDepthStencilAttachment depthStencilAttachment
)

setLabel

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

The label for the render pass.

setOcclusionQuerySet

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

setRenderPassMaxDrawCount

Added in 1.0.0-alpha01
public final void setRenderPassMaxDrawCount(
    RenderPassMaxDrawCount renderPassMaxDrawCount
)

setTimestampWrites

Added in 1.0.0-alpha01
public final void setTimestampWrites(PassTimestampWrites timestampWrites)