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

Function GetUniformCount

engine/graphics/src/graphics.cpp:1864–1868  ·  view source on GitHub ↗

////////////////////////////////////////////// /// BASE ADAPTER SPECIFIC FUNCTIONS //////////

Source from the content-addressed store, hash-verified

1862 ///////////////////////////////////////////////////
1863 //////// BASE ADAPTER SPECIFIC FUNCTIONS //////////
1864 uint32_t GetUniformCount(HProgram prog)
1865 {
1866 Program* p = (Program*) prog;
1867 return p->m_Uniforms.Size();
1868 }
1869 void GetUniform(HProgram prog, uint32_t index, Uniform* uniform_desc)
1870 {
1871 Program* p = (Program*) prog;

Callers 6

CreateConstantsFunction · 0.85
NewComputeProgramFunction · 0.85
TEST_FFunction · 0.85
FindUniformLocationFunction · 0.85
TEST_FFunction · 0.85
GetUniformLocationFunction · 0.85

Calls 1

SizeMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
GetUniformLocationFunction · 0.68