Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graph/include/mesh.h

23 lines
441 B
C++
Executable file

#pragma once
#include <vector>
#include <string>
#include <cstdint>
#include <glm/glm.hpp>
#include <vulkan/vulkan.h>
struct Vertex {
glm::vec3 position, normal;
glm::vec2 uv;
};
struct MeshAsset {
std::vector<Vertex> vertices;
std::vector<uint32_t> indices;
VkBuffer vertexBuffer = nullptr;
VkDeviceMemory vertexMemory = nullptr;
VkBuffer indexBuffer = nullptr;
VkDeviceMemory indexMemory = nullptr;
};