| 19 | } |
| 20 | |
| 21 | void VertexFormat::Reset() |
| 22 | { |
| 23 | mNumAttributes = 0; |
| 24 | mVertexSize = 0; |
| 25 | for (int32_t i = 0; i < VAConstant::MAX_ATTRIBUTES; ++i) |
| 26 | { |
| 27 | mAttributes[i] = Attribute(); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | void VertexFormat::Bind(VASemantic semantic, DFType type, uint32_t unit) |
| 32 | { |