{examples,shaderexp}: update to new mach/gpu API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
852d232335
commit
f299d87aa2
39 changed files with 473 additions and 338 deletions
|
|
@ -33,7 +33,7 @@ struct Light {
|
|||
@group(1) @binding(1) var s_diffuse: sampler;
|
||||
@group(2) @binding(0) var<uniform> light: Light;
|
||||
|
||||
@stage(vertex)
|
||||
@vertex
|
||||
fn vs_main(model: VertexInput, instance: InstanceInput) -> VertexOutput {
|
||||
let model_matrix = mat4x4<f32>(
|
||||
instance.model_matrix_0,
|
||||
|
|
@ -50,7 +50,7 @@ fn vs_main(model: VertexInput, instance: InstanceInput) -> VertexOutput {
|
|||
return out;
|
||||
}
|
||||
|
||||
@stage(fragment)
|
||||
@fragment
|
||||
fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
|
||||
let object_color = textureSample(t_diffuse, s_diffuse, in.tex_coords);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue