Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::gfx::BufferObject::BufferSubData Struct Reference

Specifies a destination byte range, read byte offset, and source BufferObject or DataContainer for BufferSubData and CopyBufferSubData. More...

#include "bufferobject.h"

Collaboration diagram for ion::gfx::BufferObject::BufferSubData:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

ion::gfx::BufferObject::BufferSubData::BufferSubData ( )
inline

Definition at line 109 of file bufferobject.h.

ion::gfx::BufferObject::BufferSubData::BufferSubData ( const math::Range1ui range_in,
const base::DataContainerPtr data_in 
)
inline

Definition at line 111 of file bufferobject.h.

References DCHECK, and ion::base::SharedPtr< T >::Get().

ion::gfx::BufferObject::BufferSubData::BufferSubData ( const BufferObjectPtr src_in,
const math::Range1ui range_in,
uint32  read_offset_in 
)
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.

Member Data Documentation

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.


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