shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat

pull/8/head
Nguyen Dac Nam 5 years ago committed by GitHub
parent e61c7e9310
commit 88cb05e6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save