Command-line: Add support for setting language's environment.
This commit is contained in:
@@ -127,6 +127,16 @@ diff -b $BASEDIR/glsl.-D-U.frag.out $TARGETDIR/glsl.-D-U.frag.out || HASERROR=1
|
||||
$EXE -D -e main -V -i -DUNDEFED -UIN_SHADER -DFOO=200 -UUNDEFED hlsl.-D-U.frag > $TARGETDIR/hlsl.-D-U.frag.out
|
||||
diff -b $BASEDIR/hlsl.-D-U.frag.out $TARGETDIR/hlsl.-D-U.frag.out || HASERROR=1
|
||||
|
||||
#
|
||||
# Test --client and --target-env
|
||||
#
|
||||
$EXE --client vulkan100 spv.targetVulkan.vert || HASERROR=1
|
||||
$EXE --client opengl100 spv.targetOpenGL.vert || HASERROR=1
|
||||
$EXE --target-env vulkan1.0 spv.targetVulkan.vert || HASERROR=1
|
||||
$EXE --target-env opengl spv.targetOpenGL.vert || HASERROR=1
|
||||
$EXE -V100 spv.targetVulkan.vert || HASERROR=1
|
||||
$EXE -G100 spv.targetOpenGL.vert || HASERROR=1
|
||||
|
||||
#
|
||||
# Final checking
|
||||
#
|
||||
|
||||
9
Test/spv.targetOpenGL.vert
Executable file
9
Test/spv.targetOpenGL.vert
Executable file
@@ -0,0 +1,9 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 3) const int a = 2;
|
||||
|
||||
uniform float f;
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
9
Test/spv.targetVulkan.vert
Executable file
9
Test/spv.targetVulkan.vert
Executable file
@@ -0,0 +1,9 @@
|
||||
#version 450
|
||||
|
||||
layout(constant_id = 3) const int a = 2;
|
||||
|
||||
layout(push_constant) uniform pc { float f; };
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user