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

Function GetComputeProgramConstantNameHash

engine/render/src/render/compute.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 bool GetComputeProgramConstantNameHash(HComputeProgram program, uint32_t index, dmhash_t* out_name_hash)
123 {
124 if (index < program->m_Constants.Size())
125 {
126 *out_name_hash = GetConstantName(program->m_Constants[index].m_Constant);
127 return true;
128 }
129 return false;
130 }
131
132 uint32_t GetComputeProgramConstantCount(HComputeProgram program)
133 {

Callers 1

Compute_GetConstantsFunction · 0.85

Calls 2

GetConstantNameFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected