GPU/HW: GLSL ES compile fix
This commit is contained in:
parent
a3d55c6e30
commit
dadc994ba8
|
@ -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, "WRITE_MASK_AS_DEPTH", write_mask_as_depth);
|
||||||
DefineMacro(ss, "USE_BUFFER", use_buffer);
|
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,
|
DeclareUniformBuffer(ss,
|
||||||
{"float2 u_base_coords", "float2 u_end_coords", "float2 u_size", "float u_resolution_scale",
|
{"float2 u_base_coords", "float2 u_end_coords", "float2 u_size", "float u_resolution_scale",
|
||||||
|
|
Loading…
Reference in New Issue