MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / GetAttribute

Method GetAttribute

GTE/Graphics/VertexFormat.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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
74int32_t VertexFormat::GetIndex(VASemantic semantic, uint32_t unit) const
75{

Callers 4

OnFirstUpdateMethod · 0.80
CollisionMeshMethod · 0.80
GL46InputLayoutMethod · 0.80
DX11InputLayoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected