glslang SPV tests: Add a set of SPV tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
14
Test/spv.conditionalDiscard.frag
Normal file
14
Test/spv.conditionalDiscard.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 110
|
||||
|
||||
uniform sampler2D tex;
|
||||
varying vec2 coord;
|
||||
|
||||
void main (void)
|
||||
{
|
||||
vec4 v = texture2D(tex, coord);
|
||||
|
||||
if (v == vec4(0.1,0.2,0.3,0.4))
|
||||
discard;
|
||||
|
||||
gl_FragColor = v;
|
||||
}
|
||||
Reference in New Issue
Block a user