Diligent Engine API Reference
|
Render device interface. More...
Public Member Functions | |
virtual void | QueryInterface (const Diligent::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... | |
Public Member Functions inherited from Diligent::IObject | |
virtual Atomics::Long | AddRef ()=0 |
Increments the number of strong references by 1. More... | |
virtual Atomics::Long | Release ()=0 |
Decrements the number of strong references by 1 and destroys the object when the counter reaches zero. More... | |
virtual IReferenceCounters * | GetReferenceCounters () const =0 |
Returns the pointer to IReferenceCounters interface of the associated reference counters object. The metod does NOT increment the number of strong references to the returned object. | |
Render device interface.
|
pure virtual |
Creates a new buffer object.
[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(). |
|
pure virtual |
Creates a new pipeline state object.
[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. |
|
pure virtual |
Creates a new resource mapping.
[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. |
|
pure virtual |
Creates a new sampler object.
[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. |
|
pure virtual |
Creates a new shader object.
[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. |
|
pure virtual |
Creates a new texture object.
[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. |
|
pure virtual |
Returns the basic texture format information.
See Diligent::TextureFormatInfo for details on the provided information.
[in] | TexFormat | - Texture format for which to provide the information |
|
pure virtual |
Returns the extended texture format information.
See Diligent::TextureFormatInfoExt for details on the provided information.
[in] | TexFormat | - Texture format for which to provide the information |