xbmc
Public Member Functions | List of all members
KODI::SHADER::CShaderTextureDX< TextureType > Class Template Reference
Inheritance diagram for KODI::SHADER::CShaderTextureDX< TextureType >:
Inheritance graph
[legend]
Collaboration diagram for KODI::SHADER::CShaderTextureDX< TextureType >:
Collaboration graph
[legend]

Public Member Functions

 CShaderTextureDX (TextureType *texture)
 
 CShaderTextureDX (TextureType &texture)
 
float GetWidth () const override
 Return width of texture. More...
 
float GetHeight () const override
 Return height of texture. More...
 
void SetTexture (TextureType *newTexture)
 
void SetTexture (TextureType &newTexture)
 
ID3D11ShaderResourceView * GetShaderResource () const
 
TextureType * GetPointer ()
 

Member Function Documentation

◆ GetHeight()

template<typename TextureType >
float KODI::SHADER::CShaderTextureDX< TextureType >::GetHeight ( ) const
inlineoverridevirtual

Return height of texture.

Returns
Height of the texture in texels

Implements KODI::SHADER::IShaderTexture.

◆ GetWidth()

template<typename TextureType >
float KODI::SHADER::CShaderTextureDX< TextureType >::GetWidth ( ) const
inlineoverridevirtual

Return width of texture.

Returns
Width of the texture in texels

Implements KODI::SHADER::IShaderTexture.


The documentation for this class was generated from the following file: