diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-05-02 18:17:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-02 18:17:15 -0400 |
| commit | f603dc9763bcedee57619ec192b90f745416c210 (patch) | |
| tree | d492992e88ce199007146d27a0a70b1a9ea80ec9 /src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | |
| parent | 47938541c25528d1122e15b87dc0113bbbe94d13 (diff) | |
| parent | b566c98258ad368fb1c4b18fa5ffeb51ff4b0efb (diff) | |
Merge pull request #10123 from Kelebek1/sample_mask
Define SampleMask as an array
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp index 0cd87a48f..fee510f7b 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp @@ -473,7 +473,8 @@ void EmitSetFragColor(EmitContext& ctx, u32 index, u32 component, Id value) { } void EmitSetSampleMask(EmitContext& ctx, Id value) { - ctx.OpStore(ctx.sample_mask, value); + const Id pointer{ctx.OpAccessChain(ctx.output_u32, ctx.sample_mask, ctx.u32_zero_value)}; + ctx.OpStore(pointer, value); } void EmitSetFragDepth(EmitContext& ctx, Id value) { |
