Ion
|
Specifies a destination byte range, read byte offset, and source BufferObject or DataContainer for BufferSubData and CopyBufferSubData. More...
#include "bufferobject.h"
Public Member Functions | |
BufferSubData () | |
BufferSubData (const math::Range1ui &range_in, const base::DataContainerPtr &data_in) | |
BufferSubData (const BufferObjectPtr &src_in, const math::Range1ui &range_in, uint32 read_offset_in) | |
~BufferSubData () | |
See comment in .cc file. More... | |
Public Attributes | |
math::Range1ui | range |
Destination byte range of copy. More... | |
base::DataContainerPtr | data |
Source data for copy. If NULL source data is taken from src. More... | |
uint32 | read_offset |
Read offset in bytes into data or src. More... | |
BufferObjectPtr | src |
Source BufferObject for CopySubData, NULL is interpreted as this BufferObject. More... | |
Specifies a destination byte range, read byte offset, and source BufferObject or DataContainer for BufferSubData and CopyBufferSubData.
Definition at line 108 of file bufferobject.h.
|
inline |
Definition at line 109 of file bufferobject.h.
|
inline |
Definition at line 111 of file bufferobject.h.
References DCHECK, and ion::base::SharedPtr< T >::Get().
|
inline |
Definition at line 116 of file bufferobject.h.
ion::gfx::BufferObject::BufferSubData::~BufferSubData | ( | ) |
See comment in .cc file.
This destructor is in the .cc file because BufferSubData contains a BufferObjectPtr.
Putting this destructor in the .h file would trigger the generation of a destructor for BufferObjectPtr at a point where BufferObject is still an incomplete type, which would cause either a compiler error or undefined behavior at runtime.
Definition at line 95 of file bufferobject.cc.
base::DataContainerPtr ion::gfx::BufferObject::BufferSubData::data |
Source data for copy. If NULL source data is taken from src.
Definition at line 126 of file bufferobject.h.
math::Range1ui ion::gfx::BufferObject::BufferSubData::range |
Destination byte range of copy.
Definition at line 124 of file bufferobject.h.
uint32 ion::gfx::BufferObject::BufferSubData::read_offset |
Read offset in bytes into data or src.
Definition at line 128 of file bufferobject.h.
BufferObjectPtr ion::gfx::BufferObject::BufferSubData::src |
Source BufferObject for CopySubData, NULL is interpreted as this BufferObject.
Definition at line 131 of file bufferobject.h.