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

Function setMeshVerticesPython

Source/Falcor/Scene/Scene.cpp:4261–4274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4259 }
4260
4261 inline void setMeshVerticesPython(Scene& scene, MeshID meshID, const pybind11::dict& dict)
4262 {
4263 std::map<std::string, ref<Buffer>> buffers;
4264 for (auto item : dict)
4265 {
4266 std::string name = item.first.cast<std::string>();
4267 ref<Buffer> buffer = item.second.cast<ref<Buffer>>();
4268 buffers[name] = buffer;
4269 }
4270 scene.setMeshVertices(meshID, buffers);
4271#if FALCOR_HAS_CUDA
4272 scene.getDevice()->getRenderContext()->waitForFalcor();
4273#endif
4274 }
4275
4276 FALCOR_SCRIPT_BINDING(Scene)
4277 {

Callers

nothing calls this directly

Calls 3

setMeshVerticesMethod · 0.80
waitForFalcorMethod · 0.45
getDeviceMethod · 0.45

Tested by

no test coverage detected