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);
341 template <
class HashState>
459 #endif // PXR_IMAGING_HD_TYPES_H
HD_API size_t HdDataSizeOfType(HdType)
Return the size, in bytes, of a single value of the given type.
GLboolean GLboolean GLboolean b
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.
GLubyte GLubyte GLubyte GLubyte w
GLint GLint GLsizei GLint GLenum GLenum type
ImageBuf OIIO_API min(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
HD_API const void * HdGetValueData(const VtValue &)
HD_API HdTupleType HdGetValueTupleType(const VtValue &)
bool operator!=(const HdVec4f_2_10_10_10_REV &other) const
bool operator==(HdTupleType const &rhs) const
ImageBuf OIIO_API max(Image_or_Const A, Image_or_Const B, ROI roi={}, int nthreads=0)
GLdouble GLdouble GLdouble z
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
void TfHashAppend(HashState &h, HdTupleType const &tt)
A 3-component vector with UInt32-valued components.
vfloat4 round(const vfloat4 &a)
HdVec4f_2_10_10_10_REV(Vec3Type const &value)
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)
HD_API bool operator!=(const HdSamplerParameters &other) const
Corresponds to GL_FLOAT_MAT4.
Corresponds to GL_FLOAT_MAT3.
GLfloat GLfloat GLfloat GLfloat h
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.
#define PXR_NAMESPACE_CLOSE_SCOPE
GLsizei const GLfloat * value
Vec3Type GetAsVec() const
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.