diff options
Diffstat (limited to 'src/shader_recompiler/backend')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.cpp b/src/shader_recompiler/backend/spirv/emit_context.cpp index af4fb0c69..0926dcf14 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.cpp +++ b/src/shader_recompiler/backend/spirv/emit_context.cpp | |||
| @@ -911,14 +911,15 @@ void EmitContext::DefineConstantBuffers(const Info& info, u32& binding) { | |||
| 911 | if (info.constant_buffer_descriptors.empty()) { | 911 | if (info.constant_buffer_descriptors.empty()) { |
| 912 | return; | 912 | return; |
| 913 | } | 913 | } |
| 914 | IR::Type types{info.used_constant_buffer_types}; | ||
| 915 | if (!profile.support_descriptor_aliasing) { | 914 | if (!profile.support_descriptor_aliasing) { |
| 916 | DefineConstBuffers(*this, info, &UniformDefinitions::U32x4, binding, U32[4], 'u', | 915 | DefineConstBuffers(*this, info, &UniformDefinitions::U32x4, binding, U32[4], 'u', |
| 917 | sizeof(u32[4])); | 916 | sizeof(u32[4])); |
| 918 | for (const ConstantBufferDescriptor& desc : info.constant_buffer_descriptors) { | 917 | for (const ConstantBufferDescriptor& desc : info.constant_buffer_descriptors) { |
| 919 | binding += desc.count; | 918 | binding += desc.count; |
| 920 | } | 919 | } |
| 920 | return; | ||
| 921 | } | 921 | } |
| 922 | IR::Type types{info.used_constant_buffer_types}; | ||
| 922 | if (True(types & IR::Type::U8)) { | 923 | if (True(types & IR::Type::U8)) { |
| 923 | if (profile.support_int8) { | 924 | if (profile.support_int8) { |
| 924 | DefineConstBuffers(*this, info, &UniformDefinitions::U8, binding, U8, 'u', sizeof(u8)); | 925 | DefineConstBuffers(*this, info, &UniformDefinitions::U8, binding, U8, 'u', sizeof(u8)); |