<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
<< "}\n";
programCollection.glslSources.add("comp")
- << glu::ComputeSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);;
+ << glu::ComputeSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< "}\n";
programCollection.glslSources.add("vert")
- << glu::VertexSource(src.str());
+ << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<<"{\n"
<< " out_color = in_color;\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
- programCollection.glslSources.add("vert") << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ programCollection.glslSources.add("vert") << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
if (OPTYPE_ELECT == caseDef.opType)
<< " gl_Position = in_position;\n"
<< "}\n";
programCollection.glslSources.add("vert")
- << glu::VertexSource(vertexSrc.str());
+ << glu::VertexSource(vertexSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
<< " out_color.a = float(tempResult2);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else if (VK_SHADER_STAGE_VERTEX_BIT == caseDef.shaderStage)
{
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " out_color = float(tempResult);\n"
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in highp float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream source;
source << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<<"{\n"
<< " out_color = uvec4(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(source.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(source.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float in_color;\n"
<<"{\n"
<< " out_color = uint(in_color);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float result;\n"
<< " out_color = uint(result);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float result;\n"
<< " out_color = uint(result);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
<< " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(src.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in float result;\n"
<<"{\n"
<< " out_color = uint(result);\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");
vertexSrc << " gl_Position = in_position;\n"
<< "}\n";
- programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str());
+ programCollection.glslSources.add("vert") << glu::VertexSource(vertexSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
fragmentSrc << glu::getGLSLVersionDeclaration(glu::GLSL_VERSION_450)<<"\n"
<< "layout(location = 0) in vec4 in_color;\n"
<<"{\n"
<< " out_color = in_color;\n"
<< "}\n";
- programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str());
+ programCollection.glslSources.add("fragment") << glu::FragmentSource(fragmentSrc.str()) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
}
else
{
else if (VK_SHADER_STAGE_FRAGMENT_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream frag;
else if (VK_SHADER_STAGE_GEOMETRY_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
std::ostringstream src;
else if (VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tese")
<< glu::TessellationEvaluationSource("#version 450\nlayout(isolines) in;\nvoid main (void) {}\n");
else if (VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT == caseDef.shaderStage)
{
programCollection.glslSources.add("vert")
- << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage));
+ << glu::VertexSource(subgroups::getVertShaderForStage(caseDef.shaderStage)) << vk::ShaderBuildOptions(vk::SPIRV_VERSION_1_3, 0u);
programCollection.glslSources.add("tesc")
<< glu::TessellationControlSource("#version 450\nlayout(vertices=1) out;\nvoid main (void) { for(uint i = 0; i < 4; i++) { gl_TessLevelOuter[i] = 1.0f; } }\n");