Skip to content

Commit

Permalink
Add 1 to samplerIndex on compute shader since the struct is the same …
Browse files Browse the repository at this point in the history
…for all stages now
  • Loading branch information
gdkchan committed May 3, 2023
1 parent d2635da commit 3c84483
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ivec2 Helper_TexelFetchScale(ivec2 inputVec, int samplerIndex)
{
float scale = support_buffer.s_render_scale[samplerIndex];
float scale = support_buffer.s_render_scale[1 + samplerIndex];
if (scale == 1.0)
{
return inputVec;
Expand All @@ -10,7 +10,7 @@

int Helper_TextureSizeUnscale(int size, int samplerIndex)
{
float scale = support_buffer.s_render_scale[samplerIndex];
float scale = support_buffer.s_render_scale[1 + samplerIndex];
if (scale == 1.0)
{
return size;
Expand Down

0 comments on commit 3c84483

Please sign in to comment.