24 #ifndef PXR_IMAGING_HD_BUFFER_SPEC_H
25 #define PXR_IMAGING_HD_BUFFER_SPEC_H
56 name(name), tupleType(tupleType) {}
62 for (
auto const &
src : sources) {
64 src->GetBufferSpecs(bufferSpecs);
110 return !(*
this == other);
124 template <
class HashState>
133 #endif // PXR_IMAGING_HD_BUFFER_SPEC_H
static void GetBufferSpecs(T const &sources, HdBufferSpecVector *bufferSpecs)
Util function for adding buffer specs of sources into bufferspecs.
static HD_API void Dump(HdBufferSpecVector const &specs)
Debug output.
static HD_API HdBufferSpecVector ComputeUnion(HdBufferSpecVector const &spec1, HdBufferSpecVector const &spec2)
HD_API size_t Hash() const
Return a size_t hash for this spec.
static HD_API HdBufferSpecVector ComputeDifference(HdBufferSpecVector const &spec1, HdBufferSpecVector const &spec2)
Functor to use for unordered sets, maps.
PXR_NAMESPACE_OPEN_SCOPE typedef std::vector< struct HdBufferSpec > HdBufferSpecVector
static HD_API bool IsSubset(HdBufferSpecVector const &subset, HdBufferSpecVector const &superset)
bool operator!=(HdBufferSpec const &other) const
bool operator==(HdBufferSpec const &other) const
Equality checks.
GLuint const GLchar * name
std::vector< struct HdBufferSpec > HdBufferSpecVector
GLfloat GLfloat GLfloat GLfloat h
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
size_t operator()(HdBufferSpec const &spec) const
#define PXR_NAMESPACE_CLOSE_SCOPE
bool operator<(HdBufferSpec const &other) const
Ordering.
HdBufferSpec(TfToken const &name, HdTupleType tupleType)
Constructor.
void TfHashAppend(HashState &h, HdBufferSpec const &bs)