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

24 lines
441 B
C
Raw Normal View History

2018-10-16 08:49:25 -04:00
#pragma once
#include <vector>
2018-10-30 21:13:36 -04:00
#include <string>
2018-10-16 08:49:25 -04:00
#include <cstdint>
#include <glm/glm.hpp>
#include <vulkan/vulkan.h>
struct Vertex {
2018-10-16 13:03:26 -04:00
glm::vec3 position, normal;
2018-11-06 09:08:55 -05:00
glm::vec2 uv;
2018-10-16 08:49:25 -04:00
};
2018-12-19 12:19:52 -05:00
struct MeshAsset {
2018-10-16 08:49:25 -04:00
std::vector<Vertex> vertices;
std::vector<uint32_t> indices;
VkBuffer vertexBuffer = nullptr;
VkDeviceMemory vertexMemory = nullptr;
VkBuffer indexBuffer = nullptr;
VkDeviceMemory indexMemory = nullptr;
};