Blender V5.3
util.h File Reference
#include "hydra/config.h"
#include "scene/attribute.h"
#include <pxr/base/vt/value.h>
#include <pxr/imaging/hd/dataSource.h>
#include <pxr/imaging/hd/enums.h>
#include <pxr/imaging/hd/primvarsSchema.h>
#include <pxr/imaging/hd/sceneIndex.h>
#include <pxr/imaging/hd/timeSampleArray.h>
#include <pxr/imaging/hd/types.h>

Go to the source code of this file.

Functions

PXR_NAMESPACE_CLOSE_SCOPE HDCYCLES_NAMESPACE_OPEN_SCOPE PXR_NS::HdSceneIndexPrim GetPrim (PXR_NS::HdSceneDelegate *delegate, const PXR_NS::SdfPath &id)
template<typename T>
PXR_NS::HdTypedSampledDataSource< T >::Handle GetTypedDataSource (const PXR_NS::HdContainerDataSourceHandle &container, const PXR_NS::TfToken &name)
template<typename T>
T GetTypedValue (const PXR_NS::HdContainerDataSourceHandle &container, const PXR_NS::TfToken &name, const T &fallback=T())
template<typename T, unsigned int Capacity>
void SampleTyped (const typename PXR_NS::HdTypedSampledDataSource< T >::Handle &ds, float shutterOpen, float shutterClose, PXR_NS::HdTimeSampleArray< T, Capacity > *out)
PXR_NS::VtValue ReadPrimvar (const PXR_NS::HdPrimvarsSchema &primvars, const PXR_NS::TfToken &name)
PXR_NS::HdInterpolation ReadPrimvarInterpolation (const PXR_NS::HdPrimvarsSchema &primvars, const PXR_NS::TfToken &name)
PXR_NS::TfToken ReadPrimvarRole (const PXR_NS::HdPrimvarsSchema &primvars, const PXR_NS::TfToken &name)
PXR_NS::TfTokenVector PrimvarNamesAtInterpolation (const PXR_NS::HdPrimvarsSchema &primvars, PXR_NS::HdInterpolation interpolation)
void ApplyPrimvars (CCL_NS::AttributeSet &attributes, const CCL_NS::ustring &name, PXR_NS::VtValue value, CCL_NS::AttributeElement elem, CCL_NS::AttributeStandard std)

Function Documentation

◆ ApplyPrimvars()

void ApplyPrimvars ( CCL_NS::AttributeSet & attributes,
const CCL_NS::ustring & name,
PXR_NS::VtValue value,
CCL_NS::AttributeElement elem,
CCL_NS::AttributeStandard std )

◆ GetPrim()

PXR_NAMESPACE_CLOSE_SCOPE HDCYCLES_NAMESPACE_OPEN_SCOPE PXR_NS::HdSceneIndexPrim GetPrim ( PXR_NS::HdSceneDelegate * delegate,
const PXR_NS::SdfPath & id )

References GetPrim().

◆ GetTypedDataSource()

template<typename T>
PXR_NS::HdTypedSampledDataSource< T >::Handle GetTypedDataSource ( const PXR_NS::HdContainerDataSourceHandle & container,
const PXR_NS::TfToken & name )

Definition at line 32 of file cycles/hydra/util.h.

References GetTypedDataSource().

Referenced by GetTypedDataSource(), and HdCyclesLight::Sync().

◆ GetTypedValue()

template<typename T>
T GetTypedValue ( const PXR_NS::HdContainerDataSourceHandle & container,
const PXR_NS::TfToken & name,
const T & fallback = T() )

Definition at line 43 of file cycles/hydra/util.h.

References GetTypedValue(), and T.

Referenced by GetTypedValue(), and HdCyclesLight::Sync().

◆ PrimvarNamesAtInterpolation()

PXR_NS::TfTokenVector PrimvarNamesAtInterpolation ( const PXR_NS::HdPrimvarsSchema & primvars,
PXR_NS::HdInterpolation interpolation )

◆ ReadPrimvar()

PXR_NS::VtValue ReadPrimvar ( const PXR_NS::HdPrimvarsSchema & primvars,
const PXR_NS::TfToken & name )

References ReadPrimvar().

◆ ReadPrimvarInterpolation()

PXR_NS::HdInterpolation ReadPrimvarInterpolation ( const PXR_NS::HdPrimvarsSchema & primvars,
const PXR_NS::TfToken & name )

◆ ReadPrimvarRole()

PXR_NS::TfToken ReadPrimvarRole ( const PXR_NS::HdPrimvarsSchema & primvars,
const PXR_NS::TfToken & name )

References ReadPrimvarRole().

◆ SampleTyped()

template<typename T, unsigned int Capacity>
void SampleTyped ( const typename PXR_NS::HdTypedSampledDataSource< T >::Handle & ds,
float shutterOpen,
float shutterClose,
PXR_NS::HdTimeSampleArray< T, Capacity > * out )

Definition at line 65 of file cycles/hydra/util.h.

References out, and SampleTyped().

Referenced by SampleTyped(), and HdCyclesCamera::Sync().