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

[dxbc] Add useRawSsbo option

ENabled when we can replace texel buffers for raw and structured
buffers with raw SSBOs.
This commit is contained in:
Philip Rebohle 2018-12-13 12:17:09 +01:00
parent fd201c4c53
commit 48548eb894
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,8 @@ namespace dxvk {
= (devInfo.coreSubgroup.subgroupSize >= 4)
&& (devInfo.coreSubgroup.supportedStages & VK_SHADER_STAGE_FRAGMENT_BIT)
&& (devInfo.coreSubgroup.supportedOperations & VK_SUBGROUP_FEATURE_BALLOT_BIT);
useRawSsbo
= (devInfo.core.properties.limits.minStorageBufferOffsetAlignment <= sizeof(uint32_t));
zeroInitWorkgroupMemory = options.zeroInitWorkgroupMemory;

View File

@ -17,6 +17,10 @@ namespace dxvk {
/// shader invocations if derivatives remain valid.
bool useSubgroupOpsForEarlyDiscard = false;
/// Use SSBOs instead of texel buffers
/// for raw and structured buffers.
bool useRawSsbo = false;
/// Clear thread-group shared memory to zero
bool zeroInitWorkgroupMemory = false;
};