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.

mesh_preprocess_types.wgsl

Import path

Structures

MeshInput

#

Per-frame data that the CPU supplies to the GPU.

struct MeshInput {
world_from_local: mat3x4<f32> ,
lightmap_uv_rect: vec2<u32> ,
flags: u32 ,
previous_input_index: u32 ,
first_vertex_index: u32 ,
first_index_index: u32 ,
index_count: u32 ,
current_skin_index: u32 ,
material_and_lightmap_bind_group_slot: u32 ,
timestamp: u32 ,
tag: u32 ,
morph_descriptor_index: u32 ,
}

IndirectParametersIndexed

#

The wgpu indirect parameters structure. This is a union of two structures. For more information, see the corresponding comment in gpu_preprocessing.rs.

struct IndirectParametersIndexed {
index_count: u32 ,
instance_count: u32 ,
first_index: u32 ,
base_vertex: u32 ,
first_instance: u32 ,
}

IndirectParametersNonIndexed

#
struct IndirectParametersNonIndexed {
vertex_count: u32 ,
instance_count: u32 ,
base_vertex: u32 ,
first_instance: u32 ,
}

IndirectParametersCpuMetadata

#
struct IndirectParametersCpuMetadata {
base_output_index: u32 ,
batch_set_index: u32 ,
}

IndirectParametersGpuMetadata

#
struct IndirectParametersGpuMetadata {
mesh_index: u32 ,
early_instance_count: atomic<u32> , 🟢 WRITE_INDIRECT_PARAMETERS_METADATA
late_instance_count: atomic<u32> , 🟢 WRITE_INDIRECT_PARAMETERS_METADATA
early_instance_count: u32 , šŸ”“ WRITE_INDIRECT_PARAMETERS_METADATA
late_instance_count: u32 , šŸ”“ WRITE_INDIRECT_PARAMETERS_METADATA
}

IndirectBatchSet

#
struct IndirectBatchSet {
indirect_parameters_count: atomic<u32> ,
indirect_parameters_base: u32 ,
}

PreprocessWorkItem

#

One invocation of this compute shader: i.e. one mesh instance in a view.

struct PreprocessWorkItem {
input_index: u32 ,
output_or_indirect_parameters_index: u32 ,
}