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

Function GetMaterialSampler

engine/render/src/render/material.cpp:387–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386
387 HSampler GetMaterialSampler(HMaterial material, uint32_t unit)
388 {
389 if (unit < material->m_Samplers.Size())
390 {
391 return &material->m_Samplers[unit];
392 }
393 return 0;
394 }
395
396 bool GetMaterialConstantNameHash(HMaterial material, uint32_t index, dmhash_t* out_name_hash)
397 {

Callers 3

Material_GetSamplersFunction · 0.85
SetMaterialSamplerFunction · 0.85
SetMaterialTextureFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected