mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 04:29:15 +01:00
[dxvk] Add flag to avoid dedicated allocations for short-lived images
This commit is contained in:
parent
26ed914707
commit
2edc9c880e
@ -216,6 +216,9 @@ namespace dxvk {
|
||||
allocationInfo.properties = m_properties;
|
||||
allocationInfo.mode = mode;
|
||||
|
||||
if (m_info.transient)
|
||||
allocationInfo.mode.set(DxvkAllocationMode::NoDedicated);
|
||||
|
||||
return m_allocator->createImageResource(imageInfo,
|
||||
allocationInfo, sharedMemoryInfo);
|
||||
}
|
||||
|
@ -63,6 +63,9 @@ namespace dxvk {
|
||||
// to be in its default layout after each submission
|
||||
VkBool32 shared = VK_FALSE;
|
||||
|
||||
// Image is likely to have a short lifetime
|
||||
VkBool32 transient = VK_FALSE;
|
||||
|
||||
// Image view formats that can
|
||||
// be used with this image
|
||||
uint32_t viewFormatCount = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user