mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-15 22:07:48 +00:00
shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat
This commit is contained in:
parent
1ed0d4faea
commit
102d52ad68
1 changed files with 4 additions and 0 deletions
|
@ -1749,6 +1749,10 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression ImageLoad(Operation operation) {
|
Expression ImageLoad(Operation operation) {
|
||||||
|
if (!device.IsShaderStorageImageReadWithoutFormatSupported()) {
|
||||||
|
return {v_float_zero, Type::Float};
|
||||||
|
}
|
||||||
|
|
||||||
const auto& meta{std::get<MetaImage>(operation.GetMeta())};
|
const auto& meta{std::get<MetaImage>(operation.GetMeta())};
|
||||||
|
|
||||||
const Id coords = GetCoordinates(operation, Type::Int);
|
const Id coords = GetCoordinates(operation, Type::Int);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue