Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CD3DEffect Class Reference

#include <D3DResource.h>

Inheritance diagram for CD3DEffect:
ID3DResource

Public Member Functions

 CD3DEffect ()
 
virtual ~CD3DEffect ()
 
bool Create (const std::string &effectString, DefinesMap *defines)
 
void Release ()
 
bool SetFloatArray (LPCSTR handle, const float *val, unsigned int count)
 
bool SetMatrix (LPCSTR handle, const float *mat)
 
bool SetTechnique (LPCSTR handle)
 
bool SetTexture (LPCSTR handle, CD3DTexture &texture)
 
bool SetResources (LPCSTR handle, ID3D11ShaderResourceView **ppSRViews, size_t count)
 
bool SetConstantBuffer (LPCSTR handle, ID3D11Buffer *buffer)
 
bool SetScalar (LPCSTR handle, float value)
 
bool Begin (UINT *passes, DWORD flags)
 
bool BeginPass (UINT pass)
 
bool EndPass ()
 
bool End ()
 
ID3DX11Effect * Get () const
 
void OnDestroyDevice (bool fatal) override
 
void OnCreateDevice () override
 
 __declspec (nothrow) HRESULT __stdcall Open(D3D_INCLUDE_TYPE IncludeType
 
 __declspec (nothrow) HRESULT __stdcall Close(LPCVOID pData) override
 
- Public Member Functions inherited from ID3DResource
virtual ~ID3DResource ()
 

Public Attributes

LPCSTR pFileName
 
LPCSTR LPCVOID pParentData
 
LPCSTR LPCVOID LPCVOID * ppData
 
LPCSTR LPCVOID LPCVOID UINT *pBytes override
 

Additional Inherited Members

- Protected Member Functions inherited from ID3DResource
void Register ()
 
void Unregister ()
 
- Protected Attributes inherited from ID3DResource
bool m_bRegistered = false
 

Constructor & Destructor Documentation

◆ CD3DEffect()

CD3DEffect::CD3DEffect ( )

◆ ~CD3DEffect()

CD3DEffect::~CD3DEffect ( )
virtual

Member Function Documentation

◆ __declspec() [1/2]

CD3DEffect::__declspec ( nothrow )
override

◆ __declspec() [2/2]

CD3DEffect::__declspec ( nothrow )

◆ Begin()

bool CD3DEffect::Begin ( UINT * passes,
DWORD flags )

◆ BeginPass()

bool CD3DEffect::BeginPass ( UINT pass)

◆ Create()

bool CD3DEffect::Create ( const std::string & effectString,
DefinesMap * defines )

◆ End()

bool CD3DEffect::End ( )

◆ EndPass()

bool CD3DEffect::EndPass ( )

◆ Get()

ID3DX11Effect * CD3DEffect::Get ( ) const
inline

◆ OnCreateDevice()

void CD3DEffect::OnCreateDevice ( void )
overridevirtual

Implements ID3DResource.

◆ OnDestroyDevice()

void CD3DEffect::OnDestroyDevice ( bool fatal)
overridevirtual

Implements ID3DResource.

◆ Release()

void CD3DEffect::Release ( )

◆ SetConstantBuffer()

bool CD3DEffect::SetConstantBuffer ( LPCSTR handle,
ID3D11Buffer * buffer )

◆ SetFloatArray()

bool CD3DEffect::SetFloatArray ( LPCSTR handle,
const float * val,
unsigned int count )

◆ SetMatrix()

bool CD3DEffect::SetMatrix ( LPCSTR handle,
const float * mat )

◆ SetResources()

bool CD3DEffect::SetResources ( LPCSTR handle,
ID3D11ShaderResourceView ** ppSRViews,
size_t count )

◆ SetScalar()

bool CD3DEffect::SetScalar ( LPCSTR handle,
float value )

◆ SetTechnique()

bool CD3DEffect::SetTechnique ( LPCSTR handle)

◆ SetTexture()

bool CD3DEffect::SetTexture ( LPCSTR handle,
CD3DTexture & texture )

Member Data Documentation

◆ override

LPCSTR LPCVOID LPCVOID UINT* pBytes CD3DEffect::override

◆ pFileName

LPCSTR CD3DEffect::pFileName

◆ pParentData

LPCSTR LPCVOID CD3DEffect::pParentData

◆ ppData

LPCSTR LPCVOID LPCVOID* CD3DEffect::ppData

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