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

Function GetMaterialSamplerUnit

engine/render/src/render/material.cpp:382–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380 }
381
382 uint32_t GetMaterialSamplerUnit(HMaterial material, dmhash_t name_hash)
383 {
384 return GetProgramSamplerUnit(material->m_Samplers, name_hash);
385 }
386
387 HSampler GetMaterialSampler(HMaterial material, uint32_t unit)
388 {

Callers 3

SetMaterialFunction · 0.85
SetMaterialSamplerFunction · 0.85
SetMaterialTextureFunction · 0.85

Calls 1

GetProgramSamplerUnitFunction · 0.85

Tested by

no test coverage detected