hxn

LayoutEntry

One binding of a shader's bind group layout, as WebGPU's layout: "auto" derives it.

Fields

var visibility:Int

GPUShaderStage bits: 1 vertex, 2 fragment, 4 compute.

var viewDimension:Null<String>

1d, 2d, 2d-array, cube, cube-array or 3d.

var type:String

uniform, storage, read-only-storage, sampler, comparison-sampler, texture or storage-texture.

var sampleType:Null<String>

float, sint, uint or depth.

var multisampled:Null<Bool>
var format:Null<String>

A storage texture's format as WGSL names it: rgba8unorm.

var binding:Int
var access:Null<String>

read-only, write-only or read-write.