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

Function GetSamplerInfo

engine/render/src/render/program_utils.cpp:167–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 bool GetSamplerInfo(HSampler sampler, SamplerInfo* info)
168 {
169 if (!sampler || !info)
170 return false;
171
172 info->m_NameHash = sampler->m_NameHash;
173 info->m_TextureType = sampler->m_Type;
174 info->m_Location = sampler->m_Location;
175 info->m_UWrap = sampler->m_UWrap;
176 info->m_VWrap = sampler->m_VWrap;
177 info->m_MinFilter = sampler->m_MinFilter;
178 info->m_MagFilter = sampler->m_MagFilter;
179 info->m_MaxAnisotropy = sampler->m_MaxAnisotropy;
180
181 return true;
182 }
183
184 void ApplyProgramSampler(dmRender::HRenderContext render_context, HSampler sampler, uint8_t unit, dmGraphics::HTexture texture)
185 {

Callers 5

PushSamplerFunction · 0.85
SetMaterialSamplerFunction · 0.85
SetMaterialTextureFunction · 0.85
SetComputeSamplerFunction · 0.85
SetComputeTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected