mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-06 05:48:35 +01:00
Validate shaders against GLSL 4.60 including compute stage
This commit is contained in:
13
ci_shadervalidator/utilities/Globals.h
Normal file
13
ci_shadervalidator/utilities/Globals.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
struct _global
|
||||
{
|
||||
bool gfx_shadowmap_enabled;
|
||||
bool gfx_envmap_enabled;
|
||||
bool gfx_postfx_motionblur_enabled;
|
||||
bool gfx_skippipeline;
|
||||
bool gfx_extraeffects;
|
||||
bool gfx_shadergamma;
|
||||
};
|
||||
|
||||
extern _global Global;
|
||||
|
||||
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