Loading...
Searching...
No Matches
HdVec4f_2_10_10_10_REV Struct Reference

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

#include <types.h>

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 183 of file types.h.

Constructor & Destructor Documentation

◆ HdVec4f_2_10_10_10_REV() [1/3]

Definition at line 185 of file types.h.

◆ HdVec4f_2_10_10_10_REV() [2/3]

HdVec4f_2_10_10_10_REV ( Vec3Type const &  value)
inline

Definition at line 188 of file types.h.

◆ HdVec4f_2_10_10_10_REV() [3/3]

HdVec4f_2_10_10_10_REV ( int const  value)
inline

Definition at line 195 of file types.h.

Member Function Documentation

◆ GetAsInt()

int GetAsInt ( ) const
inline

Definition at line 211 of file types.h.

◆ GetAsVec()

Vec3Type GetAsVec ( ) const
inline

Definition at line 205 of file types.h.

◆ operator!=()

bool operator!= ( const HdVec4f_2_10_10_10_REV other) const
inline

Definition at line 222 of file types.h.

◆ operator==()

bool operator== ( const HdVec4f_2_10_10_10_REV other) const
inline

Definition at line 216 of file types.h.

Member Data Documentation

◆ w

int w

Definition at line 229 of file types.h.

◆ x

int x

Definition at line 226 of file types.h.

◆ y

int y

Definition at line 227 of file types.h.

◆ z

int z

Definition at line 228 of file types.h.


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