5 #include <tbb/concurrent_unordered_set.h> 7 #include <ResourceManager/UploadBuffer.h> 23 static void EraseAll() noexcept;
27 static ID3D12Resource& LoadTextureFromFile(
const char* textureFilename,
28 ID3D12GraphicsCommandList& commandList,
29 Microsoft::WRL::ComPtr<ID3D12Resource>& uploadBuffer,
30 const wchar_t* resourceName) noexcept;
41 static ID3D12Resource& CreateDefaultBuffer(ID3D12GraphicsCommandList& commandList,
42 const void* sourceData,
43 const std::size_t sourceDataSize,
44 Microsoft::WRL::ComPtr<ID3D12Resource>& uploadBuffer,
45 const wchar_t* resourceName) noexcept;
49 static ID3D12Resource& CreateCommittedResource(
const D3D12_HEAP_PROPERTIES& heapProperties,
50 const D3D12_HEAP_FLAGS& heapFlags,
51 const D3D12_RESOURCE_DESC& resourceDescriptor,
52 const D3D12_RESOURCE_STATES& resourceStates,
53 const D3D12_CLEAR_VALUE* clearValue,
54 const wchar_t* resourceName) noexcept;
60 static std::mutex mMutex;
Definition: concurrent_unordered_set.h:58
Definition: ResourceManager.h:14