diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-11-24 01:32:30 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-11-24 01:32:30 +0000 |
| commit | 3c7f55a9e031ec4d0fb469ee8c1a6b86debe345a (patch) | |
| tree | 86c370aea12a764d46680064f41d960a2c50c03f /Graphics/GraphicsEngineD3DBase | |
| parent | Added IShaderResourceBinding::InitializeStaticResources() method to allow exp... (diff) | |
| download | DiligentCore-3c7f55a9e031ec4d0fb469ee8c1a6b86debe345a.tar.gz DiligentCore-3c7f55a9e031ec4d0fb469ee8c1a6b86debe345a.zip | |
Removed default shader resource binding object
Diffstat (limited to 'Graphics/GraphicsEngineD3DBase')
| -rw-r--r-- | Graphics/GraphicsEngineD3DBase/include/ShaderResources.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Graphics/GraphicsEngineD3DBase/include/ShaderResources.h b/Graphics/GraphicsEngineD3DBase/include/ShaderResources.h index b13e5e18..c1b67ca5 100644 --- a/Graphics/GraphicsEngineD3DBase/include/ShaderResources.h +++ b/Graphics/GraphicsEngineD3DBase/include/ShaderResources.h @@ -302,12 +302,13 @@ public: ~ShaderResources(); - Uint32 GetNumCBs() const noexcept{ return (m_TexSRVOffset - 0); } - Uint32 GetNumTexSRV() const noexcept{ return (m_TexUAVOffset - m_TexSRVOffset); } - Uint32 GetNumTexUAV() const noexcept{ return (m_BufSRVOffset - m_TexUAVOffset); } - Uint32 GetNumBufSRV() const noexcept{ return (m_BufUAVOffset - m_BufSRVOffset); } - Uint32 GetNumBufUAV() const noexcept{ return (m_SamplersOffset - m_BufUAVOffset); } - Uint32 GetNumSamplers()const noexcept{ return (m_TotalResources - m_SamplersOffset); } + Uint32 GetNumCBs() const noexcept{ return (m_TexSRVOffset - 0); } + Uint32 GetNumTexSRV() const noexcept{ return (m_TexUAVOffset - m_TexSRVOffset); } + Uint32 GetNumTexUAV() const noexcept{ return (m_BufSRVOffset - m_TexUAVOffset); } + Uint32 GetNumBufSRV() const noexcept{ return (m_BufUAVOffset - m_BufSRVOffset); } + Uint32 GetNumBufUAV() const noexcept{ return (m_SamplersOffset - m_BufUAVOffset); } + Uint32 GetNumSamplers() const noexcept{ return (m_TotalResources - m_SamplersOffset); } + Uint32 GetTotalResources()const noexcept{ return m_TotalResources; } const D3DShaderResourceAttribs& GetCB (Uint32 n)const noexcept{ return GetResAttribs(n, GetNumCBs(), 0); } const D3DShaderResourceAttribs& GetTexSRV (Uint32 n)const noexcept{ return GetResAttribs(n, GetNumTexSRV(), m_TexSRVOffset); } |
