BindGroupEntry
class BindGroupEntry
A single entry within a bind group, defining a bound resource.
Summary
Public constructors |
|---|
BindGroupEntry( |
Public properties |
|
|---|---|
Int |
The binding index specified in the shader and layout. |
GPUBuffer? |
The buffer to bind, if the resource is a buffer. |
Long |
The offset into the buffer for this binding. |
GPUSampler? |
The sampler to bind, if the resource is a sampler. |
Long |
The size of the buffer range for this binding. |
GPUTextureView? |
Public constructors
BindGroupEntry
Added in 1.0.0-alpha01
BindGroupEntry(
binding: Int,
buffer: GPUBuffer? = null,
offset: Long = 0,
size: Long = Constants.WHOLE_SIZE,
sampler: GPUSampler? = null,
textureView: GPUTextureView? = null
)
Public properties
binding
Added in 1.0.0-alpha01
var binding: Int
The binding index specified in the shader and layout.
buffer
Added in 1.0.0-alpha01
var buffer: GPUBuffer?
The buffer to bind, if the resource is a buffer.
sampler
Added in 1.0.0-alpha01
var sampler: GPUSampler?
The sampler to bind, if the resource is a sampler.