Search across packages, versions, files, declarations, and comments. Use multiple terms to narrow results (AND), and add @vertex, @fragment, or @compute to filter by shader stage.

Bindings

example_extended_material_indices

#
@group(constants::MATERIAL_BIND_GROUP)
@binding(100)
var<storage> example_extended_material_indices: array<ExampleBindlessExtendedMaterialIndices>

example_extended_material

#
@group(constants::MATERIAL_BIND_GROUP)
@binding(101)
var<storage> example_extended_material: array<ExampleBindlessExtendedMaterial>
@group(constants::MATERIAL_BIND_GROUP)
@binding(50)
var<uniform> example_extended_material: ExampleBindlessExtendedMaterial

modulate_texture

#
@group(constants::MATERIAL_BIND_GROUP)
@binding(51)
var modulate_texture: texture_2d<f32>

modulate_sampler

#
@group(constants::MATERIAL_BIND_GROUP)
@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 (
in: VertexOutput
, 
@builtin(front_facing)
is_front: bool
) -> FragmentOutput
Contents