BindGroupEntry


class BindGroupEntry


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

Summary

Public constructors

BindGroupEntry(
    binding: Int,
    buffer: GPUBuffer?,
    offset: Long,
    size: Long,
    sampler: GPUSampler?,
    textureView: GPUTextureView?
)

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 bindingInt

The binding index specified in the shader and layout.

buffer

Added in 1.0.0-alpha01
var bufferGPUBuffer?

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

offset

Added in 1.0.0-alpha01
var offsetLong

The offset into the buffer for this binding.

sampler

Added in 1.0.0-alpha01
var samplerGPUSampler?

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

size

Added in 1.0.0-alpha01
var sizeLong

The size of the buffer range for this binding.

textureView

Added in 1.0.0-alpha01
var textureViewGPUTextureView?