MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / sdf3DTo2DShape

Function sdf3DTo2DShape

Source/RenderPasses/SDFEditor/SDFEditor.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84SDF2DShapeType sdf3DTo2DShape(SDF3DShapeType shapeType)
85{
86 switch (shapeType)
87 {
88 case SDF3DShapeType::Sphere:
89 return SDF2DShapeType::Circle;
90 case SDF3DShapeType::Box:
91 return SDF2DShapeType::Square;
92 default:
93 return SDF2DShapeType::Circle;
94 }
95}
96} // namespace
97
98extern "C" FALCOR_API_EXPORT void registerPlugin(Falcor::PluginRegistry& registry)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected