Skip to content

Commit 2ae533f

Browse files
committed
Move Push Constants index
Signed-off-by: Isaac Marovitz <[email protected]>
1 parent caba156 commit 2ae533f

14 files changed

+14
-14
lines changed

UnleashedRecomp/gpu/shader/msl/blend_color_alpha_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ float4 shaderMain(float4 iPos [[position]],
1414
Interpolators input [[stage_in]],
1515
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
1616
constant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],
17-
constant PushConstants& g_PushConstants [[buffer(8)]])
17+
constant PushConstants& g_PushConstants [[buffer(4)]])
1818
{
1919
texture2d<float> texture = g_Texture2DDescriptorHeap.g[s0_Texture2DDescriptorIndex];
2020
sampler samplerState = g_SamplerDescriptorHeap.g[s0_SamplerDescriptorIndex];

UnleashedRecomp/gpu/shader/msl/copy_color_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct Texture2DDescriptorHeap
88
[[fragment]]
99
float4 shaderMain(float4 position [[position]],
1010
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
11-
constant PushConstants& g_PushConstants [[buffer(8)]])
11+
constant PushConstants& g_PushConstants [[buffer(4)]])
1212
{
1313
return g_Texture2DDescriptorHeap.g[g_PushConstants.ResourceDescriptorIndex].read(uint2(position.xy), 0);
1414
}

UnleashedRecomp/gpu/shader/msl/copy_depth_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ struct PixelShaderOutput
1313
[[fragment]]
1414
PixelShaderOutput shaderMain(float4 position [[position]],
1515
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
16-
constant PushConstants& g_PushConstants [[buffer(8)]])
16+
constant PushConstants& g_PushConstants [[buffer(4)]])
1717
{
1818
PixelShaderOutput output = PixelShaderOutput{};
1919

UnleashedRecomp/gpu/shader/msl/csd_filter_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct Interpolators
1414
float4 shaderMain(Interpolators input [[stage_in]],
1515
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
1616
constant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],
17-
constant PushConstants& g_PushConstants [[buffer(8)]])
17+
constant PushConstants& g_PushConstants [[buffer(4)]])
1818
{
1919
texture2d<float> texture = g_Texture2DDescriptorHeap.g[s0_Texture2DDescriptorIndex];
2020
sampler samplerState = g_SamplerDescriptorHeap.g[s0_SamplerDescriptorIndex];

UnleashedRecomp/gpu/shader/msl/csd_no_tex_vs.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct Interpolators
3434

3535
[[vertex]]
3636
Interpolators shaderMain(VertexShaderInput input [[stage_in]],
37-
constant PushConstants& g_PushConstants [[buffer(8)]])
37+
constant PushConstants& g_PushConstants [[buffer(4)]])
3838
{
3939
Interpolators output;
4040

UnleashedRecomp/gpu/shader/msl/csd_vs.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct Interpolators
3535

3636
[[vertex]]
3737
Interpolators shaderMain(VertexShaderInput input [[stage_in]],
38-
constant PushConstants& g_PushConstants [[buffer(8)]])
38+
constant PushConstants& g_PushConstants [[buffer(4)]])
3939
{
4040
Interpolators output;
4141

UnleashedRecomp/gpu/shader/msl/enhanced_motion_blur_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ float4 shaderMain(float4 position [[position]],
2222
Interpolators input [[stage_in]],
2323
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
2424
constant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],
25-
constant PushConstants& g_PushConstants [[buffer(8)]])
25+
constant PushConstants& g_PushConstants [[buffer(4)]])
2626
{
2727
texture2d<float> sampColor = g_Texture2DDescriptorHeap.g[sampColor_Texture2DDescriptorIndex];
2828
texture2d<float> sampVelocityMap = g_Texture2DDescriptorHeap.g[sampVelocityMap_Texture2DDescriptorIndex];

UnleashedRecomp/gpu/shader/msl/gamma_correction_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[[fragment]]
1010
float4 shaderMain(float4 position [[position]],
1111
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
12-
constant PushConstants& g_PushConstants [[buffer(8)]])
12+
constant PushConstants& g_PushConstants [[buffer(4)]])
1313
{
1414
texture2d<float> texture = g_Texture2DDescriptorHeap.g[g_TextureDescriptorIndex];
1515

UnleashedRecomp/gpu/shader/msl/gaussian_blur.metali

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ float4 shaderMain(float4 iPosition [[position]],
2929
Interpolators input [[stage_in]],
3030
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
3131
constant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(3)]],
32-
constant PushConstants& g_PushConstants [[buffer(8)]])
32+
constant PushConstants& g_PushConstants [[buffer(4)]])
3333
{
3434
texture2d<float> texture = g_Texture2DDescriptorHeap.g[s0_Texture2DDescriptorIndex];
3535
sampler samplerState = g_SamplerDescriptorHeap.g[s0_SamplerDescriptorIndex];

UnleashedRecomp/gpu/shader/msl/imgui_ps.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ float4 SampleSdfFont(float4 color, texture2d<float> texture, float2 uv, float2 s
129129
float4 shaderMain(Interpolators interpolators [[stage_in]],
130130
constant Texture2DDescriptorHeap& g_Texture2DDescriptorHeap [[buffer(0)]],
131131
constant SamplerDescriptorHeap& g_SamplerDescriptorHeap [[buffer(1)]],
132-
constant PushConstants& g_PushConstants [[buffer(8)]])
132+
constant PushConstants& g_PushConstants [[buffer(4)]])
133133
{
134134
float4 color = interpolators.Color;
135135
color *= PixelAntialiasing(interpolators.Position.xy - g_PushConstants.ProceduralOrigin, g_PushConstants);

0 commit comments

Comments
 (0)