17
0
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:
2026-10-15 02:20:22 +02:00
parent 9e64244ebd
commit 9186819363
6 changed files with 62 additions and 12 deletions

View 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;

View 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;
}