This commit is contained in:
Turánszki János
2025-01-18 12:04:58 +01:00
parent 9b9557b29c
commit 55db8abdeb
+3
View File
@@ -3276,6 +3276,9 @@ std::mutex queue_locker;
// (since it has no resource)
D3D12_RESOURCE_ALLOCATION_INFO allocationInfo = device->GetResourceAllocationInfo(0, 1, &resourceDesc);
// D3D12MA ValidateAllocateMemoryParameters requires this, wasn't always true on Xbox:
allocationInfo.SizeInBytes = AlignTo(allocationInfo.SizeInBytes, (UINT64)D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT);
if (resource_heap_tier >= D3D12_RESOURCE_HEAP_TIER_2)
{
allocationDesc.ExtraHeapFlags = D3D12_HEAP_FLAG_ALLOW_ALL_BUFFERS_AND_TEXTURES;