Skip to main content

array_entry

Function array_entry 

Source
pub fn array_entry(
    binding: u32,
    element_size: u64,
    visibility: ShaderStages,
    texel_arrays: bool,
) -> BindGroupLayoutEntry
Expand description

The layout entry binding an array of element_size-byte elements.

On the storage path it is a read-only storage buffer whose binding minimum is one element, so the array may grow without invalidating the layout. On the texel path it is a non-filterable float texture, which is what textureLoad reads.