BindGroupLayoutEntry


public final class BindGroupLayoutEntry


A single entry within a bind group layout, defining a resource binding slot.

Summary

Public constructors

BindGroupLayoutEntry(
    int binding,
    int visibility,
    int bindingArraySize,
    @NonNull BufferBindingLayout buffer,
    @NonNull SamplerBindingLayout sampler,
    @NonNull TextureBindingLayout texture,
    @NonNull StorageTextureBindingLayout storageTexture
)

Public methods

final int

The binding index corresponding to a @binding attribute in the shader.

final int
final @NonNull BufferBindingLayout

The required constraints if the binding is a buffer.

final @NonNull SamplerBindingLayout

The required constraints if the binding is a sampler.

final @NonNull StorageTextureBindingLayout
final @NonNull TextureBindingLayout

The required constraints if the binding is a sampled texture.

final int

The shader stages where this binding is visible.

final void
setBinding(int binding)

The binding index corresponding to a @binding attribute in the shader.

final void
setBindingArraySize(int bindingArraySize)
final void

The required constraints if the binding is a buffer.

final void

The required constraints if the binding is a sampler.

final void
final void

The required constraints if the binding is a sampled texture.

final void
setVisibility(int visibility)

The shader stages where this binding is visible.

Public constructors

BindGroupLayoutEntry

Added in 1.0.0-alpha01
public BindGroupLayoutEntry(
    int binding,
    int visibility,
    int bindingArraySize,
    @NonNull BufferBindingLayout buffer,
    @NonNull SamplerBindingLayout sampler,
    @NonNull TextureBindingLayout texture,
    @NonNull StorageTextureBindingLayout storageTexture
)

Public methods

getBinding

Added in 1.0.0-alpha01
public final int getBinding()

The binding index corresponding to a @binding attribute in the shader.

getBindingArraySize

Added in 1.0.0-alpha01
public final int getBindingArraySize()

getBuffer

Added in 1.0.0-alpha01
public final @NonNull BufferBindingLayout getBuffer()

The required constraints if the binding is a buffer.

getSampler

Added in 1.0.0-alpha01
public final @NonNull SamplerBindingLayout getSampler()

The required constraints if the binding is a sampler.

getStorageTexture

Added in 1.0.0-alpha01
public final @NonNull StorageTextureBindingLayout getStorageTexture()

getTexture

Added in 1.0.0-alpha01
public final @NonNull TextureBindingLayout getTexture()

The required constraints if the binding is a sampled texture.

getVisibility

Added in 1.0.0-alpha01
public final int getVisibility()

The shader stages where this binding is visible.

setBinding

Added in 1.0.0-alpha01
public final void setBinding(int binding)

The binding index corresponding to a @binding attribute in the shader.

setBindingArraySize

Added in 1.0.0-alpha01
public final void setBindingArraySize(int bindingArraySize)

setBuffer

Added in 1.0.0-alpha01
public final void setBuffer(@NonNull BufferBindingLayout buffer)

The required constraints if the binding is a buffer.

setSampler

Added in 1.0.0-alpha01
public final void setSampler(@NonNull SamplerBindingLayout sampler)

The required constraints if the binding is a sampler.

setStorageTexture

Added in 1.0.0-alpha01
public final void setStorageTexture(@NonNull StorageTextureBindingLayout storageTexture)

setTexture

Added in 1.0.0-alpha01
public final void setTexture(@NonNull TextureBindingLayout texture)

The required constraints if the binding is a sampled texture.

setVisibility

Added in 1.0.0-alpha01
public final void setVisibility(int visibility)

The shader stages where this binding is visible.