on-internet
← Community

E_OUTOFMEMORY error when allocating a default heap

Stack Overflow ·

I am investigating a strange out of memory error happening in my renderer. I allocate several meshes. Then this fails: ID3D12Resource* DefaultHeap = nullptr; HRESULT hr = D3D12Device->CreateCommittedResource( &CD3DX12_HEAP_PROPERTIES(D3D12_HEAP_TYPE_DEFAULT), D3D12_HEAP_FLAG_NONE, &CD3DX12_RESOURCE_DESC::Buffer(13574216), D3D12_RESOURCE_STATE_COMMON, nullptr, IID_PPV_ARGS(&DefaultHeap)); if (FAILED(hr)) { if (hr == E_OUTOFMEMORY) { throw OutOfGPUMemoryException(_STRING("Failed to allocate mesh memory")); } } To investigate i output memory stats at program initialization and at the failure poin

Comments

Sign in or sign up to comment and upvote.

No comments yet.