mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 22:41:20 -08:00
shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat
This commit is contained in:
parent
e61c7e9310
commit
88cb05e6e7
@ -1749,6 +1749,10 @@ private:
|
||||
}
|
||||
|
||||
Expression ImageLoad(Operation operation) {
|
||||
if (!device.IsShaderStorageImageReadWithoutFormatSupported()) {
|
||||
return {v_float_zero, Type::Float};
|
||||
}
|
||||
|
||||
const auto& meta{std::get<MetaImage>(operation.GetMeta())};
|
||||
|
||||
const Id coords = GetCoordinates(operation, Type::Int);
|
||||
|
Loading…
Reference in New Issue
Block a user