mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-30 10:34:17 +01:00
spirv: Fix code emission when descriptor aliasing is unsupported
Fixes OpenGL.
This commit is contained in:
parent
fb9b1787f8
commit
5b2b0634a1
@ -911,14 +911,15 @@ void EmitContext::DefineConstantBuffers(const Info& info, u32& binding) {
|
|||||||
if (info.constant_buffer_descriptors.empty()) {
|
if (info.constant_buffer_descriptors.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
IR::Type types{info.used_constant_buffer_types};
|
|
||||||
if (!profile.support_descriptor_aliasing) {
|
if (!profile.support_descriptor_aliasing) {
|
||||||
DefineConstBuffers(*this, info, &UniformDefinitions::U32x4, binding, U32[4], 'u',
|
DefineConstBuffers(*this, info, &UniformDefinitions::U32x4, binding, U32[4], 'u',
|
||||||
sizeof(u32[4]));
|
sizeof(u32[4]));
|
||||||
for (const ConstantBufferDescriptor& desc : info.constant_buffer_descriptors) {
|
for (const ConstantBufferDescriptor& desc : info.constant_buffer_descriptors) {
|
||||||
binding += desc.count;
|
binding += desc.count;
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
IR::Type types{info.used_constant_buffer_types};
|
||||||
if (True(types & IR::Type::U8)) {
|
if (True(types & IR::Type::U8)) {
|
||||||
if (profile.support_int8) {
|
if (profile.support_int8) {
|
||||||
DefineConstBuffers(*this, info, &UniformDefinitions::U8, binding, U8, 'u', sizeof(u8));
|
DefineConstBuffers(*this, info, &UniformDefinitions::U8, binding, U8, 'u', sizeof(u8));
|
||||||
|
Loading…
Reference in New Issue
Block a user