20 Shader(
const std::filesystem::path& vertexShaderFilename,
const std::filesystem::path& fragmentShaderFilename);
26 std::filesystem::path getCacheDirectory()
const;
27 void createCacheDirectoryIfNeeded()
const;
28 std::vector<u32> compileToSPIRV(
const std::filesystem::path& filename,
Type type)
const;
29 static const char* shaderTypeToHashFileExtension(
Type type);
30 static const char* shaderTypeToCachedVlkFileExtension(
Type type);
31 static u32 shaderTypeToShaderCKind(
Type type);
33 u32 compileShader(
const std::filesystem::path& filename,
Type type)
const;
35 mutable bool m_isCacheDirty =
true;
Definition: shader.hpp:13
Type
Definition: shader.hpp:15
Shader(const std::filesystem::path &vertexShaderFilename, const std::filesystem::path &fragmentShaderFilename)
Definition: shader_ogl.cpp:27
void bind() const
Definition: shader_ogl.cpp:60
~Shader()
Definition: shader_ogl.cpp:55
void unbind() const
Definition: shader_ogl.cpp:65
uint32_t u32
Definition: base.hpp:41