#pragma once #include #include namespace engine::gfx { enum class ShaderType { VERTEX, FRAGMENT, }; enum class BufferType { VERTEX, INDEX, UNIFORM, }; enum class Primitive { POINTS, LINES, LINE_STRIP, TRIANGLES, TRIANGLE_STRIP, }; enum class VertexAttribFormat { FLOAT2, FLOAT3, FLOAT4 }; enum class TextureFilter { LINEAR, NEAREST, }; enum class MipmapSetting { OFF, NEAREST, LINEAR, }; struct VertexBufferDesc { uint64_t size; }; struct VertexAttribDescription { VertexAttribDescription(uint32_t location, VertexAttribFormat format, uint32_t offset) : location(location), format(format), offset(offset) {} uint32_t location; VertexAttribFormat format; uint32_t offset; }; struct VertexFormat { uint32_t stride; std::vector attributeDescriptions; }; // handles (incomplete types) struct Pipeline; struct Buffer; struct Texture; }