SCons: Modernize shader builders

This commit is contained in:
Thaddeus Crews
2025-03-18 12:07:23 -05:00
parent adc63c6149
commit 32de6285a8
8 changed files with 339 additions and 457 deletions

View File

@@ -1,14 +1,8 @@
/* WARNING, THIS FILE WAS GENERATED, DO NOT EDIT */
#pragma once
#include "servers/rendering/renderer_rd/shader_rd.h"
class VertexFragmentShaderRD : public ShaderRD {
public:
VertexFragmentShaderRD() {
static const char _vertex_code[] = {
R"<!>(
#version 450
@@ -38,6 +32,7 @@ void main() {
}
)<!>"
};
setup(_vertex_code, _fragment_code, nullptr, "VertexFragmentShaderRD");
static const char *_compute_code = nullptr;
setup(_vertex_code, _fragment_code, _compute_code, "VertexFragmentShaderRD");
}
};