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

Function toPython

Source/Falcor/Scene/Scene.cpp:4104–4187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4102 }
4103
4104 inline pybind11::dict toPython(const Scene::SceneStats& stats)
4105 {
4106 pybind11::dict d;
4107
4108 // Geometry stats
4109 d["meshCount"] = stats.meshCount;
4110 d["meshInstanceCount"] = stats.meshInstanceCount;
4111 d["meshInstanceOpaqueCount"] = stats.meshInstanceOpaqueCount;
4112 d["transformCount"] = stats.transformCount;
4113 d["uniqueTriangleCount"] = stats.uniqueTriangleCount;
4114 d["uniqueVertexCount"] = stats.uniqueVertexCount;
4115 d["instancedTriangleCount"] = stats.instancedTriangleCount;
4116 d["instancedVertexCount"] = stats.instancedVertexCount;
4117 d["indexMemoryInBytes"] = stats.indexMemoryInBytes;
4118 d["vertexMemoryInBytes"] = stats.vertexMemoryInBytes;
4119 d["geometryMemoryInBytes"] = stats.geometryMemoryInBytes;
4120 d["animationMemoryInBytes"] = stats.animationMemoryInBytes;
4121
4122 // Curve stats
4123 d["curveCount"] = stats.curveCount;
4124 d["curveInstanceCount"] = stats.curveInstanceCount;
4125 d["uniqueCurveSegmentCount"] = stats.uniqueCurveSegmentCount;
4126 d["uniqueCurvePointCount"] = stats.uniqueCurvePointCount;
4127 d["instancedCurveSegmentCount"] = stats.instancedCurveSegmentCount;
4128 d["instancedCurvePointCount"] = stats.instancedCurvePointCount;
4129 d["curveIndexMemoryInBytes"] = stats.curveIndexMemoryInBytes;
4130 d["curveVertexMemoryInBytes"] = stats.curveVertexMemoryInBytes;
4131
4132 // SDF grid stats
4133 d["sdfGridCount"] = stats.sdfGridCount;
4134 d["sdfGridDescriptorCount"] = stats.sdfGridDescriptorCount;
4135 d["sdfGridInstancesCount"] = stats.sdfGridInstancesCount;
4136 d["sdfGridMemoryInBytes"] = stats.sdfGridMemoryInBytes;
4137
4138 // Custom primitive stats
4139 d["customPrimitiveCount"] = stats.customPrimitiveCount;
4140
4141 // Material stats
4142 d["materialCount"] = stats.materials.materialCount;
4143 d["materialOpaqueCount"] = stats.materials.materialOpaqueCount;
4144 d["materialMemoryInBytes"] = stats.materials.materialMemoryInBytes;
4145 d["textureCount"] = stats.materials.textureCount;
4146 d["textureCompressedCount"] = stats.materials.textureCompressedCount;
4147 d["textureTexelCount"] = stats.materials.textureTexelCount;
4148 d["textureTexelChannelCount"] = stats.materials.textureTexelChannelCount;
4149 d["textureMemoryInBytes"] = stats.materials.textureMemoryInBytes;
4150
4151 // Raytracing stats
4152 d["blasGroupCount"] = stats.blasGroupCount;
4153 d["blasCount"] = stats.blasCount;
4154 d["blasCompactedCount"] = stats.blasCompactedCount;
4155 d["blasOpaqueCount"] = stats.blasOpaqueCount;
4156 d["blasGeometryCount"] = stats.blasGeometryCount;
4157 d["blasOpaqueGeometryCount"] = stats.blasOpaqueGeometryCount;
4158 d["blasMemoryInBytes"] = stats.blasMemoryInBytes;
4159 d["blasScratchMemoryInBytes"] = stats.blasScratchMemoryInBytes;
4160 d["tlasCount"] = stats.tlasCount;
4161 d["tlasMemoryInBytes"] = stats.tlasMemoryInBytes;

Callers 1

FALCOR_SCRIPT_BINDINGFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected