BindGroupEntry


public final class BindGroupEntry


A single entry within a bind group, defining a bound resource.

Summary

Public constructors

BindGroupEntry(
    int binding,
    GPUBuffer buffer,
    long offset,
    long size,
    GPUSampler sampler,
    GPUTextureView textureView
)

Public methods

final int

The binding index specified in the shader and layout.

final GPUBuffer

The buffer to bind, if the resource is a buffer.

final long

The offset into the buffer for this binding.

final GPUSampler

The sampler to bind, if the resource is a sampler.

final long

The size of the buffer range for this binding.

final GPUTextureView
final void
setBinding(int binding)

The binding index specified in the shader and layout.

final void

The buffer to bind, if the resource is a buffer.

final void
setOffset(long offset)

The offset into the buffer for this binding.

final void

The sampler to bind, if the resource is a sampler.

final void
setSize(long size)

The size of the buffer range for this binding.

final void

Public constructors

BindGroupEntry

Added in 1.0.0-alpha01
public BindGroupEntry(
    int binding,
    GPUBuffer buffer,
    long offset,
    long size,
    GPUSampler sampler,
    GPUTextureView textureView
)

Public methods

getBinding

Added in 1.0.0-alpha01
public final int getBinding()

The binding index specified in the shader and layout.

getBuffer

Added in 1.0.0-alpha01
public final GPUBuffer getBuffer()

The buffer to bind, if the resource is a buffer.

getOffset

Added in 1.0.0-alpha01
public final long getOffset()

The offset into the buffer for this binding.

getSampler

Added in 1.0.0-alpha01
public final GPUSampler getSampler()

The sampler to bind, if the resource is a sampler.

getSize

Added in 1.0.0-alpha01
public final long getSize()

The size of the buffer range for this binding.

getTextureView

Added in 1.0.0-alpha01
public final GPUTextureView getTextureView()

setBinding

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

The binding index specified in the shader and layout.

setBuffer

Added in 1.0.0-alpha01
public final void setBuffer(GPUBuffer buffer)

The buffer to bind, if the resource is a buffer.

setOffset

Added in 1.0.0-alpha01
public final void setOffset(long offset)

The offset into the buffer for this binding.

setSampler

Added in 1.0.0-alpha01
public final void setSampler(GPUSampler sampler)

The sampler to bind, if the resource is a sampler.

setSize

Added in 1.0.0-alpha01
public final void setSize(long size)

The size of the buffer range for this binding.

setTextureView

Added in 1.0.0-alpha01
public final void setTextureView(GPUTextureView textureView)