7 #include <Utils/DebugUtils.h> 21 static void Init() noexcept;
31 static D3D12_GPU_DESCRIPTOR_HANDLE CreateConstantBufferView(
const D3D12_CONSTANT_BUFFER_VIEW_DESC& cBufferViewDescriptor) noexcept;
36 static D3D12_GPU_DESCRIPTOR_HANDLE CreateConstantBufferViews(
const D3D12_CONSTANT_BUFFER_VIEW_DESC* descriptors,
37 const std::uint32_t descriptorCount) noexcept;
39 static D3D12_GPU_DESCRIPTOR_HANDLE CreateShaderResourceView(ID3D12Resource& resource,
40 const D3D12_SHADER_RESOURCE_VIEW_DESC& shaderResourceViewDescriptor) noexcept;
46 static D3D12_GPU_DESCRIPTOR_HANDLE CreateShaderResourceViews(ID3D12Resource* *resources,
47 const D3D12_SHADER_RESOURCE_VIEW_DESC* descriptors,
48 const std::uint32_t descriptorCount) noexcept;
50 static D3D12_GPU_DESCRIPTOR_HANDLE CreateUnorderedAccessView(ID3D12Resource& resource,
51 const D3D12_UNORDERED_ACCESS_VIEW_DESC& descriptor) noexcept;
57 static D3D12_GPU_DESCRIPTOR_HANDLE CreateUnorderedAccessViews(ID3D12Resource* *resources,
58 const D3D12_UNORDERED_ACCESS_VIEW_DESC* descriptors,
59 const std::uint32_t descriptorCount) noexcept;
61 static ID3D12DescriptorHeap& GetDescriptorHeap() noexcept
63 BRE_ASSERT(mCbvSrvUavDescriptorHeap.Get() !=
nullptr);
64 return *mCbvSrvUavDescriptorHeap.Get();
68 static Microsoft::WRL::ComPtr<ID3D12DescriptorHeap> mCbvSrvUavDescriptorHeap;
70 static D3D12_GPU_DESCRIPTOR_HANDLE mCurrentCbvSrvUavGpuDescriptorHandle;
71 static D3D12_CPU_DESCRIPTOR_HANDLE mCurrentCbvSrvUavCpuDescriptorHandle;
73 static std::mutex mMutex;
Definition: CbvSrvUavDescriptorManager.h:12