Browse Source
shader_decompiler: add check in case of device not support ShaderStorageImageReadWithoutFormat
pull/15/merge
Nguyen Dac Nam
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
0 deletions
-
src/video_core/renderer_vulkan/vk_shader_decompiler.cpp
|
|
|
@ -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); |
|
|
|
|