BindGroupEntry
public final class BindGroupEntry
A single entry within a bind group, defining a bound resource.
Summary
Public constructors |
|---|
BindGroupEntry( |
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 |
getSize()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 |
setSampler(GPUSampler sampler)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 |
setTextureView(GPUTextureView textureView) |
Public constructors
BindGroupEntry
public BindGroupEntry(
int binding,
GPUBuffer buffer,
long offset,
long size,
GPUSampler sampler,
GPUTextureView textureView
)
Public methods
getBinding
public final int getBinding()
The binding index specified in the shader and layout.
getBuffer
public final GPUBuffer getBuffer()
The buffer to bind, if the resource is a buffer.
getOffset
public final long getOffset()
The offset into the buffer for this binding.
getSampler
public final GPUSampler getSampler()
The sampler to bind, if the resource is a sampler.
getSize
public final long getSize()
The size of the buffer range for this binding.
setBinding
public final void setBinding(int binding)
The binding index specified in the shader and layout.
setBuffer
public final void setBuffer(GPUBuffer buffer)
The buffer to bind, if the resource is a buffer.
setOffset
public final void setOffset(long offset)
The offset into the buffer for this binding.
setSampler
public final void setSampler(GPUSampler sampler)
The sampler to bind, if the resource is a sampler.
setSize
public final void setSize(long size)
The size of the buffer range for this binding.