GPUBindGroupEntry
public final class GPUBindGroupEntry
Describes a single resource binding within a bind group.
Summary
Nested types |
|---|
public final class GPUBindGroupEntry.BuilderBuilder for |
Public constructors |
|---|
GPUBindGroupEntry( |
Public methods |
|
|---|---|
final int |
The binding index corresponding to a shader resource. |
final GPUBuffer |
The buffer to bind. |
final GPUExternalTextureBindingEntry |
|
final long |
The offset in bytes from the beginning of the buffer. |
final GPUSampler |
The sampler to bind. |
final long |
getSize()The size in bytes of the buffer binding. |
final GPUTextureView |
|
final void |
setBinding(int value)The binding index corresponding to a shader resource. |
final void |
The buffer to bind. |
final void |
|
final void |
setOffset(long value)The offset in bytes from the beginning of the buffer. |
final void |
setSampler(GPUSampler value)The sampler to bind. |
final void |
setSize(long value)The size in bytes of the buffer binding. |
final void |
setTextureView(GPUTextureView value) |
Public constructors
GPUBindGroupEntry
public GPUBindGroupEntry(
int binding,
GPUBuffer buffer,
long offset,
long size,
GPUSampler sampler,
GPUTextureView textureView,
GPUExternalTextureBindingEntry externalTextureBindingEntry
)
Public methods
getBinding
public final int getBinding()
The binding index corresponding to a shader resource.
getBuffer
public final GPUBuffer getBuffer()
The buffer to bind. Must be {@code null} if sampler or textureView is set.
getExternalTextureBindingEntry
public final GPUExternalTextureBindingEntry getExternalTextureBindingEntry()
getOffset
public final long getOffset()
The offset in bytes from the beginning of the buffer.
getSampler
public final GPUSampler getSampler()
The sampler to bind. Must be {@code null} if buffer or textureView is set.
setBinding
public final void setBinding(int value)
The binding index corresponding to a shader resource.
setBuffer
public final void setBuffer(GPUBuffer value)
The buffer to bind. Must be {@code null} if sampler or textureView is set.
setExternalTextureBindingEntry
public final void setExternalTextureBindingEntry(GPUExternalTextureBindingEntry value)
setOffset
public final void setOffset(long value)
The offset in bytes from the beginning of the buffer.
setSampler
public final void setSampler(GPUSampler value)
The sampler to bind. Must be {@code null} if buffer or textureView is set.
setSize
public final void setSize(long value)
The size in bytes of the buffer binding.