You.i Engine
CYIBufferObject Class Reference

#include <renderer/YiBufferObject.h>

Inheritance diagram for CYIBufferObject:

Public Member Functions

 CYIBufferObject ()
 
virtual ~CYIBufferObject ()
 
virtual void * Map ()
 
virtual void Unmap (size_t size)
 
- Public Member Functions inherited from IYIGPUObject
 IYIGPUObject ()
 
virtual ~IYIGPUObject ()
 
virtual void Load (const std::shared_ptr< CYIAssetHardware > &pHWAsset)=0
 
virtual void Unload ()=0
 
Status GetStatus () const
 
virtual void Use () const =0
 
virtual void Generate ()=0
 
virtual void Free ()=0
 
virtual void InvalidateHandle ()=0
 

Additional Inherited Members

- Public Types inherited from IYIGPUObject
enum  Status {
  Status::Invalid,
  Status::Unloaded,
  Status::LoadedFresh,
  Status::LoadedStale
}
 
- Protected Attributes inherited from IYIGPUObject
Status m_status
 

Constructor & Destructor Documentation

◆ CYIBufferObject()

CYIBufferObject::CYIBufferObject ( )

◆ ~CYIBufferObject()

virtual CYIBufferObject::~CYIBufferObject ( )
virtual

Member Function Documentation

◆ Map()

virtual void* CYIBufferObject::Map ( )
virtual

Map the GPU data directly and returns a pointer to it. Unmap has to be called before that buffer can be used by the GPU again.

◆ Unmap()

virtual void CYIBufferObject::Unmap ( size_t  size)
virtual

Unmaps the data and uploads it to the GPU.

Parameters
sizeSize of the sub data to update

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