24 #ifndef PXR_IMAGING_HD_TYPES_H
25 #define PXR_IMAGING_HD_TYPES_H
142 (v / (
float(1 << (b-1)) - 1.0
f))));
156 template <
typename Vec3Type>
173 template <
typename Vec3Type>
181 int const* asInt =
reinterpret_cast<int const*
>(
this);
186 return (other.
w ==
w &&
192 return !(*
this == other);
336 return !(*
this == rhs);
439 #endif // PXR_IMAGING_HD_TYPES_H
vint4 max(const vint4 &a, const vint4 &b)
HD_API size_t HdDataSizeOfType(HdType)
Return the size, in bytes, of a single value of the given type.
A 2-component vector with Int32-valued components.
bool operator==(const HdVec4f_2_10_10_10_REV &other) const
HD_API size_t HdDataSizeOfTupleType(HdTupleType)
Return the size, in bytes, of a value with HdTupleType.
Corresponds to GL_FLOAT_VEC3.
A 4-component vector with Int32-valued components.
HD_API HdType HdGetComponentType(HdType)
int HdConvertFloatToFixed(float v, int b)
Corresponds to GL_DOUBLE_VEC4.
bool operator!=(HdTupleType const &rhs) const
float HdConvertFixedToFloat(int v, int b)
A 3-component vector with Int32-valued components.
bool operator<(HdTupleType const &rhs) const
Corresponds to GL_DOUBLE_VEC3.
GLint GLint GLint GLint GLint x
HD_API const void * HdGetValueData(const VtValue &)
GLint GLint GLint GLint GLint GLint y
HD_API HdTupleType HdGetValueTupleType(const VtValue &)
bool operator!=(const HdVec4f_2_10_10_10_REV &other) const
GLubyte GLubyte GLubyte GLubyte w
bool operator==(HdTupleType const &rhs) const
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
A 3-component vector with UInt32-valued components.
vfloat4 round(const vfloat4 &a)
HdVec4f_2_10_10_10_REV(Vec3Type const &value)
GLuint GLuint GLsizei GLenum type
An unsigned 32-bit integer. Corresponds to GL_UNSIGNED_INT.
Corresponds to GL_DOUBLE_MAT3.
Corresponds to GL_FLOAT_VEC2.
HdVec4f_2_10_10_10_REV(int const value)
GLdouble GLdouble GLdouble b
HD_API bool operator!=(const HdSamplerParameters &other) const
Corresponds to GL_FLOAT_MAT4.
Corresponds to GL_FLOAT_MAT3.
A 4-component vector with UInt32-valued components.
HD_API HdFormat HdGetComponentFormat(HdFormat f)
Return the single-channel version of a given format.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
HD_API size_t HdGetComponentCount(HdType t)
Corresponds to GL_DOUBLE_VEC2.
Corresponds to GL_FLOAT_VEC4.
Corresponds to GL_DOUBLE_MAT4.
GLuint GLuint GLsizei count
#define PXR_NAMESPACE_CLOSE_SCOPE
Vec3Type GetAsVec() const
vint4 min(const vint4 &a, const vint4 &b)
GLsizei const GLfloat * value
Corresponds to GL_DOUBLE.
HD_API size_t HdDataSizeOfFormat(HdFormat f)
HD_API bool operator==(const HdSamplerParameters &other) const
A 2-component vector with UInt32-valued components.