mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxbc] Decorate untyped write-only UAVs as NonReadable
This commit is contained in:
parent
04bc13929f
commit
c370eea948
@ -888,6 +888,12 @@ namespace dxvk {
|
|||||||
if (ins.controls.uavFlags().test(DxbcUavFlag::GloballyCoherent))
|
if (ins.controls.uavFlags().test(DxbcUavFlag::GloballyCoherent))
|
||||||
m_module.decorate(varId, spv::DecorationCoherent);
|
m_module.decorate(varId, spv::DecorationCoherent);
|
||||||
|
|
||||||
|
// On GPUs which don't support storageImageReadWithoutFormat,
|
||||||
|
// we have to decorate untyped UAVs as write-only
|
||||||
|
if (isUav && imageFormat == spv::ImageFormatUnknown
|
||||||
|
&& !m_moduleInfo.options.test(DxbcOption::UseStorageImageReadWithoutFormat))
|
||||||
|
m_module.decorate(varId, spv::DecorationNonReadable);
|
||||||
|
|
||||||
// Declare a specialization constant which will
|
// Declare a specialization constant which will
|
||||||
// store whether or not the resource is bound.
|
// store whether or not the resource is bound.
|
||||||
const uint32_t specConstId = m_module.specConstBool(true);
|
const uint32_t specConstId = m_module.specConstBool(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user