Render device interface.
More...
|
virtual void | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0 |
| Queries the specific interface, see IObject::QueryInterface() for details.
|
|
virtual void | CreateBuffer (const BufferDesc &BuffDesc, const BufferData &BuffData, IBuffer **ppBuffer)=0 |
| Creates a new buffer object. More...
|
|
virtual void | CreateShader (const ShaderCreationAttribs &CreationAttribs, IShader **ppShader)=0 |
| Creates a new shader object. More...
|
|
virtual void | CreateTexture (const TextureDesc &TexDesc, const TextureData &Data, ITexture **ppTexture)=0 |
| Creates a new texture object. More...
|
|
virtual void | CreateSampler (const SamplerDesc &SamDesc, ISampler **ppSampler)=0 |
| Creates a new sampler object. More...
|
|
virtual void | CreateResourceMapping (const ResourceMappingDesc &MappingDesc, IResourceMapping **ppMapping)=0 |
| Creates a new resource mapping. More...
|
|
virtual void | CreatePipelineState (const PipelineStateDesc &PipelineDesc, IPipelineState **ppPipelineState)=0 |
| Creates a new pipeline state object. More...
|
|
virtual const DeviceCaps & | GetDeviceCaps () const =0 |
| Gets the device capabilities, see Diligent::DeviceCaps for details.
|
|
virtual const TextureFormatInfo & | GetTextureFormatInfo (TEXTURE_FORMAT TexFormat)=0 |
| Returns the basic texture format information. More...
|
|
virtual const TextureFormatInfoExt & | GetTextureFormatInfoExt (TEXTURE_FORMAT TexFormat)=0 |
| Returns the extended texture format information. More...
|
|
◆ CreateBuffer()
Creates a new buffer object.
- Parameters
-
[in] | BuffDesc | - Buffer description, see Diligent::BufferDesc for details. |
[in] | BuffData | - Reference to a Diligent::BufferData structure that describes the initialization data. To allocate space only, provide default value BufferData(). Static buffers (USAGE_STATIC) must be initialized at creation time. |
[out] | ppBuffer | - Address of the memory location where the pointer to the buffer interface will be stored. The function calls AddRef(), so that the new buffer will contain one refernce and must be released by a call to Release(). |
◆ CreatePipelineState()
Creates a new pipeline state object.
- Parameters
-
[in] | PipelineDesc | - Pipeline state description, see Diligent::PipelineStateDesc for details. |
[out] | ppPipelineState | - Address of the memory location where the pointer to the pipeline state interface will be stored. The function calls AddRef(), so that the new object will contain one refernce. |
◆ CreateResourceMapping()
Creates a new resource mapping.
- Parameters
-
[in] | MappingDesc | - Resource mapping description, see Diligent::ResourceMappingDesc for details. |
[out] | ppMapping | - Address of the memory location where the pointer to the resource mapping interface will be stored. The function calls AddRef(), so that the new object will contain one refernce. |
◆ CreateSampler()
virtual void Diligent::IRenderDevice::CreateSampler |
( |
const SamplerDesc & |
SamDesc, |
|
|
ISampler ** |
ppSampler |
|
) |
| |
|
pure virtual |
Creates a new sampler object.
- Parameters
-
[in] | SamDesc | - Sampler description, see Diligent::SamplerDesc for details. |
[out] | ppSampler | - Address of the memory location where the pointer to the sampler interface will be stored. The function calls AddRef(), so that the new object will contain one refernce. |
- Note
- In D3D11, 4096 unique sampler state objects can be created on a device at a time.
◆ CreateShader()
Creates a new shader object.
- Parameters
-
[in] | CreationAttribs | - Shader creation attributes, see Diligent::ShaderCreationAttribs for details. |
[out] | ppShader | - Address of the memory location where the pointer to the shader interface will be stored. The function calls AddRef(), so that the new object will contain one refernce. |
◆ CreateTexture()
Creates a new texture object.
- Parameters
-
[in] | TexDesc | - Texture description, see Diligent::TextureDesc for details. |
[in] | Data | - Reference to a Diligent::TextureData structure that describes the initialization data. To allocate space only, provide default value TextureData(). Static textures (USAGE_STATIC) must be initialized at creation time. |
[out] | ppTexture | - Address of the memory location where the pointer to the texture interface will be stored. The function calls AddRef(), so that the new object will contain one refernce. |
◆ GetTextureFormatInfo()
Returns the basic texture format information.
See Diligent::TextureFormatInfo for details on the provided information.
- Parameters
-
[in] | TexFormat | - Texture format for which to provide the information |
- Returns
- Const reference to the TextureFormatInfo structure containing the texture format description.
◆ GetTextureFormatInfoExt()
Returns the extended texture format information.
See Diligent::TextureFormatInfoExt for details on the provided information.
- Parameters
-
[in] | TexFormat | - Texture format for which to provide the information |
- Returns
- Const reference to the TextureFormatInfoExt structure containing the extended texture format description.