17 LogWarning(
"Input layout map is not empty on destruction.");
29 std::shared_ptr<GL4InputLayout> layout;
34 if (!
mMap.
Get(std::make_pair(vbuffer, programHandle), layout))
36 layout = std::make_shared<GL4InputLayout>(programHandle, vbufferHandle, vbuffer);
37 mMap.
Insert(std::make_pair(vbuffer, programHandle), layout);
54 std::vector<VBPPair> matches;
56 for (
auto match : matches)
58 std::shared_ptr<GL4InputLayout> layout;
65 LogError(
"Vertex buffer must be nonnull.");
94 VertexBuffer const* vbuffer, std::vector<VBPPair>& matches)
100 if (vbuffer == vbp.first.first)
102 matches.push_back(vbp.first);
void Insert(Key key, Value value)
bool Get(Key key, Value &value) const
bool Remove(Key key, Value &value)
#define LogError(message)
#define LogWarning(message)