| 58 | } |
| 59 | |
| 60 | void VertexFormat::GetAttribute(int32_t i, VASemantic& semantic, DFType& type, |
| 61 | uint32_t& unit, uint32_t& offset) const |
| 62 | { |
| 63 | LogAssert( |
| 64 | 0 <= i && i < mNumAttributes, |
| 65 | "Invalid index " + std::to_string(i) + "."); |
| 66 | |
| 67 | Attribute const& attribute = mAttributes[i]; |
| 68 | semantic = attribute.semantic; |
| 69 | type = attribute.type; |
| 70 | unit = attribute.unit; |
| 71 | offset = attribute.offset; |
| 72 | } |
| 73 | |
| 74 | int32_t VertexFormat::GetIndex(VASemantic semantic, uint32_t unit) const |
| 75 | { |
no outgoing calls
no test coverage detected