mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[dxbc] Add per-device option for deferred kills
This commit is contained in:
parent
ec5572aa69
commit
af62d423b2
@ -35,6 +35,7 @@ namespace dxvk {
|
||||
if (devFeatures.shaderStorageImageReadWithoutFormat)
|
||||
flags.set(DxbcOption::UseStorageImageReadWithoutFormat);
|
||||
|
||||
flags.set(DxbcOption::DeferKill);
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,11 @@ namespace dxvk {
|
||||
/// Use FMin/FMax/FClamp instead of NMin/NMax/NClamp.
|
||||
/// Workaround for bugs in older Nvidia drivers.
|
||||
UseSimpleMinMaxClamp,
|
||||
|
||||
/// Defer kill operation to the end of the shader.
|
||||
/// Fixes derivatives that are undefined due to
|
||||
/// non-uniform control flow in fragment shaders.
|
||||
DeferKill,
|
||||
};
|
||||
|
||||
using DxbcOptions = Flags<DxbcOption>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user