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

position_offset

#
const position_offset: u32 = 0u

normal_offset

#
const normal_offset: u32 = 3u

tangent_offset

#
const tangent_offset: u32 = 6u

total_component_count

#
const total_component_count: u32 = 9u

Bindings

morph_weights

#
@group(2)
@binding(2)
var<uniform> morph_weights: MorphWeights
@group(2)
@binding(2)
var<storage> morph_weights: array<f32>

morph_targets

#
@group(2)
@binding(3)
var morph_targets: texture_3d<f32>
@group(2)
@binding(3)
var<storage> morph_targets: array<MorphAttributes>

prev_morph_weights

#
@group(2)
@binding(7)
var<uniform> prev_morph_weights: MorphWeights
@group(2)
@binding(7)
var<storage> prev_morph_weights: array<f32>

morph_descriptors

#
@group(2)
@binding(8)
var<storage> morph_descriptors: array<MorphDescriptor>

Functions

layer_count

#
fn layer_count (
descriptor_index: u32
) -> u32

component_texture_coord

#
fn component_texture_coord (
vertex_index: u32
, 
component_offset: u32
) -> vec2<u32>

weight_at

#
fn weight_at (
weight_index: u32
, 
descriptor_index: u32
) -> f32

prev_weight_at

#
fn prev_weight_at (
weight_index: u32
, 
descriptor_index: u32
) -> f32

morph_pixel

#
fn morph_pixel (
vertex: u32
, 
component: u32
, 
weight: u32
) -> f32

morph

#
fn morph (
vertex_index: u32
, 
component_offset: u32
, 
weight_index: u32
) -> vec3<f32>

morph_position

#
fn morph_position (
vertex_index: u32
, 
weight_index: u32
, 
instance_index: u32
) -> vec3<f32>
fn morph_position (
vertex_index: u32
, 
weight_index: u32
, 
descriptor_index: u32
) -> vec3<f32>

morph_normal

#
fn morph_normal (
vertex_index: u32
, 
weight_index: u32
, 
instance_index: u32
) -> vec3<f32>
fn morph_normal (
vertex_index: u32
, 
weight_index: u32
, 
descriptor_index: u32
) -> vec3<f32>

morph_tangent

#
fn morph_tangent (
vertex_index: u32
, 
weight_index: u32
, 
instance_index: u32
) -> vec3<f32>
fn morph_tangent (
vertex_index: u32
, 
weight_index: u32
, 
descriptor_index: u32
) -> vec3<f32>

get_morph_target

#
fn get_morph_target (
vertex_index: u32
, 
weight_index: u32
, 
descriptor_index: u32
) -> MorphAttributes
Contents