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
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 <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>
layer_count
#
fn
layer_count
(
)
->
u32
component_texture_coord
#
fn
component_texture_coord
(
,
)
->
vec2 <
u32 >
weight_at
#
fn
weight_at
(
,
)
->
f32
prev_weight_at
#
fn
prev_weight_at
(
,
)
->
f32
morph_pixel
#
fn
morph_pixel
(
,
,
)
->
f32
morph
#
morph_position
#
fn
morph_position
(
,
,
)
->
vec3 <
f32 >
fn
morph_position
(
,
,
)
->
vec3 <
f32 >
morph_normal
#
fn
morph_normal
(
,
,
)
->
vec3 <
f32 >
fn
morph_normal
(
,
,
)
->
vec3 <
f32 >
morph_tangent
#
fn
morph_tangent
(
,
,
)
->
vec3 <
f32 >
fn
morph_tangent
(
,
,
)
->
vec3 <
f32 >
get_morph_target
#
fn
get_morph_target
(
,
,
)
->
MorphAttributes
Contents