yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

shader_recompiler: SPIRV: Only enable int64 feature when supported

This commit is contained in:
Billy Laws 2022-11-19 15:53:19 +00:00
parent c1cc99584c
commit 3f0985c7b0
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ void EmitContext::DefineCommonTypes(const Info& info) {
U16 = Name(TypeInt(16, false), "u16"); U16 = Name(TypeInt(16, false), "u16");
S16 = Name(TypeInt(16, true), "s16"); S16 = Name(TypeInt(16, true), "s16");
} }
if (info.uses_int64) { if (info.uses_int64 && profile.support_int64) {
AddCapability(spv::Capability::Int64); AddCapability(spv::Capability::Int64);
U64 = Name(TypeInt(64, false), "u64"); U64 = Name(TypeInt(64, false), "u64");
} }