19 lines
644 B
C++
19 lines
644 B
C++
module;
|
|
|
|
#include <cstdint>
|
|
#include <vulkan/vulkan.h>
|
|
|
|
export module Crafter.Graphics:Mesh;
|
|
import :VulkanBuffer;
|
|
|
|
namespace Crafter {
|
|
export template <typename VertexType>
|
|
class Mesh {
|
|
public:
|
|
Buffer<VertexType> verticies;
|
|
Buffer<std::uint32_t> indicies;
|
|
Mesh(std::uint32_t vertexCount, std::uint32_t indexCount) : verticies(VK_BUFFER_USAGE_STORAGE_BUFFER_BIT, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, vertexCount), indicies(VK_BUFFER_USAGE_STORAGE_BUFFER_BIT, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT, indexCount) {
|
|
|
|
}
|
|
};
|
|
}
|