MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / ToVector4

Function ToVector4

Hydrogent/interface/GfTypeConversions.hpp:118–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117template <typename T>
118Vector4<T> ToVector4(const pxr::GfVec4f& v)
119{
120 return Vector4<T>{
121 static_cast<T>(v[0]),
122 static_cast<T>(v[1]),
123 static_cast<T>(v[2]),
124 static_cast<T>(v[3]),
125 };
126}
127
128template <typename T>
129Vector4<T> ToVector4(const pxr::GfVec4d& v)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected