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.

Constants

MESH_FLAGS_VISIBILITY_RANGE_INDEX_BITS

#
const MESH_FLAGS_VISIBILITY_RANGE_INDEX_BITS: u32 = (1u << 16u) - 1u

MESH_FLAGS_AABB_BASED_VISIBILITY_RANGE_BIT

#
const MESH_FLAGS_AABB_BASED_VISIBILITY_RANGE_BIT: u32 = 1u << 27u

MESH_FLAGS_NO_FRUSTUM_CULLING_BIT

#
const MESH_FLAGS_NO_FRUSTUM_CULLING_BIT: u32 = 1u << 28u

MESH_FLAGS_SHADOW_RECEIVER_BIT

#
const MESH_FLAGS_SHADOW_RECEIVER_BIT: u32 = 1u << 29u

MESH_FLAGS_TRANSMITTED_SHADOW_RECEIVER_BIT

#
const MESH_FLAGS_TRANSMITTED_SHADOW_RECEIVER_BIT: u32 = 1u << 30u

MESH_FLAGS_SIGN_DETERMINANT_MODEL_3X3_BIT

#
const MESH_FLAGS_SIGN_DETERMINANT_MODEL_3X3_BIT: u32 = 1u << 31u

Structures

Mesh

#
struct Mesh {
world_from_local: mat3x4<f32> ,
previous_world_from_local: mat3x4<f32> ,
local_from_world_transpose_a: mat2x4<f32> ,
local_from_world_transpose_b: f32 ,
flags: u32 ,
lightmap_uv_rect: vec2<u32> ,
first_vertex_index: u32 ,
current_skin_index: u32 ,
material_and_lightmap_bind_group_slot: u32 ,
tag: u32 ,
morph_descriptor_index: u32 ,
metadata_index: u32 ,
}

SkinnedMesh

#
struct SkinnedMesh {
data: array<mat4x4<f32>, 256u> ,
}

MorphWeights

#
struct MorphWeights {
weights: array<vec4<f32>, 64u> ,
}

MorphDescriptor

#
struct MorphDescriptor {
current_weights_offset: u32 ,
prev_weights_offset: u32 ,
targets_offset: u32 ,
vertex_count: u32 ,
weight_count: u32 ,
}

MorphAttributes

#
struct MorphAttributes {
position: vec3<f32> ,
pad_a: f32 ,
normal: vec3<f32> ,
pad_b: f32 ,
tangent: vec3<f32> ,
pad_c: f32 ,
}
Contents