shader_decompiler: only add StorageImageReadWithoutFormat when available

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

@ -274,7 +274,6 @@ public:
AddCapability(spv::Capability::ImageBuffer);
AddCapability(spv::Capability::ImageGatherExtended);
AddCapability(spv::Capability::SampledBuffer);
AddCapability(spv::Capability::StorageImageReadWithoutFormat);
AddCapability(spv::Capability::StorageImageWriteWithoutFormat);
AddCapability(spv::Capability::SubgroupBallotKHR);
AddCapability(spv::Capability::SubgroupVoteKHR);
@ -290,6 +289,10 @@ public:
AddCapability(spv::Capability::ShaderViewportIndexLayerEXT);
}
}
if (device.IsShaderStorageImageReadWithoutFormatSupported()) {
AddCapability(spv::Capability::StorageImageReadWithoutFormat);
}
if (device.IsFloat16Supported()) {
AddCapability(spv::Capability::Float16);

Loading…
Cancel
Save