mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
[d3d11] Implement depth bounds extension
This commit is contained in:
parent
3867270812
commit
a0c67191a7
@ -108,7 +108,16 @@ namespace dxvk {
|
|||||||
BOOL Enable,
|
BOOL Enable,
|
||||||
FLOAT MinDepthBounds,
|
FLOAT MinDepthBounds,
|
||||||
FLOAT MaxDepthBounds) {
|
FLOAT MaxDepthBounds) {
|
||||||
|
D3D10DeviceLock lock = m_ctx->LockContext();
|
||||||
|
|
||||||
|
DxvkDepthBounds db;
|
||||||
|
db.enableDepthBounds = Enable;
|
||||||
|
db.minDepthBounds = MinDepthBounds;
|
||||||
|
db.maxDepthBounds = MaxDepthBounds;
|
||||||
|
|
||||||
|
m_ctx->EmitCs([cDepthBounds = db] (DxvkContext* ctx) {
|
||||||
|
ctx->setDepthBounds(cDepthBounds);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1411,6 +1411,7 @@ namespace dxvk {
|
|||||||
enabled.core.features.robustBufferAccess = VK_TRUE;
|
enabled.core.features.robustBufferAccess = VK_TRUE;
|
||||||
enabled.core.features.shaderStorageImageExtendedFormats = VK_TRUE;
|
enabled.core.features.shaderStorageImageExtendedFormats = VK_TRUE;
|
||||||
enabled.core.features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
enabled.core.features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
||||||
|
enabled.core.features.depthBounds = supported.core.features.depthBounds;
|
||||||
|
|
||||||
enabled.extMemoryPriority.memoryPriority = supported.extMemoryPriority.memoryPriority;
|
enabled.extMemoryPriority.memoryPriority = supported.extMemoryPriority.memoryPriority;
|
||||||
|
|
||||||
@ -1786,6 +1787,9 @@ namespace dxvk {
|
|||||||
return deviceFeatures.core.features.multiDrawIndirect
|
return deviceFeatures.core.features.multiDrawIndirect
|
||||||
&& deviceExtensions.khrDrawIndirectCount;
|
&& deviceExtensions.khrDrawIndirectCount;
|
||||||
|
|
||||||
|
case D3D11_VK_EXT_DEPTH_BOUNDS:
|
||||||
|
return deviceFeatures.core.features.depthBounds;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user