summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-06-25 09:38:55 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:39 +0200
commit5b2b0634a1e6b9fd30999d052255669cbf9c5ef6 (patch)
tree52019caab7c3ab3d881fd925b5fc7f3cca23f446 /src
parentvideo_core: Enable GL SPIR-V shaders (diff)
downloadyuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar.gz
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar.bz2
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar.lz
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar.xz
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.tar.zst
yuzu-5b2b0634a1e6b9fd30999d052255669cbf9c5ef6.zip
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/backend/spirv/emit_context.cpp3
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) {
if (info.constant_buffer_descriptors.empty()) {
return;
}
- IR::Type types{info.used_constant_buffer_types};
if (!profile.support_descriptor_aliasing) {
DefineConstBuffers(*this, info, &UniformDefinitions::U32x4, binding, U32[4], 'u',
sizeof(u32[4]));
for (const ConstantBufferDescriptor& desc : info.constant_buffer_descriptors) {
binding += desc.count;
}
+ return;
}
+ IR::Type types{info.used_constant_buffer_types};
if (True(types & IR::Type::U8)) {
if (profile.support_int8) {
DefineConstBuffers(*this, info, &UniformDefinitions::U8, binding, U8, 'u', sizeof(u8));