1
0
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:
Philip Rebohle 2025-03-04 02:09:26 +01:00
parent 26ed914707
commit 2edc9c880e
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -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;