Go to the documentation of this file.
44 ID3DBlob* pShaderBytecode,
46 const char* CombinedSamplerSuffix);
62 using MaxBindPointType =
Int8;
65 MaxBindPointType m_MaxCBBindPoint = -1;
66 MaxBindPointType m_MaxSRVBindPoint = -1;
67 MaxBindPointType m_MaxSamplerBindPoint = -1;
68 MaxBindPointType m_MaxUAVBindPoint = -1;
71 static_assert(D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT-1 <= MaxAllowedBindPoint,
"Not enough bits to represent max CB slot" );
72 static_assert(D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT-1 <= MaxAllowedBindPoint,
"Not enough bits to represent max SRV slot");
73 static_assert(D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT-1 <= MaxAllowedBindPoint,
"Not enough bits to represent max Sampler slot");
74 static_assert(D3D11_PS_CS_UAV_REGISTER_COUNT-1 <= MaxAllowedBindPoint,
"Not enough bits to represent max UAV slot");
~ShaderResourcesD3D11()
Definition: ShaderResourcesD3D11.cpp:125
__forceinline Int32 GetMaxCBBindPoint() const
Definition: ShaderResourcesD3D11.hpp:55
ShaderResourcesD3D11 & operator=(const ShaderResourcesD3D11 &)=delete
__forceinline Int32 GetMaxUAVBindPoint() const
Definition: ShaderResourcesD3D11.hpp:58
Vector3< T > max(const Vector3< T > &a, const Vector3< T > &b)
Definition: BasicMath.hpp:1660
__forceinline Int32 GetMaxSRVBindPoint() const
Definition: ShaderResourcesD3D11.hpp:56
int32_t Int32
32-bit signed integer
Definition: BasicTypes.h:46
int8_t Int8
8-bit signed integer
Definition: BasicTypes.h:48
Shader description.
Definition: Shader.h:110
Diligent::ShaderResourcesD3D11 class.
Definition: ShaderResourcesD3D11.hpp:39
Diligent::ShaderResources class.
Definition: ShaderResources.hpp:266
Render device implementation in Direct3D11 backend.
Definition: RenderDeviceD3D11Impl.hpp:40
ShaderResourcesD3D11(class RenderDeviceD3D11Impl *pDeviceD3D11Impl, ID3DBlob *pShaderBytecode, const ShaderDesc &ShdrDesc, const char *CombinedSamplerSuffix)
Definition: ShaderResourcesD3D11.cpp:39
__forceinline Int32 GetMaxSamplerBindPoint() const
Definition: ShaderResourcesD3D11.hpp:57
The library uses Direct3D-style math:
Definition: AdvancedMath.hpp:37