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

Function SetComputeProgramSampler

engine/render/src/render/compute.cpp:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 bool SetComputeProgramSampler(HComputeProgram compute_program, dmhash_t name_hash, uint32_t unit, dmGraphics::TextureWrap u_wrap, dmGraphics::TextureWrap v_wrap, dmGraphics::TextureFilter min_filter, dmGraphics::TextureFilter mag_filter, float max_anisotropy)
103 {
104 return SetProgramSampler(compute_program->m_Samplers, compute_program->m_NameHashToLocation, name_hash, unit, u_wrap, v_wrap, min_filter, mag_filter, max_anisotropy);
105 }
106
107 uint32_t GetComputeProgramSamplerUnit(HComputeProgram compute_program, dmhash_t name_hash)
108 {

Callers 2

SetProgramFunction · 0.85
SetComputeSamplerFunction · 0.85

Calls 1

SetProgramSamplerFunction · 0.85

Tested by

no test coverage detected