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.

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

#
Used by 1 shader in bevy_pbr 0.19.1

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

#
Used by 1 shader in bevy_pbr 0.19.1
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,
}
Contents