All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdVec4f_2_10_10_10_REV Struct Reference

HdVec4f_2_10_10_10_REV is a compact representation of a GfVec4f. More...

Public Member Functions

template<typename Vec3Type >
 HdVec4f_2_10_10_10_REV (Vec3Type const &value)
 
 HdVec4f_2_10_10_10_REV (int const value)
 
template<typename Vec3Type >
Vec3Type GetAsVec () const
 
int GetAsInt () const
 
bool operator== (const HdVec4f_2_10_10_10_REV &other) const
 
bool operator!= (const HdVec4f_2_10_10_10_REV &other) const
 

Public Attributes

int x: 10
 
int y: 10
 
int z: 10
 
int w: 2
 

Detailed Description

HdVec4f_2_10_10_10_REV is a compact representation of a GfVec4f.

It uses 10 bits for x, y, and z, and 2 bits for w.

XXX We expect this type to move again as we continue work on refactoring the GL dependencies.

Definition at line 152 of file types.h.


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