Skip to content

Commit

Permalink
switch to bind group 2 for custom shader bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-reinhart committed Mar 5, 2024
1 parent 12ef5c6 commit be87819
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions assets/shaders/custom.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ fn vertex(vertex: Vertex) -> VertexOutput {
return out;
}

@group(1) @binding(0)
@group(2) @binding(0)
var texture: texture_2d<f32>;
@group(1) @binding(1)
@group(2) @binding(1)
var texture_sampler: sampler;

@group(1) @binding(2)
@group(2) @binding(2)
var<uniform> time: f32;

@fragment
Expand Down
4 changes: 2 additions & 2 deletions src/spine.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ fn vertex(vertex: Vertex) -> VertexOutput {
return out;
}

@group(1) @binding(0)
@group(2) @binding(0)
var texture: texture_2d<f32>;
@group(1) @binding(1)
@group(2) @binding(1)
var texture_sampler: sampler;

@fragment
Expand Down

0 comments on commit be87819

Please sign in to comment.