GPU/HW: GLSL ES compile fix

This commit is contained in:
Stenzek 2024-10-28 23:13:22 +10:00
parent a3d55c6e30
commit dadc994ba8
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1432,7 +1432,7 @@ std::string GPU_HW_ShaderGen::GenerateVRAMWriteFragmentShader(bool use_buffer, b
DefineMacro(ss, "WRITE_MASK_AS_DEPTH", write_mask_as_depth);
DefineMacro(ss, "USE_BUFFER", use_buffer);
ss << "CONSTANT uint2 VRAM_SIZE = uint2(" << VRAM_WIDTH << ", " << VRAM_HEIGHT << ");\n";
ss << "CONSTANT float2 VRAM_SIZE = float2(" << VRAM_WIDTH << ".0, " << VRAM_HEIGHT << ".0);\n";
DeclareUniformBuffer(ss,
{"float2 u_base_coords", "float2 u_end_coords", "float2 u_size", "float u_resolution_scale",