mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 13:40:41 +00:00
32c169dbdf
This is part of the change to have desktop shaders respect precision qualifiers on Vulkan, but since the defaults are all highp, and that's different from ES fragment shaders, detect likely cases and warn about them (but being careful to not be too noisy if it's unlikely to be a problem).
9 lines
182 B
GLSL
9 lines
182 B
GLSL
#version 450
|
|
precision mediump int; precision highp float;
|
|
layout(location=1) in highp vec4 v;
|
|
void main (void)
|
|
{
|
|
if (v == vec4(0.1,0.2,0.3,0.4)) discard;
|
|
else return;
|
|
}
|