diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-08 02:14:02 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-08 02:14:02 +0000 |
| commit | be1319dd854481d75d51b2bfe85414fe3a3387ab (patch) | |
| tree | 6052da4337c8957dd1a4cf56a163c92778dab290 /Graphics/GraphicsEngineD3D12 | |
| parent | Improved buffer stride management in PSO (diff) | |
| download | DiligentCore-be1319dd854481d75d51b2bfe85414fe3a3387ab.tar.gz DiligentCore-be1319dd854481d75d51b2bfe85414fe3a3387ab.zip | |
A bunch of minor code improvements
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
| -rw-r--r-- | Graphics/GraphicsEngineD3D12/include/ShaderResourceLayoutD3D12.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Graphics/GraphicsEngineD3D12/include/ShaderResourceLayoutD3D12.h b/Graphics/GraphicsEngineD3D12/include/ShaderResourceLayoutD3D12.h index 35ddfbc7..50ffa499 100644 --- a/Graphics/GraphicsEngineD3D12/include/ShaderResourceLayoutD3D12.h +++ b/Graphics/GraphicsEngineD3D12/include/ShaderResourceLayoutD3D12.h @@ -325,15 +325,16 @@ private: const std::array<Uint32, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES>& CbvSrvUavCount, const std::array<Uint32, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES>& SamplerCount); - std::unique_ptr<void, STDDeleterRawMem<void> > m_ResourceBuffer; - std::array<Uint16, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES + 1> m_CbvSrvUavOffsets = {}; - std::array<Uint16, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES + 1> m_SamplersOffsets = {}; - - IObject& m_Owner; - CComPtr<ID3D12Device> m_pd3d12Device; - // We must use shared_ptr to reference ShaderResources instance, because - // there may be multiple objects referencing the same set of resources - std::shared_ptr<const ShaderResourcesD3D12> m_pResources; +/* 0 */ std::unique_ptr<void, STDDeleterRawMem<void> > m_ResourceBuffer; +/* 16 */ std::array<Uint16, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES + 1> m_CbvSrvUavOffsets = {}; +/* 24 */ std::array<Uint16, SHADER_RESOURCE_VARIABLE_TYPE_NUM_TYPES + 1> m_SamplersOffsets = {}; + +/* 32 */ IObject& m_Owner; +/* 48 */ CComPtr<ID3D12Device> m_pd3d12Device; + // We must use shared_ptr to reference ShaderResources instance, because + // there may be multiple objects referencing the same set of resources +/* 48 */ std::shared_ptr<const ShaderResourcesD3D12> m_pResources; +/* 64 */ // End of data }; } |
