rsx: Move SPIRV stuff into common code

This commit is contained in:
kd-11 2024-03-27 20:20:21 +03:00 committed by GitHub
parent afcfd81496
commit 4594c912a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 238 additions and 191 deletions

View file

@ -118,7 +118,7 @@ namespace glsl
void insert_vertex_input_fetch(std::stringstream& OS, glsl_rules rules, bool glsl4_compliant)
{
std::string vertex_id_name = (rules != glsl_rules_spirv) ? "gl_VertexID" : "gl_VertexIndex";
std::string vertex_id_name = (rules != glsl_rules_vulkan) ? "gl_VertexID" : "gl_VertexIndex";
// Actually decode a vertex attribute from a raw byte stream
program_common::define_glsl_constants<int>(OS,