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

Method toBasicMaterial

Source/Falcor/Scene/Material/Material.cpp:240–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 }
239
240 ref<BasicMaterial> Material::toBasicMaterial()
241 {
242 if (mHeader.isBasicMaterial())
243 {
244 FALCOR_ASSERT(dynamic_ref_cast<BasicMaterial>(ref<Material>(this)));
245 return static_ref_cast<BasicMaterial>(ref<Material>(this));
246 }
247 return nullptr;
248 }
249
250 void Material::markUpdates(UpdateFlags updates)
251 {

Callers 5

writeMaterialMethod · 0.80
readMaterialMethod · 0.80
quantizeTexCoordsMethod · 0.80
setupMeshLightsMethod · 0.80
computeStatsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected