Home
last modified time | relevance | path

Searched refs:specializationMap (Results 1 – 22 of 22) sorted by relevance

/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcInternalformatTests.cpp272 std::map<std::string, std::string> specializationMap; in prepareTexturingProgramSources() local
273 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion); in prepareTexturingProgramSources()
300 specializationMap["PROCESS_COLOR"] = ""; in prepareTexturingProgramSources()
304 specializationMap["SAMPLED_TYPE"] = "uvec4"; in prepareTexturingProgramSources()
305 specializationMap["SAMPLER"] = "usampler2D"; in prepareTexturingProgramSources()
308 specializationMap["SAMPLED_TYPE"] = "ivec4"; in prepareTexturingProgramSources()
309 specializationMap["SAMPLER"] = "isampler2D"; in prepareTexturingProgramSources()
310 specializationMap["CALCULATE_COLOR"] = "vec4(v) / 127.0"; in prepareTexturingProgramSources()
314 specializationMap["CALCULATE_COLOR"] = "vec4(v) / 255.0"; in prepareTexturingProgramSources()
318 specializationMap["SAMPLED_TYPE"] = "ivec4"; in prepareTexturingProgramSources()
[all …]
DglcSeparableProgramsTransformFeedbackTests.cpp198 std::map<std::string, std::string> specializationMap; in iterate() local
199 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion); in iterate()
210 specializationMap["PERVERTEX_BLOCK"] = vertexBlock + vertexBlockPostfix[stageIndex]; in iterate()
211 std::string specializedShader = StringTemplate(source).specialize(specializationMap); in iterate()
220 specializationMap["IN_VARYING_NAME"] = stageData->tfVaryings[0]; in iterate()
DglcLayoutLocationTests.cpp573 std::map<std::string, std::string> specializationMap; in iterate() local
574 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion); in iterate()
575 std::string cs = tcu::StringTemplate(csTemplate).specialize(specializationMap); in iterate()
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShaderDrawParametersTests.cpp238 std::map<std::string, std::string> specializationMap; in draw() local
242 specializationMap["VERSION"] = "#version 460"; in draw()
243 specializationMap["DRAW_PARAMETERS_EXTENSION"] = ""; in draw()
244 specializationMap["GL_BASE_VERTEX"] = "gl_BaseVertex"; in draw()
245 specializationMap["GL_BASE_INSTANCE"] = "gl_BaseInstance"; in draw()
246 specializationMap["GL_DRAW_ID"] = "gl_DrawID"; in draw()
250 specializationMap["VERSION"] = "#version 450"; in draw()
251specializationMap["DRAW_PARAMETERS_EXTENSION"] = "#extension GL_ARB_shader_draw_parameters : enabl… in draw()
252 specializationMap["GL_BASE_VERTEX"] = "gl_BaseVertexARB"; in draw()
253 specializationMap["GL_BASE_INSTANCE"] = "gl_BaseInstanceARB"; in draw()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
DvktSpvAsmEmptyStructTests.cpp209 std::map<std::string, std::string> specializationMap in addCopyingComputeGroup() local
221 spec.assembly = shaderTemplate.specialize(specializationMap); in addCopyingComputeGroup()
536 std::map<std::string, std::string> specializationMap in addFunctionArgumentReturnValueGroup() local
544 spec.assembly = shaderTemplate.specialize(specializationMap); in addFunctionArgumentReturnValueGroup()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmEmptyStructTests.cpp209 std::map<std::string, std::string> specializationMap in addCopyingComputeGroup() local
221 spec.assembly = shaderTemplate.specialize(specializationMap); in addCopyingComputeGroup()
536 std::map<std::string, std::string> specializationMap in addFunctionArgumentReturnValueGroup() local
544 spec.assembly = shaderTemplate.specialize(specializationMap); in addFunctionArgumentReturnValueGroup()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineInterfaceMatchingTests.cpp602 SpecializationMap specializationMap in initPrograms() local
607 std::string& declarations = specializationMap["DECLARATIONS"]; in initPrograms()
608 std::string& operations = specializationMap["OPERATIONS"]; in initPrograms()
631 glslSources.add("vert") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
677 "}\n").specialize(specializationMap) in initPrograms()
727 "}\n").specialize(specializationMap) in initPrograms()
788 glslSources.add("geom") << glu::GeometrySource(geomTemplate.specialize(specializationMap)); in initPrograms()
817 glslSources.add("frag") << glu::FragmentSource(fragTemplate.specialize(specializationMap)); in initPrograms()
DvktPipelineSamplerBorderSwizzleTests.cpp870 const VkSpecializationMapEntry specializationMap[] = in iterate() local
880 static_cast<deUint32>(DE_LENGTH_OF_ARRAY(specializationMap)), // deUint32 mapEntryCount; in iterate()
881 specializationMap, // const VkSpecializationMapEntry* pMapEntries; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineInterfaceMatchingTests.cpp602 SpecializationMap specializationMap in initPrograms() local
607 std::string& declarations = specializationMap["DECLARATIONS"]; in initPrograms()
608 std::string& operations = specializationMap["OPERATIONS"]; in initPrograms()
631 glslSources.add("vert") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
677 "}\n").specialize(specializationMap) in initPrograms()
727 "}\n").specialize(specializationMap) in initPrograms()
788 glslSources.add("geom") << glu::GeometrySource(geomTemplate.specialize(specializationMap)); in initPrograms()
817 glslSources.add("frag") << glu::FragmentSource(fragTemplate.specialize(specializationMap)); in initPrograms()
DvktPipelineSamplerBorderSwizzleTests.cpp870 const VkSpecializationMapEntry specializationMap[] = in iterate() local
880 static_cast<deUint32>(DE_LENGTH_OF_ARRAY(specializationMap)), // deUint32 mapEntryCount; in iterate()
881 specializationMap, // const VkSpecializationMapEntry* pMapEntries; in iterate()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fPrimitiveBoundingBoxTests.cpp127 std::map<std::string, std::string> specializationMap; in specializeShader() local
129 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
133 specializationMap["ARB_ES32_COMPATIBILITY_REQUIRE"] = ""; in specializeShader()
134 specializationMap["GEOMETRY_SHADER_REQUIRE"] = ""; in specializeShader()
135 specializationMap["GEOMETRY_POINT_SIZE"] = "#extension GL_EXT_geometry_point_size : require"; in specializeShader()
136 specializationMap["GPU_SHADER5_REQUIRE"] = ""; in specializeShader()
137 specializationMap["TESSELLATION_SHADER_REQUIRE"] = ""; in specializeShader()
138specializationMap["TESSELLATION_POINT_SIZE_REQUIRE"] = "#extension GL_EXT_tessellation_point_size … in specializeShader()
139 specializationMap["PRIMITIVE_BOUNDING_BOX_REQUIRE"] = ""; in specializeShader()
140 specializationMap["PRIM_GL_BOUNDING_BOX"] = "gl_BoundingBox"; in specializeShader()
[all …]
Des31fShaderTextureSizeTests.cpp58 std::map<std::string, std::string> specializationMap; in specializeShader() local
60 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
62 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fProgramStateQueryTests.cpp79 std::map<std::string, std::string> specializationMap = in specializeShader() local
87 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fTextureGatherTests.cpp84 std::map<std::string, std::string> specializationMap; in specializeShader() local
86 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
90 specializationMap["GPU_SHADER5_REQUIRE"] = ""; in specializeShader()
92 specializationMap["GPU_SHADER5_REQUIRE"] = "#extension GL_EXT_gpu_shader5 : require"; in specializeShader()
94 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fTextureMultisampleTests.cpp130 std::map<std::string, std::string> specializationMap; in specializeShader() local
132 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
134 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fSynchronizationTests.cpp130 std::map<std::string, std::string> specializationMap; in specializeShader() local
131 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
132specializationMap["SHADER_IMAGE_ATOMIC_REQUIRE"] = isES32orGL45 ? "" : "#extension GL_OES_shader_i… in specializeShader()
134 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fTessellationTests.cpp1553 std::map<std::string, std::string> specializationMap = in specializeShader() local
1569 specializationMap["GLSL_PER_VERTEX_OUT"] = "out gl_PerVertex { vec4 gl_Position; };\n"; in specializeShader()
1570specializationMap["GLSL_PER_VERTEX_IN_ARR"] = "in gl_PerVertex { vec4 gl_Position; } gl_in[];\n… in specializeShader()
1571specializationMap["GLSL_PER_VERTEX_OUT_ARR"] = "out gl_PerVertex { vec4 gl_Position; } gl_out[];… in specializeShader()
1572specializationMap["GLSL_PRECISE_PER_VERTEX_OUT"] = "out gl_PerVertex { vec4 gl_Posi… in specializeShader()
1573specializationMap["GLSL_PRECISE_PER_VERTEX_IN_ARR"] = "in gl_PerVertex { vec4 gl_Posit… in specializeShader()
1574specializationMap["GLSL_PRECISE_PER_VERTEX_OUT_ARR"] = "out gl_PerVertex { vec4 gl_Position; } … in specializeShader()
1577 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
Des31fProgramInterfaceQueryTests.cpp222 std::map<std::string, std::string> specializationMap; in specializeShader() local
224 specializationMap["GLSL_VERSION_DECL"] = glu::getGLSLVersionDeclaration(glslVersion); in specializeShader()
226 return tcu::StringTemplate(code).specialize(specializationMap); in specializeShader()
/third_party/vk-gl-cts/external/openglcts/modules/gles2/
Des2cTexture3DTests.cpp305 std::map<std::string, std::string> specializationMap; in renderQuad() local
306 specializationMap["VERSION"] = glu::getGLSLVersionDeclaration(glslVersion); in renderQuad()
310 specializationMap["HEADER"] = "#extension GL_OES_texture_3D : enable"; in renderQuad()
311 specializationMap["TEXCOORD_TYPE"] = "vec3"; in renderQuad()
312 specializationMap["SAMPLER_TYPE"] = "sampler3D"; in renderQuad()
313 specializationMap["LOOKUP"] = "texture3D"; in renderQuad()
318 specializationMap["HEADER"] = ""; in renderQuad()
319 specializationMap["TEXCOORD_TYPE"] = "vec2"; in renderQuad()
320 specializationMap["SAMPLER_TYPE"] = "sampler2D"; in renderQuad()
321 specializationMap["LOOKUP"] = "texture2D"; in renderQuad()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_rate/
DvktAttachmentRateTests.cpp2255 std::map<std::string, std::string> specializationMap in initPrograms() local
2263 specializationMap["SCALE"] = "0.4"; in initPrograms()
2264 specializationMap["TRANSLATE"] = "-0.5"; in initPrograms()
2265 …llection.glslSources.add("vert0") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2267 specializationMap["SCALE"] = "0.4"; in initPrograms()
2268 specializationMap["TRANSLATE"] = "0.5"; in initPrograms()
2269 …llection.glslSources.add("vert1") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2273 …ollection.glslSources.add("vert") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2279 specializationMap["SCALE"] = "9.0"; in initPrograms()
2280 specializationMap["TRANSLATE"] = "0.0"; in initPrograms()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/
DvktAttachmentRateTests.cpp2255 std::map<std::string, std::string> specializationMap in initPrograms() local
2263 specializationMap["SCALE"] = "0.4"; in initPrograms()
2264 specializationMap["TRANSLATE"] = "-0.5"; in initPrograms()
2265 …llection.glslSources.add("vert0") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2267 specializationMap["SCALE"] = "0.4"; in initPrograms()
2268 specializationMap["TRANSLATE"] = "0.5"; in initPrograms()
2269 …llection.glslSources.add("vert1") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2273 …ollection.glslSources.add("vert") << glu::VertexSource(vertTemplate.specialize(specializationMap)); in initPrograms()
2279 specializationMap["SCALE"] = "9.0"; in initPrograms()
2280 specializationMap["TRANSLATE"] = "0.0"; in initPrograms()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gles3/
Des3cCopyTexImageConversionsTests.cpp9200 std::map<std::string, std::string> specializationMap; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport() local
9292 specializationMap["SAMPLER_PREFIX"] = " "; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9293 specializationMap["OUT_QUALIFIER"] = " "; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9294 specializationMap["OUT_TYPE"] = " vec4"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9295 specializationMap["EPSILON_TYPE"] = "float"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9296 specializationMap["EPSILON_VALUE"] = "(1.0/255.0)"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9297 specializationMap["FN"] = "abs"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9298 shader_source[0] = tcu::StringTemplate(source).specialize(specializationMap); in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9321 specializationMap["SAMPLER_PREFIX"] = "i"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
9322 specializationMap["OUT_QUALIFIER"] = "flat"; in setSourceForShaderObjectsUsedForNonRenderableTextureSupport()
[all …]