9 #include "materialinstance.h"
10 #include "nap/signalslot.h"
45 bool isValid()
const {
return mMesh !=
nullptr; }
70 const std::vector<VkBuffer>& getVertexBuffers();
82 int getVertexBufferBindingIndex(
const std::string& meshVertexAttributeID)
const;
93 void onVertexBufferDataChanged();
97 IMesh* mMesh =
nullptr;
98 std::vector<VkBuffer> mVertexBuffers;
99 std::vector<VkDeviceSize> mVertexBufferOffsets;
100 bool mVertexBuffersDirty =
true;
101 nap::Slot<> mVertexBufferDataChangedSlot = { [&]() { onVertexBufferDataChanged(); } };
113 struct hash<
nap::RenderableMesh>
118 size_t mesh_hash = hash<size_t>{}((size_t)&key.
getMesh());
120 return mesh_hash ^ mate_hash;