mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Add flag to avoid creating dedicated allocations
This commit is contained in:
parent
77216867cc
commit
26ed914707
@ -932,6 +932,9 @@ namespace dxvk {
|
|||||||
dedicatedRequirements.prefersDedicatedAllocation = VK_TRUE;
|
dedicatedRequirements.prefersDedicatedAllocation = VK_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!dedicatedRequirements.requiresDedicatedAllocation && allocationInfo.mode.test(DxvkAllocationMode::NoDedicated))
|
||||||
|
dedicatedRequirements.prefersDedicatedAllocation = VK_FALSE;
|
||||||
|
|
||||||
Rc<DxvkResourceAllocation> allocation;
|
Rc<DxvkResourceAllocation> allocation;
|
||||||
|
|
||||||
if (!(createInfo.flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT)) {
|
if (!(createInfo.flags & VK_IMAGE_CREATE_SPARSE_BINDING_BIT)) {
|
||||||
|
@ -959,6 +959,8 @@ namespace dxvk {
|
|||||||
/// If set, the allocation will only succeed if it
|
/// If set, the allocation will only succeed if it
|
||||||
/// can be suballocated from an existing chunk.
|
/// can be suballocated from an existing chunk.
|
||||||
NoAllocation = 1,
|
NoAllocation = 1,
|
||||||
|
/// Avoid using a dedicated allocation for this resource
|
||||||
|
NoDedicated = 2,
|
||||||
|
|
||||||
eFlagEnum
|
eFlagEnum
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user