GPUBindGroupLayoutEntry


class GPUBindGroupLayoutEntry


Describes a single binding within a bind group layout.

Summary

Public constructors

GPUBindGroupLayoutEntry(
    binding: Int,
    visibility: Int,
    bindingArraySize: Int,
    buffer: GPUBufferBindingLayout,
    sampler: GPUSamplerBindingLayout,
    texture: GPUTextureBindingLayout,
    storageTexture: GPUStorageTextureBindingLayout
)

Public properties

Int

The binding index.

Int
GPUBufferBindingLayout

The buffer binding layout.

GPUSamplerBindingLayout

The sampler binding layout.

GPUStorageTextureBindingLayout
GPUTextureBindingLayout

The texture binding layout.

Int

The shader stages in which the binding is visible.

Public constructors

GPUBindGroupLayoutEntry

Added in 1.0.0-alpha04
GPUBindGroupLayoutEntry(
    binding: Int,
    visibility: Int,
    bindingArraySize: Int = 0,
    buffer: GPUBufferBindingLayout = GPUBufferBindingLayout(type = BufferBindingType.BindingNotUsed),
    sampler: GPUSamplerBindingLayout = GPUSamplerBindingLayout(type = SamplerBindingType.BindingNotUsed),
    texture: GPUTextureBindingLayout = GPUTextureBindingLayout( sampleType = TextureSampleType.BindingNotUsed, viewDimension = TextureViewDimension.Undefined, ),
    storageTexture: GPUStorageTextureBindingLayout = GPUStorageTextureBindingLayout( access = StorageTextureAccess.BindingNotUsed, format = TextureFormat.Undefined, viewDimension = TextureViewDimension.Undefined, )
)

Public properties

binding

Added in 1.0.0-alpha04
var bindingInt

The binding index.

bindingArraySize

Added in 1.0.0-alpha04
var bindingArraySizeInt

buffer

Added in 1.0.0-alpha04
var bufferGPUBufferBindingLayout

The buffer binding layout.

sampler

Added in 1.0.0-alpha04
var samplerGPUSamplerBindingLayout

The sampler binding layout.

texture

Added in 1.0.0-alpha04
var textureGPUTextureBindingLayout

The texture binding layout.

visibility

Added in 1.0.0-alpha04
var visibilityInt

The shader stages in which the binding is visible.