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

Function GetProgramSampler

engine/render/src/render/program_utils.cpp:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 }
157
158 HSampler GetProgramSampler(const dmArray<Sampler>& samplers, uint32_t unit)
159 {
160 if (unit < samplers.Size())
161 {
162 return (HSampler) &samplers[unit];
163 }
164 return 0x0;
165 }
166
167 bool GetSamplerInfo(HSampler sampler, SamplerInfo* info)
168 {

Callers 3

GetComputeProgramSamplerFunction · 0.85
DispatchComputeFunction · 0.85
DrawFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected