Blender  V3.3
Functions | Variables
HDCYCLES_NAMESPACE_OPEN_SCOPE Namespace Reference

Functions

template<typename T >
VtValue ComputeTriangulatedUniformPrimvar (VtValue value, const VtIntArray &primitiveParams)
 
VtValue ComputeTriangulatedUniformPrimvar (VtValue value, const HdType valueType, const VtIntArray &primitiveParams)
 
VtValue ComputeTriangulatedFaceVaryingPrimvar (VtValue value, const HdType valueType, HdMeshUtil &meshUtil)
 
template<typename DstType >
DstType convertToCycles (const VtValue &value)
 
template<>
float2 convertToCycles< float2 > (const VtValue &value)
 
template<>
float3 convertToCycles< float3 > (const VtValue &value)
 
template<>
ustring convertToCycles< ustring > (const VtValue &value)
 
template<typename Matrix >
Transform convertMatrixToCycles (const typename std::enable_if< Matrix::numRows==3 &&Matrix::numColumns==3, Matrix >::type &matrix)
 
template<typename Matrix >
Transform convertMatrixToCycles (const typename std::enable_if< Matrix::numRows==4 &&Matrix::numColumns==4, Matrix >::type &matrix)
 
template<>
Transform convertToCycles< Transform > (const VtValue &value)
 
template<typename DstType , typename SrcType = DstType>
array< DstType > convertToCyclesArray (const VtValue &value)
 
template<>
array< float3convertToCyclesArray< float3, GfVec3f > (const VtValue &value)
 
template<>
array< ustring > convertToCyclesArray< ustring, void > (const VtValue &value)
 
template<typename MatrixArray >
array< TransformconvertToCyclesTransformArray (const VtValue &value)
 
template<>
array< TransformconvertToCyclesArray< Transform, void > (const VtValue &value)
 
template<typename SrcType >
VtValue convertFromCycles (const SrcType &value)
 
template<>
VtValue convertFromCycles< float2 > (const float2 &value)
 
template<>
VtValue convertFromCycles< float3 > (const float3 &value)
 
template<>
VtValue convertFromCycles< ustring > (const ustring &value)
 
GfMatrix4f convertMatrixFromCycles (const Transform &matrix)
 
template<>
VtValue convertFromCycles< Transform > (const Transform &value)
 
template<typename SrcType , typename DstType = SrcType>
VtValue convertFromCyclesArray (const array< SrcType > &value)
 
template<>
VtValue convertFromCyclesArray< float3, GfVec3f > (const array< float3 > &value)
 
template<>
VtValue convertFromCyclesArray< ustring, void > (const array< ustring > &value)
 
template<>
VtValue convertFromCyclesArray< Transform, void > (const array< Transform > &value)
 

Variables

const std::unordered_map< TfToken, PassType, TfToken::HashFunctor > kAovToPass
 

Function Documentation

◆ ComputeTriangulatedFaceVaryingPrimvar()

VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::ComputeTriangulatedFaceVaryingPrimvar ( VtValue  value,
const HdType  valueType,
HdMeshUtil &  meshUtil 
)

Definition at line 51 of file hydra/mesh.cpp.

◆ ComputeTriangulatedUniformPrimvar() [1/2]

VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::ComputeTriangulatedUniformPrimvar ( VtValue  value,
const HdType  valueType,
const VtIntArray &  primitiveParams 
)

Definition at line 32 of file hydra/mesh.cpp.

◆ ComputeTriangulatedUniformPrimvar() [2/2]

template<typename T >
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::ComputeTriangulatedUniformPrimvar ( VtValue  value,
const VtIntArray &  primitiveParams 
)

Definition at line 17 of file hydra/mesh.cpp.

References input, output, and T.

◆ convertFromCycles()

template<typename SrcType >
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles ( const SrcType &  value)

Definition at line 314 of file node_util.cpp.

Referenced by GetNodeValue().

◆ convertFromCycles< float2 >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float2 > ( const float2 value)

Definition at line 319 of file node_util.cpp.

References float2::x, and float2::y.

◆ convertFromCycles< float3 >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< float3 > ( const float3 value)

Definition at line 325 of file node_util.cpp.

References float3::x, float3::y, and float3::z.

◆ convertFromCycles< Transform >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< Transform > ( const Transform value)

Definition at line 356 of file node_util.cpp.

References convertMatrixFromCycles().

◆ convertFromCycles< ustring >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCycles< ustring > ( const ustring &  value)

Definition at line 331 of file node_util.cpp.

◆ convertFromCyclesArray()

template<typename SrcType , typename DstType = SrcType>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray ( const array< SrcType > &  value)

Definition at line 362 of file node_util.cpp.

References array< T, alignment >::data(), and array< T, alignment >::size().

Referenced by GetNodeValue().

◆ convertFromCyclesArray< float3, GfVec3f >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< float3, GfVec3f > ( const array< float3 > &  value)

Definition at line 373 of file node_util.cpp.

References element, and array< T, alignment >::size().

Referenced by GetNodeValue().

◆ convertFromCyclesArray< Transform, void >()

Definition at line 393 of file node_util.cpp.

References convertMatrixFromCycles(), element, and array< T, alignment >::size().

Referenced by GetNodeValue().

◆ convertFromCyclesArray< ustring, void >()

template<>
VtValue HDCYCLES_NAMESPACE_OPEN_SCOPE::convertFromCyclesArray< ustring, void > ( const array< ustring > &  value)

Definition at line 383 of file node_util.cpp.

References element, and array< T, alignment >::size().

Referenced by GetNodeValue().

◆ convertMatrixFromCycles()

GfMatrix4f HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixFromCycles ( const Transform matrix)

◆ convertMatrixToCycles() [1/2]

template<typename Matrix >
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixToCycles ( const typename std::enable_if< Matrix::numRows==3 &&Matrix::numColumns==3, Matrix >::type matrix)

Definition at line 94 of file node_util.cpp.

References make_transform().

◆ convertMatrixToCycles() [2/2]

template<typename Matrix >
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertMatrixToCycles ( const typename std::enable_if< Matrix::numRows==4 &&Matrix::numColumns==4, Matrix >::type matrix)

Definition at line 113 of file node_util.cpp.

References make_transform().

◆ convertToCycles()

template<typename DstType >
DstType HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles ( const VtValue &  value)

Definition at line 21 of file node_util.cpp.

◆ convertToCycles< float2 >()

template<>
float2 HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float2 > ( const VtValue &  value)

Definition at line 36 of file node_util.cpp.

References make_float2.

Referenced by SetNodeValue().

◆ convertToCycles< float3 >()

template<>
float3 HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< float3 > ( const VtValue &  value)

Definition at line 42 of file node_util.cpp.

References make_float3, and zero_float3().

Referenced by SetNodeValue().

◆ convertToCycles< Transform >()

template<>
Transform HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< Transform > ( const VtValue &  value)

Definition at line 131 of file node_util.cpp.

References transform_identity().

Referenced by SetNodeValue().

◆ convertToCycles< ustring >()

template<>
ustring HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCycles< ustring > ( const VtValue &  value)

Definition at line 66 of file node_util.cpp.

Referenced by SetNodeValue().

◆ convertToCyclesArray()

template<typename DstType , typename SrcType = DstType>
array<DstType> HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray ( const VtValue &  value)

Definition at line 164 of file node_util.cpp.

References array< T, alignment >::resize().

◆ convertToCyclesArray< float3, GfVec3f >()

template<>
array<float3> HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< float3, GfVec3f > ( const VtValue &  value)

Definition at line 164 of file node_util.cpp.

Referenced by SetNodeValue().

◆ convertToCyclesArray< Transform, void >()

Definition at line 268 of file node_util.cpp.

References element, and array< T, alignment >::reserve().

Referenced by SetNodeValue().

◆ convertToCyclesArray< ustring, void >()

template<>
array<ustring> HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesArray< ustring, void > ( const VtValue &  value)

Definition at line 164 of file node_util.cpp.

Referenced by SetNodeValue().

◆ convertToCyclesTransformArray()

template<typename MatrixArray >
array<Transform> HDCYCLES_NAMESPACE_OPEN_SCOPE::convertToCyclesTransformArray ( const VtValue &  value)

Definition at line 268 of file node_util.cpp.

Variable Documentation

◆ kAovToPass

const std::unordered_map<TfToken, PassType, TfToken::HashFunctor> HDCYCLES_NAMESPACE_OPEN_SCOPE::kAovToPass
Initial value:
= {
{HdAovTokens->color, PASS_COMBINED},
{HdAovTokens->depth, PASS_DEPTH},
{HdAovTokens->normal, PASS_NORMAL},
{HdAovTokens->primId, PASS_OBJECT_ID},
{HdAovTokens->instanceId, PASS_AOV_VALUE},
}
@ PASS_DEPTH
Definition: kernel/types.h:358
@ PASS_COMBINED
Definition: kernel/types.h:338
@ PASS_OBJECT_ID
Definition: kernel/types.h:363
@ PASS_NORMAL
Definition: kernel/types.h:360
@ PASS_AOV_VALUE
Definition: kernel/types.h:369

Definition at line 19 of file hydra/session.cpp.

Referenced by HdCyclesSession::SyncAovBindings().