MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / get_attribute

Method get_attribute

framework/scene_graph/components/sub_mesh.cpp:66–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool SubMesh::get_attribute(const std::string &attribute_name, VertexAttribute &attribute) const
67{
68 auto attrib_it = vertex_attributes.find(attribute_name);
69
70 if (attrib_it == vertex_attributes.end())
71 {
72 return false;
73 }
74
75 attribute = attrib_it->second;
76
77 return true;
78}
79
80void SubMesh::set_material(const Material &new_material)
81{

Calls 1

endMethod · 0.80

Tested by

no test coverage detected