Advanced search tips: use spaces to require multiple terms (AND), | for alternatives (OR), wrap phrases in quotes (="a b"), =term for exact match, 'term to include, !term to exclude, ^term to match prefix, !^term to exclude prefix, .ext$ to match suffix, and !.ext$ to exclude suffix.

extended_material_bindless.wgsl

Bindings

example_extended_material_indices

#

Shader defs requirments:

🟢 BINDLESS

@group(2)
@binding(100)
var<storage> example_extended_material_indices: array<ExampleBindlessExtendedMaterialIndices>

example_extended_material

#

Shader defs requirments:

🟢 BINDLESS

@group(2)
@binding(101)
var<storage> example_extended_material: array<ExampleBindlessExtendedMaterial>

example_extended_material

#

Shader defs requirments:

šŸ”“ BINDLESS

@group(2)
@binding(50)
var<uniform> example_extended_material: ExampleBindlessExtendedMaterial

modulate_texture

#

Shader defs requirments:

šŸ”“ BINDLESS

@group(2)
@binding(51)
var modulate_texture: texture_2d<f32>

modulate_sampler

#

Shader defs requirments:

šŸ”“ BINDLESS

@group(2)
@binding(52)
var modulate_sampler: sampler

Structures

ExampleBindlessExtendedMaterialIndices

#

Stores the indices of the bindless resources in the bindless resource arrays, for the ExampleBindlessExtension fields.

struct ExampleBindlessExtendedMaterialIndices {
material: u32 ,
modulate_texture: u32 ,
modulate_texture_sampler: u32 ,
}

ExampleBindlessExtendedMaterial

#

Plain data associated with this example material.

struct ExampleBindlessExtendedMaterial {
modulate_color: vec4<f32> ,
}

Functions

fragment

#
@fragment
Calculates the final color of each pixel on the screen
fn fragment (
@builtin(front_facing)
is_front: bool
) -> FragmentOutput