From ecb0301cc69d1d501e313041bce4dd82fbfb0439 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 13 Oct 2022 12:02:42 +0200 Subject: [PATCH] Update order of code --- crates/fj-viewer/src/graphics/shader.wgsl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/fj-viewer/src/graphics/shader.wgsl b/crates/fj-viewer/src/graphics/shader.wgsl index 0dc10d89e..bb0011c5c 100644 --- a/crates/fj-viewer/src/graphics/shader.wgsl +++ b/crates/fj-viewer/src/graphics/shader.wgsl @@ -1,3 +1,11 @@ +struct Uniforms { + transform: mat4x4, + transform_normals: mat4x4, +}; + +@group(0) @binding(0) +var uniforms: Uniforms; + struct VertexInput { @location(0) position: vec3, @location(1) normal: vec3, @@ -10,14 +18,6 @@ struct VertexOutput { @location(1) color: vec4, }; -struct Uniforms { - transform: mat4x4, - transform_normals: mat4x4, -}; - -@group(0) @binding(0) -var uniforms: Uniforms; - @vertex fn vertex(in: VertexInput) -> VertexOutput { var out: VertexOutput;