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:
parent
aa06e71dee
commit
64d88c684d
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user