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

#include <D3DResource.h>

Inheritance diagram for CD3DBuffer:
ID3DResource

Public Member Functions

 CD3DBuffer ()
 
virtual ~CD3DBuffer ()
 
bool Create (D3D11_BIND_FLAG type, UINT count, UINT stride, DXGI_FORMAT format, D3D11_USAGE usage, const void *initData=nullptr)
 
bool Map (void **resource)
 
bool Unmap ()
 
void Release ()
 
unsigned int GetStride ()
 
DXGI_FORMAT GetFormat ()
 
ID3D11Buffer * Get () const
 
void OnDestroyDevice (bool fatal) override
 
void OnCreateDevice () override
 
- Public Member Functions inherited from ID3DResource
virtual ~ID3DResource ()
 

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

◆ CD3DBuffer()

CD3DBuffer::CD3DBuffer ( )

◆ ~CD3DBuffer()

CD3DBuffer::~CD3DBuffer ( )
virtual

Member Function Documentation

◆ Create()

bool CD3DBuffer::Create ( D3D11_BIND_FLAG type,
UINT count,
UINT stride,
DXGI_FORMAT format,
D3D11_USAGE usage,
const void * initData = nullptr )

◆ Get()

ID3D11Buffer * CD3DBuffer::Get ( ) const
inline

◆ GetFormat()

DXGI_FORMAT CD3DBuffer::GetFormat ( )
inline

◆ GetStride()

unsigned int CD3DBuffer::GetStride ( )
inline

◆ Map()

bool CD3DBuffer::Map ( void ** resource)

◆ OnCreateDevice()

void CD3DBuffer::OnCreateDevice ( void )
overridevirtual

Implements ID3DResource.

◆ OnDestroyDevice()

void CD3DBuffer::OnDestroyDevice ( bool fatal)
overridevirtual

Implements ID3DResource.

◆ Release()

void CD3DBuffer::Release ( )

◆ Unmap()

bool CD3DBuffer::Unmap ( )

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