tests: Add utility function to compile GLSL to BIL
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 3 Oct 2014 15:53:32 +0000 (09:53 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 31 Oct 2014 21:29:15 +0000 (15:29 -0600)
This requires glslang + BIL to be in a peer folder (glslang) to XGL.

tests/render_tests.cpp

index 530d78b..a420c92 100644 (file)
@@ -337,6 +337,7 @@ void XglRenderTest::CreateShader(XGL_PIPELINE_SHADER_STAGE stage,
 {
     XGL_RESULT err;
     std::vector<unsigned int> bil;
+
     XGL_SHADER_CREATE_INFO createInfo;
     XGL_SHADER shader;
 
@@ -761,6 +762,7 @@ void XglRenderTest::CreateDefaultPipeline(XGL_PIPELINE* pipeline, XGL_SHADER* vs
             "      vertices[2] = vec2( 0.0,  1.0);\n"
             "   gl_Position = vec4(vertices[gl_VertexID % 3], 0.0, 1.0);\n"
             "}\n";
+
     static const char *vertShader2 =
             "#version 130\n"
             "out vec4 color;\n"