usdrt::AttrSpec

Defined in usdrt/scenegraph/usd/usd/common.h

Variables

struct AttrSpec

Specifies an attribute to be accessed, and the type of that access (read-only, read-write, overwrite).

Public Members

usdrt::SdfValueTypeName type

Attribute type.

usdrt::TfToken name

Attribute name.

AccessType accessType

The type of access requested, read-only, read-write, or overwrite.

USDRT uses this information to mirror data between CPU and GPU when necessary, and to use the minimum number of CPU<->GPU copies when it does so. For example, if data is valid on CPU and is then requested on GPU with eOverwrite, USDRT doesn’t have to copy the data from CPU to GPU because it knows the GPU is about to overwrite it.