Functions
The instance_index parameter must match vertex_in.instance_index. This is a work around for a wgpu dx12 bug. See https://github.com/gfx-rs/naga/issues/2416
@vertex
Processes each 3D point in a model before it's drawn
fn
vertex
(
vertex_no_morph: Vertex
)
->
VertexOutput
@fragment
Calculates the final color of each pixel on the screen
fn
fragment
(
in: VertexOutput
)
->
FragmentOutput
The instance_index parameter must match vertex_in.instance_index. This is a work around for a wgpu dx12 bug. See https://github.com/gfx-rs/naga/issues/2416