Loading...
Searching...
No Matches
HdPrimvarDescriptor Struct Reference

Describes a primvar. More...

#include <sceneDelegate.h>

+ Inheritance diagram for HdPrimvarDescriptor:

Public Member Functions

 HdPrimvarDescriptor (TfToken const &name_, HdInterpolation interp_, TfToken const &role_=HdPrimvarRoleTokens->none, bool indexed_=false)
 
bool operator== (HdPrimvarDescriptor const &rhs) const
 
bool operator!= (HdPrimvarDescriptor const &rhs) const
 

Public Attributes

TfToken name
 Name of the primvar.
 
HdInterpolation interpolation
 Interpolation (data-sampling rate) of the primvar.
 
TfToken role
 Optional "role" indicating a desired interpretation – for example, to distinguish color/vector/point/normal.
 
bool indexed
 Optional bool, true if primvar is indexed.
 

Detailed Description

Describes a primvar.

Definition at line 170 of file sceneDelegate.h.

Constructor & Destructor Documentation

◆ HdPrimvarDescriptor() [1/2]

HdPrimvarDescriptor ( )
inline

Definition at line 183 of file sceneDelegate.h.

◆ HdPrimvarDescriptor() [2/2]

HdPrimvarDescriptor ( TfToken const &  name_,
HdInterpolation  interp_,
TfToken const &  role_ = HdPrimvarRoleTokens->none,
bool  indexed_ = false 
)
inline

Definition at line 188 of file sceneDelegate.h.

Member Function Documentation

◆ operator!=()

bool operator!= ( HdPrimvarDescriptor const &  rhs) const
inline

Definition at line 198 of file sceneDelegate.h.

◆ operator==()

bool operator== ( HdPrimvarDescriptor const &  rhs) const
inline

Definition at line 194 of file sceneDelegate.h.

Member Data Documentation

◆ indexed

bool indexed

Optional bool, true if primvar is indexed.

This value should be checked before calling "GetIndexedPrimvar"

Definition at line 181 of file sceneDelegate.h.

◆ interpolation

HdInterpolation interpolation

Interpolation (data-sampling rate) of the primvar.

Definition at line 174 of file sceneDelegate.h.

◆ name

TfToken name

Name of the primvar.

Definition at line 172 of file sceneDelegate.h.

◆ role

TfToken role

Optional "role" indicating a desired interpretation – for example, to distinguish color/vector/point/normal.

See HdPrimvarRoleTokens; default is HdPrimvarRoleTokens->none.

Definition at line 178 of file sceneDelegate.h.


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