Go to the documentation of this file.
96 return m_BaseBindings[Index];
101 return m_NumPixelUAVs;
104 #ifdef DILIGENT_DEVELOPMENT
105 using ShaderResourceCacheArrayType = std::array<ShaderResourceCacheD3D11*, MAX_RESOURCE_SIGNATURES>;
106 using BaseBindingsArrayType = std::array<D3D11ShaderResourceCounters, MAX_RESOURCE_SIGNATURES>;
107 void DvpVerifySRBResources(
const ShaderResourceCacheArrayType& ResourceCaches,
108 const BaseBindingsArrayType& BaseBindings)
const;
112 template <
typename PSOCreateInfoType>
113 void InitInternalObjects(
const PSOCreateInfoType& CreateInfo,
114 CComPtr<ID3DBlob>& pVSByteCode);
117 const std::vector<ShaderD3D11Impl*>& Shaders,
118 CComPtr<ID3DBlob>& pVSByteCode);
122 const std::vector<ShaderD3D11Impl*>& Shaders);
128 template <
typename D3D11ShaderType>
129 D3D11ShaderType* GetD3D11Shader(
Uint32 ShaderInd)
131 auto idx = m_ShaderIndices[ShaderInd];
132 return idx >= 0 ?
static_cast<D3D11ShaderType*
>(m_ppd3d11Shaders[idx].p) :
nullptr;
137 std::array<Int8, D3D11ResourceBindPoints::NumShaderTypes> m_ShaderIndices = {-1, -1, -1, -1, -1, -1};
140 Uint8 m_NumShaders = 0;
143 Uint8 m_NumPixelUAVs = 0;
145 CComPtr<ID3D11BlendState> m_pd3d11BlendState;
146 CComPtr<ID3D11RasterizerState> m_pd3d11RasterizerState;
147 CComPtr<ID3D11DepthStencilState> m_pd3d11DepthStencilState;
148 CComPtr<ID3D11InputLayout> m_pd3d11InputLayout;
150 using D3D11ShaderAutoPtrType = CComPtr<ID3D11DeviceChild>;
151 D3D11ShaderAutoPtrType* m_ppd3d11Shaders =
nullptr;
155 #ifdef DILIGENT_DEVELOPMENT
157 std::vector<std::shared_ptr<const ShaderResourcesD3D11>> m_ShaderResources;
160 std::vector<ResourceAttribution> m_ResourceAttibutions;
Base interface for a reference counter object that stores the number of strong and weak references an...
Definition: ReferenceCounters.h:44
Graphics pipeline state creation attributes.
Definition: PipelineState.h:397
virtual ID3D11DepthStencilState * GetD3D11DepthStencilState() override final
Implementation of IPipelineStateD3D11::GetD3D11DepthStencilState() method.
Definition: PipelineStateD3D11Impl.hpp:68
virtual ID3D11InputLayout * GetD3D11InputLayout() override final
Implementation of IPipelineStateD3D11::GetD3D11InputLayout() method.
Definition: PipelineStateD3D11Impl.hpp:71
Pipeline state interface.
Definition: PipelineState.h:505
Base interface for all dynamic objects in the engine.
Definition: Object.h:41
virtual void QueryInterface(const INTERFACE_ID &IID, IObject **ppInterface) override final
Pipeline state object implementation in Direct3D11 backend.
Definition: PipelineStateD3D11Impl.hpp:43
virtual ID3D11HullShader * GetD3D11HullShader() override final
Implementation of IPipelineStateD3D11::GetD3D11HullShader() method.
Definition: PipelineStateD3D11Impl.hpp:86
Unique interface identifier.
Definition: InterfaceID.h:37
~PipelineStateD3D11Impl()
Definition: PipelineStateD3D11Impl.cpp:352
std::array< D3D11ResourceRangeCounters, D3D11_RESOURCE_RANGE_COUNT > D3D11ShaderResourceCounters
Resource counters for all shader stages and all resource types.
Definition: PipelineResourceAttribsD3D11.hpp:271
Pipeline state creation attributes.
Definition: PipelineState.h:370
virtual ID3D11ComputeShader * GetD3D11ComputeShader() override final
Implementation of IPipelineStateD3D11::GetD3D11ComputeShader() method.
Definition: PipelineStateD3D11Impl.hpp:89
Template class that implements reference counting.
Definition: RefCntAutoPtr.hpp:73
#define DILIGENT_CALL_TYPE
Definition: CommonDefinitions.h:45
Compute pipeline state description.
Definition: PipelineState.h:427
const D3D11ShaderResourceCounters & GetBaseBindings(Uint32 Index) const
Definition: PipelineStateD3D11Impl.hpp:93
uint32_t Uint32
32-bit unsigned integer
Definition: BasicTypes.h:51
virtual ID3D11VertexShader * GetD3D11VertexShader() override final
Implementation of IPipelineStateD3D11::GetD3D11VertexShader() method.
Definition: PipelineStateD3D11Impl.hpp:74
virtual ID3D11DomainShader * GetD3D11DomainShader() override final
Implementation of IPipelineStateD3D11::GetD3D11DomainShader() method.
Definition: PipelineStateD3D11Impl.hpp:83
virtual ID3D11GeometryShader * GetD3D11GeometryShader() override final
Implementation of IPipelineStateD3D11::GetD3D11GeometryShader() method.
Definition: PipelineStateD3D11Impl.hpp:80
virtual bool IsCompatibleWith(const IPipelineState *pPSO) const override final
Implementation of IPipelineState::IsCompatibleWith() in Direct3D11 backend.
Definition: PipelineStateD3D11Impl.cpp:374
virtual ID3D11BlendState * GetD3D11BlendState() override final
Implementation of IPipelineStateD3D11::GetD3D11BlendState() method.
Definition: PipelineStateD3D11Impl.hpp:62
virtual Uint32 GetResourceSignatureCount() const override final
Implementation of IPipelineState::GetResourceSignatureCount().
Definition: PipelineStateBase.hpp:426
virtual ID3D11RasterizerState * GetD3D11RasterizerState() override final
Implementation of IPipelineStateD3D11::GetD3D11RasterizerState() method.
Definition: PipelineStateD3D11Impl.hpp:65
Shader implementation in Direct3D11 backend.
Definition: ShaderD3D11Impl.hpp:48
uint8_t Uint8
8-bit unsigned integer
Definition: BasicTypes.h:53
#define VERIFY_EXPR(...)
Definition: DebugUtilities.hpp:79
Render device implementation in Direct3D11 backend.
Definition: RenderDeviceD3D11Impl.hpp:40
PipelineStateD3D11Impl(IReferenceCounters *pRefCounters, class RenderDeviceD3D11Impl *pDeviceD3D11, const GraphicsPipelineStateCreateInfo &CreateInfo)
Definition: PipelineStateD3D11Impl.cpp:285
Template class implementing base functionality of the pipeline state object.
Definition: PipelineStateBase.hpp:99
virtual ID3D11PixelShader * GetD3D11PixelShader() override final
Implementation of IPipelineStateD3D11::GetD3D11PixelShader() method.
Definition: PipelineStateD3D11Impl.hpp:77
Uint8 GetNumPixleUAVs() const
Definition: PipelineStateD3D11Impl.hpp:99
Uint32 GetNumShaders() const
Definition: PipelineStateD3D11Impl.hpp:91
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37