mesh_preprocess.wgsl
Name | Group | Binding index | Binding type | Type | Shader Def |
---|---|---|---|---|---|
current_input
#
![]() |
0 | 0 | <storage> |
array<MeshInput>
![]() |
|
previous_input
#
![]() |
0 | 1 | <storage> |
array<MeshInput>
![]() |
|
work_items
#
![]() |
0 | 2 | <storage> |
array<PreprocessWorkItem>
![]() |
|
output
#
![]() |
0 | 3 | <storage, read_write> |
array<Mesh>
![]() |
|
indirect_parameters
#
![]() |
0 | 4 | <storage, read_write> |
array<IndirectParameters>
![]() |
🟢 INDIRECT |
mesh_culling_data
#
![]() |
0 | 5 | <storage> |
array<MeshCullingData>
![]() |
🟢 FRUSTUM_CULLING |
view
#
![]() |
0 | 6 | <uniform> | View | 🟢 FRUSTUM_CULLING |
Name | Type |
---|---|
world_from_local |
mat3x4<f32>
![]() |
lightmap_uv_rect |
vec2<u32>
![]() |
flags |
u32
![]() |
previous_input_index |
u32
![]() |
first_vertex_index |
u32
![]() |
pad_a |
u32
![]() |
pad_b |
u32
![]() |
pad_c |
u32
![]() |
Name | Type |
---|---|
aabb_center |
vec4<f32>
![]() |
aabb_half_extents |
vec4<f32>
![]() |
Name | Type |
---|---|
input_index |
u32
![]() |
output_index |
u32
![]() |
wgpu
indirect parameters structure. This is a union of two structures.
For more information, see the corresponding comment in
gpu_preprocessing.rs
.Name | Type |
---|---|
data0 |
u32
![]() |
instance_count | atomic<u32> |
first_vertex |
u32
![]() |
data1 |
u32
![]() |
instance_index |
u32
![]() |
🟢 FRUSTUM_CULLING
aabb_center.w
should be 1.0.Parameter | Type |
---|---|
world_from_local |
mat4x4<f32>
![]() |
aabb_center |
vec4<f32>
![]() |
aabb_half_extents |
vec3<f32>
![]() |