|
Blender V5.3
|
#include "hydra/util.h"#include "scene/attribute.h"#include <pxr/base/gf/vec2f.h>#include <pxr/base/gf/vec3f.h>#include <pxr/base/gf/vec4f.h>#include <pxr/base/vt/array.h>#include <pxr/imaging/hd/primvarSchema.h>#include <pxr/imaging/hd/renderIndex.h>#include <pxr/imaging/hd/sceneDelegate.h>#include <pxr/imaging/hd/tokens.h>Go to the source code of this file.
Functions | |
| HDCYCLES_NAMESPACE_OPEN_SCOPE HdSceneIndexPrim | GetPrim (HdSceneDelegate *delegate, const SdfPath &id) |
| VtValue | ReadPrimvar (const HdPrimvarsSchema &primvars, const TfToken &name) |
| HdInterpolation | ReadPrimvarInterpolation (const HdPrimvarsSchema &primvars, const TfToken &name) |
| TfToken | ReadPrimvarRole (const HdPrimvarsSchema &primvars, const TfToken &name) |
| TfTokenVector | PrimvarNamesAtInterpolation (const HdPrimvarsSchema &primvars, HdInterpolation interpolation) |
| void | ApplyPrimvars (AttributeSet &attributes, const ustring &name, VtValue value, AttributeElement elem, AttributeStandard std) |
| void ApplyPrimvars | ( | AttributeSet & | attributes, |
| const ustring & | name, | ||
| VtValue | value, | ||
| AttributeElement | elem, | ||
| AttributeStandard | std ) |
Definition at line 96 of file hydra/util.cpp.
References AttributeSet::add(), ApplyPrimvars(), assert, ATTR_ELEMENT_IS_NORMAL, Attribute::data_for_write(), Attribute::data_sizeof(), float, make_float3(), packed_normal::packed_normal(), Attribute::size, size(), and Attribute::std.
Referenced by ApplyPrimvars(), and ApplyPrimvars().
| HDCYCLES_NAMESPACE_OPEN_SCOPE HdSceneIndexPrim GetPrim | ( | HdSceneDelegate * | delegate, |
| const SdfPath & | id ) |
Definition at line 20 of file hydra/util.cpp.
References GetPrim().
Referenced by HdCyclesInstancer::ComputeInstanceTransforms(), GetPrim(), GetPrim(), HdCyclesCamera::Sync(), HdCyclesField::Sync(), HdCyclesGeometry< Base, CyclesBase >::Sync(), HdCyclesLight::Sync(), and HdCyclesMaterial::Sync().
| TfTokenVector PrimvarNamesAtInterpolation | ( | const HdPrimvarsSchema & | primvars, |
| HdInterpolation | interpolation ) |
Definition at line 81 of file hydra/util.cpp.
References PrimvarNamesAtInterpolation(), and ReadPrimvarInterpolation().
Referenced by PrimvarNamesAtInterpolation(), and PrimvarNamesAtInterpolation().
| VtValue ReadPrimvar | ( | const HdPrimvarsSchema & | primvars, |
| const TfToken & | name ) |
Definition at line 32 of file hydra/util.cpp.
References ReadPrimvar().
Referenced by ReadPrimvar(), and ReadPrimvar().
| HdInterpolation ReadPrimvarInterpolation | ( | const HdPrimvarsSchema & | primvars, |
| const TfToken & | name ) |
Definition at line 41 of file hydra/util.cpp.
References ReadPrimvarInterpolation().
Referenced by PrimvarNamesAtInterpolation(), ReadPrimvarInterpolation(), and ReadPrimvarInterpolation().
| TfToken ReadPrimvarRole | ( | const HdPrimvarsSchema & | primvars, |
| const TfToken & | name ) |
Definition at line 72 of file hydra/util.cpp.
References ReadPrimvarRole().
Referenced by ReadPrimvarRole(), and ReadPrimvarRole().