MCPcopy Create free account
hub / github.com/defold/defold / HashMaterial

Function HashMaterial

engine/gamesys/src/gamesys/components/comp_model.cpp:546–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544 }
545
546 static void HashMaterial(HashState32* state, const dmGameSystem::MaterialResource* material)
547 {
548 dmHashUpdateBuffer32(state, &material->m_Material, sizeof(material->m_Material));
549 dmHashUpdateBuffer32(state, material->m_Textures, sizeof(dmGameSystem::TextureResource*)*material->m_NumTextures);
550 }
551
552 static void GetRenderItemMorphWeights(const ModelComponent* component, const MeshRenderItem* render_item, const float** weights_out, uint32_t* weights_count_out)
553 {

Callers 2

HashRenderItemFunction · 0.85
ReHashFunction · 0.85

Calls 1

dmHashUpdateBuffer32Function · 0.85

Tested by

no test coverage detected