11#include <unordered_map>
16#include <assimp/scene.h>
49 void loadModel(
const std::string &filename);
50 void processNode(
const aiNode* node,
const aiScene* scene);
51 void processMesh(
const aiMesh* mesh,
const aiScene* scene);
62 void bind(VkCommandBuffer commandBuffer)
const;
63 void draw(VkCommandBuffer commandBuffer)
const;
This file contains the Buffer class.
This file contains the Logger class.
Model & operator=(const Model &)=delete
void draw(VkCommandBuffer commandBuffer) const
Model & operator=(Model &&)=delete
Model(Device &device, const Builder &builder)
Model(const Model &)=delete
void bind(VkCommandBuffer commandBuffer) const
std::unique_ptr< Buffer > m_vertexBuffer
std::unique_ptr< Buffer > m_indexBuffer
void createVertexBuffer(const std::vector< Vertex > &vertices)
void createIndexBuffer(const std::vector< uint32_t > &indices)
void loadModel(const std::string &filename)
std::vector< Vertex > vertices
void processMesh(const aiMesh *mesh, const aiScene *scene)
std::vector< uint32_t > indices
void processNode(const aiNode *node, const aiScene *scene)
static std::vector< VkVertexInputAttributeDescription > getAttributeDescriptions()
static std::vector< VkVertexInputBindingDescription > getBindingDescriptions()
bool operator==(const Vertex &other) const