#pragma once #include #include #include #include #include "utils.h" namespace Engine { class Program { public: enum ShaderType { vertex, fragment }; Program(); void loadSPIRV(const std::string& path, ShaderType type); std::size_t codeSize(ShaderType type) const; const uint32_t* code(ShaderType type) const; private: std::vector vertexShader; std::vector fragmentShader; }; }