Update to wgpu 0.12

This commit is contained in:
Werner
2022-03-31 19:52:27 -03:00
parent b23bc27f55
commit 0a24096e90
7 changed files with 18 additions and 12 deletions

View File

@ -11,7 +11,7 @@ struct VertexOutput {
};
[[stage(vertex)]]
fn main(
fn vs_main(
model: VertexInput,
) -> VertexOutput {
var out: VertexOutput;
@ -23,6 +23,6 @@ fn main(
// Fragment
[[stage(fragment)]]
fn main(in: VertexOutput) -> [[location(0)]] vec4<f32> {
fn fs_main(in: VertexOutput) -> [[location(0)]] vec4<f32> {
return vec4<f32>(in.color, 1.0);
}