1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-05 01:24:14 +01:00

[dxbc] Explicitly cast down to VkAccessFlags when assinging binding.access

Otherwise both halves of the terniary are differing types causing a warning.
This commit is contained in:
Joshua Ashton 2022-09-10 21:04:18 +00:00 committed by Joshie
parent aa06e71dee
commit 64d88c684d

View File

@ -1206,7 +1206,7 @@ namespace dxvk {
binding.resourceBinding = bindingId;
binding.access = isUav
? m_analysis->uavInfos[registerId].accessFlags
: VK_ACCESS_SHADER_READ_BIT;
: VkAccessFlags(VK_ACCESS_SHADER_READ_BIT);
if (useRawSsbo || isUav) {
if (!(binding.access & VK_ACCESS_SHADER_WRITE_BIT))