OpenGL: Handle Spir-V

This commit is contained in:
Lynix
2020-04-19 15:31:48 +02:00
parent f63d045676
commit bd6924d66d
11 changed files with 3454 additions and 53 deletions

View File

@@ -21,14 +21,19 @@ namespace Nz::GL
Shader(Shader&&) noexcept = default;
inline ~Shader();
inline bool Compile(std::string* error = nullptr);
inline void Compile();
inline bool Create(OpenGLDevice& device, GLenum type);
inline void Destroy();
inline bool GetCompilationStatus(std::string* error = nullptr);
inline void SetBinarySource(GLenum binaryFormat, const void* binary, GLsizei length);
inline void SetSource(const char* source, GLint length);
// GL_ARB_gl_spirv
inline void SpecializeShader(const GLchar* pEntryPoint, GLuint numSpecializationConstants, const GLuint* pConstantIndex, const GLuint* pConstantValue);
Shader& operator=(const Shader&) = delete;
Shader& operator=(Shader&&) noexcept = default;