Skip to content
Snippets Groups Projects
Unverified Commit 88cb05e6 authored by Nguyen Dac Nam's avatar Nguyen Dac Nam Committed by GitHub
Browse files

shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat

parent e61c7e93
No related branches found
No related tags found
No related merge requests found
...@@ -1749,6 +1749,10 @@ private: ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment