mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-07 06:28:08 +01:00
Validate shaders against GLSL 4.60 including compute stage
This commit is contained in:
16
ci_shadervalidator/utilities/Logs.h
Normal file
16
ci_shadervalidator/utilities/Logs.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
enum class logtype : unsigned int {
|
||||
shader
|
||||
};
|
||||
|
||||
// gl::shader reports #texture/#param parse errors through ErrorLog; the validator counts them as failures
|
||||
inline bool ErrorLogged = false;
|
||||
|
||||
inline void ErrorLog(const std::string &str, logtype const)
|
||||
{
|
||||
std::cerr << str << std::endl;
|
||||
ErrorLogged = true;
|
||||
}
|
||||
Reference in New Issue
Block a user