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

Function IsUniformTypeSupported

engine/render/src/render/program_utils.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 static inline bool IsUniformTypeSupported(dmGraphics::Type type)
42 {
43 return type == dmGraphics::TYPE_FLOAT_VEC4 || type == dmGraphics::TYPE_FLOAT_MAT4 || dmGraphics::IsTypeTextureType(type) || type == dmGraphics::TYPE_SAMPLER;
44 }
45
46 void FillElementIds(const char* name, char* buffer, uint32_t buffer_size, dmhash_t element_ids[4])
47 {

Callers 2

GetProgramUniformCountFunction · 0.85
SetProgramConstantValuesFunction · 0.85

Calls 1

IsTypeTextureTypeFunction · 0.85

Tested by

no test coverage detected