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

Function SemanticTypeRequiresOneAsW

engine/graphics/src/graphics_vertices.cpp:173–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 static inline bool SemanticTypeRequiresOneAsW(VertexAttribute::SemanticType semantic_type)
174 {
175 return semantic_type == VertexAttribute::SEMANTIC_TYPE_POSITION ||
176 semantic_type == VertexAttribute::SEMANTIC_TYPE_TANGENT ||
177 semantic_type == VertexAttribute::SEMANTIC_TYPE_COLOR;
178 }
179
180 static inline uint32_t VectorTypeToMatrixRowColCount(VertexAttribute::VectorType vector_type)
181 {

Callers 2

WriteAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected