Home
last modified time | relevance | path

Searched refs:fragShader (Results 1 – 25 of 78) sorted by relevance

1234

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DMinimumBufferSizeValidationTests.cpp188 const std::string& fragShader) { in CreateRenderPipeline() argument
191 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragShader.c_str()); in CreateRenderPipeline()
210 const std::string& fragShader) { in CreateRenderPipelineWithDefaultLayout() argument
211 return CreateRenderPipeline({}, vertexShader, fragShader); in CreateRenderPipelineWithDefaultLayout()
244 const std::string& fragShader, in GetBGLFromRenderShaders() argument
247 CreateRenderPipelineWithDefaultLayout(vertexShader, fragShader); in GetBGLFromRenderShaders()
331 std::string fragShader = CreateFragmentShaderWithBindings(bindings); in TEST_F() local
334 CreateRenderPipeline({layout}, vertexShader, fragShader); in TEST_F()
345 std::string fragShader = CreateFragmentShaderWithBindings(bindings); in TEST_F() local
350 CreateRenderPipeline({layout}, vertexShader, fragShader); in TEST_F()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationOrderAttachmentAccessTests.cpp423 std::stringstream fragShader; in addShadersInternal() local
424 fragShader << "#version 450\n" in addShadersInternal()
429fragShader << "layout( set = 0, binding = " << i << ", input_attachment_index = " << i << " ) unif… in addShadersInternal()
433 fragShader << "layout( push_constant ) uniform ConstBlock\n" in addShadersInternal()
461 fragShader << " previous[" << i << "] = subpassLoad( in" << i << ").xy;\n"; in addShadersInternal()
465 fragShader << " previous[" << i << "] = subpassLoad( in" << i << ", gl_SampleID).xy;\n"; in addShadersInternal()
468 fragShader << " for(index = 0u; index < post_fetch_loop; index++)\n" in addShadersInternal()
474 fragShader << " if (previous[" << i << "].y == 0 && curIndex == 0)\n" in addShadersInternal()
490 fragShader << "}\n"; in addShadersInternal()
492 tcu::StringTemplate fragShaderTpl(fragShader.str()); in addShadersInternal()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/
DvktRasterizationOrderAttachmentAccessTests.cpp423 std::stringstream fragShader; in addShadersInternal() local
424 fragShader << "#version 450\n" in addShadersInternal()
429fragShader << "layout( set = 0, binding = " << i << ", input_attachment_index = " << i << " ) unif… in addShadersInternal()
433 fragShader << "layout( push_constant ) uniform ConstBlock\n" in addShadersInternal()
461 fragShader << " previous[" << i << "] = subpassLoad( in" << i << ").xy;\n"; in addShadersInternal()
465 fragShader << " previous[" << i << "] = subpassLoad( in" << i << ", gl_SampleID).xy;\n"; in addShadersInternal()
468 fragShader << " for(index = 0u; index < post_fetch_loop; index++)\n" in addShadersInternal()
474 fragShader << " if (previous[" << i << "].y == 0 && curIndex == 0)\n" in addShadersInternal()
490 fragShader << "}\n"; in addShadersInternal()
492 tcu::StringTemplate fragShaderTpl(fragShader.str()); in addShadersInternal()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DProgramPipelineTest.cpp528 GLShader fragShader(GL_FRAGMENT_SHADER); in TEST_P() local
541 glShaderSource(fragShader, 1, &fragString, nullptr); in TEST_P()
542 glCompileShader(fragShader); in TEST_P()
544 glAttachShader(mFragProg, fragShader); in TEST_P()
561 glDetachShader(mFragProg, fragShader); in TEST_P()
572 glShaderSource(fragShader, 1, &fragString2, nullptr); in TEST_P()
573 glCompileShader(fragShader); in TEST_P()
881 GLShader fragShader(GL_FRAGMENT_SHADER); in TEST_P() local
894 glShaderSource(fragShader, 1, &fragStringGreen, nullptr); in TEST_P()
895 glCompileShader(fragShader); in TEST_P()
[all …]
DVulkanUniformUpdatesTest.cpp591 GLShader fragShader(GL_FRAGMENT_SHADER); in TEST_P() local
592 glShaderSource(fragShader, 1, &kColorUniformFragmentShader, nullptr); in TEST_P()
593 glCompileShader(fragShader); in TEST_P()
597 glAttachShader(program, fragShader); in TEST_P()
DGeometryShaderTest.cpp1641 GLShader fragShader(GL_FRAGMENT_SHADER); in TEST_P() local
1642 glShaderSource(fragShader, 1, &kFS, nullptr); in TEST_P()
1643 glCompileShader(fragShader); in TEST_P()
1648 glAttachShader(geomFragProg, fragShader); in TEST_P()
1686 glAttachShader(geomFragProg, fragShader); in TEST_P()
1691 glShaderSource(fragShader, 1, &otherFS, nullptr); in TEST_P()
1692 glCompileShader(fragShader); in TEST_P()
DBlendFuncExtendedTest.cpp807 std::stringstream fragShader; in TEST_P() local
808 fragShader << R"(#version 300 es in TEST_P()
820 GLuint fs = CompileShader(GL_FRAGMENT_SHADER, fragShader.str().c_str()); in TEST_P()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderApiTests.cpp309 …:RenderContext& renderCtx, glu::Program& program, glu::Shader& vertShader, glu::Shader& fragShader) in logVertexFragmentProgram() argument
311 …DE_ASSERT(vertShader.getType() == glu::SHADERTYPE_VERTEX && fragShader.getType() == glu::SHADERTYP… in logVertexFragmentProgram()
316 logShader(log, renderCtx, fragShader); in logVertexFragmentProgram()
409 const GLuint fragShader = glCreateShader(GL_FRAGMENT_SHADER); in compileShaders() local
412 TCU_CHECK(fragShader != 0); in compileShaders()
417 glShaderSource(fragShader, 1, &fragSource, 0); in compileShaders()
418 glCompileShader(fragShader); in compileShaders()
423 m_fragShader = fragShader; in compileShaders()
788 glu::Shader& fragShader = shaders.createShader(glu::SHADERTYPE_FRAGMENT); in buildProgram() local
791 fragShader.compile(); in buildProgram()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawDifferingInterpolationTests.cpp61 string fragShader; member
142 const tcu::StringTemplate fragShader (string( in initPrograms() local
160 programCollection.glslSources.add("frag") << glu::FragmentSource(fragShader.specialize(empty)); in initPrograms()
161 …programCollection.glslSources.add("fragFlatColor") << glu::FragmentSource(fragShader.specialize(fl… in initPrograms()
162 …programCollection.glslSources.add("fragNoPerspective") << glu::FragmentSource(fragShader.specializ… in initPrograms()
181 const string fragShaderNames[2] = { m_data.fragShader, m_data.refFragShader }; in iterate()
DvktDrawAhbTests.cpp160 const PassthruFragShader fragShader; in generateRefImage() local
161 const rr::Program program (&vertShader, &fragShader); in generateRefImage()
236 std::stringstream fragShader; in initShaderSources() local
237 fragShader << "#version 430\n" in initShaderSources()
246 m_fragShaderSource = fragShader.str(); in initShaderSources()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
DvktDrawDifferingInterpolationTests.cpp61 string fragShader; member
142 const tcu::StringTemplate fragShader (string( in initPrograms() local
160 programCollection.glslSources.add("frag") << glu::FragmentSource(fragShader.specialize(empty)); in initPrograms()
161 …programCollection.glslSources.add("fragFlatColor") << glu::FragmentSource(fragShader.specialize(fl… in initPrograms()
162 …programCollection.glslSources.add("fragNoPerspective") << glu::FragmentSource(fragShader.specializ… in initPrograms()
181 const string fragShaderNames[2] = { m_data.fragShader, m_data.refFragShader }; in iterate()
DvktDrawAhbTests.cpp160 const PassthruFragShader fragShader; in generateRefImage() local
161 const rr::Program program (&vertShader, &fragShader); in generateRefImage()
236 std::stringstream fragShader; in initShaderSources() local
237 fragShader << "#version 430\n" in initShaderSources()
246 m_fragShaderSource = fragShader.str(); in initShaderSources()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderApiTests.cpp363 …:RenderContext& renderCtx, glu::Program& program, glu::Shader& vertShader, glu::Shader& fragShader) in logVertexFragmentProgram() argument
365 …DE_ASSERT(vertShader.getType() == glu::SHADERTYPE_VERTEX && fragShader.getType() == glu::SHADERTYP… in logVertexFragmentProgram()
370 logShader(log, renderCtx, fragShader); in logVertexFragmentProgram()
463 const GLuint fragShader = glCreateShader(GL_FRAGMENT_SHADER); in compileShaders() local
466 TCU_CHECK(fragShader != 0); in compileShaders()
471 glShaderSource(fragShader, 1, &fragSource, 0); in compileShaders()
472 glCompileShader(fragShader); in compileShaders()
477 m_fragShader = fragShader; in compileShaders()
848 glu::Shader& fragShader = shaders.createShader(glu::SHADERTYPE_FRAGMENT); in buildProgram() local
851 fragShader.compile(); in buildProgram()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineImage2DViewOf3DTests.cpp245 …const Unique<VkShaderModule> fragShader (createShaderModule(vk, device, m_context.getBina… in runGraphicsPipeline() local
298 .setupFragmentShaderState(*pipelineLayout, *renderPass, 0u, *fragShader) in runGraphicsPipeline()
693 std::stringstream fragShader; in initPrograms() local
696 fragShader << "#version 450 core\n" in initPrograms()
709 fragShader << "#version 450 core\n" in initPrograms()
722 fragShader << "#version 450 core\n" in initPrograms()
732 sourceCollections.glslSources.add("frag") << glu::FragmentSource(fragShader.str()); in initPrograms()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImage2DViewOf3DTests.cpp245 …const Unique<VkShaderModule> fragShader (createShaderModule(vk, device, m_context.getBina… in runGraphicsPipeline() local
298 .setupFragmentShaderState(*pipelineLayout, *renderPass, 0u, *fragShader) in runGraphicsPipeline()
693 std::stringstream fragShader; in initPrograms() local
696 fragShader << "#version 450 core\n" in initPrograms()
709 fragShader << "#version 450 core\n" in initPrograms()
722 fragShader << "#version 450 core\n" in initPrograms()
732 sourceCollections.glslSources.add("frag") << glu::FragmentSource(fragShader.str()); in initPrograms()
/third_party/vk-gl-cts/modules/gles2/performance/
Des2pShaderCompilationCases.cpp456 deUint32 fragShader; member
477 …void setShaderSources (deUint32 vertShader, deUint32 fragShader, const ProgramContext&) con…
633 deUint32 fragShader; member
1692 result.fragShader = gl.createShader(GL_FRAGMENT_SHADER); in createShadersAndProgram()
1696 gl.attachShader(result.program, result.fragShader); in createShadersAndProgram()
1701 void ShaderCompilerCase::setShaderSources (deUint32 vertShader, deUint32 fragShader, const ProgramC… in setShaderSources() argument
1707 gl.shaderSource(fragShader, 1, &fragShaderSourceCStr, DE_NULL); in setShaderSources()
1808 gl.detachShader(shadersAndProgram.program, shadersAndProgram.fragShader); in cleanup()
1810 gl.deleteShader(shadersAndProgram.fragShader); in cleanup()
1828 result.frag = getShaderInfoLog(gl, shadersAndProgram.fragShader); in getLogs()
[all …]
/third_party/vk-gl-cts/modules/gles3/performance/
Des3pShaderCompilationCases.cpp456 deUint32 fragShader; member
477 …void setShaderSources (deUint32 vertShader, deUint32 fragShader, const ProgramContext&) con…
633 deUint32 fragShader; member
1712 result.fragShader = gl.createShader(GL_FRAGMENT_SHADER); in createShadersAndProgram()
1716 gl.attachShader(result.program, result.fragShader); in createShadersAndProgram()
1721 void ShaderCompilerCase::setShaderSources (deUint32 vertShader, deUint32 fragShader, const ProgramC… in setShaderSources() argument
1727 gl.shaderSource(fragShader, 1, &fragShaderSourceCStr, DE_NULL); in setShaderSources()
1828 gl.detachShader(shadersAndProgram.program, shadersAndProgram.fragShader); in cleanup()
1830 gl.deleteShader(shadersAndProgram.fragShader); in cleanup()
1848 result.frag = getShaderInfoLog(gl, shadersAndProgram.fragShader); in getLogs()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_rate/
DvktAttachmentRateTests.cpp155 VkShaderModule fragShader,
547 VkShaderModule vertShader, VkShaderModule fragShader, bool useShadingRate) const in buildGraphicsPipeline() argument
561 pipelineShaderStageParams[1].module = fragShader; in buildGraphicsPipeline()
1093 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runComputeShaderMode() local
1137 …ildGraphicsPipeline(0, *renderPass, m_cbFormat, *graphicsPipelineLayout, *vertShader, *fragShader); in runComputeShaderMode()
1243 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runFragmentShaderMode() local
1273 …ildGraphicsPipeline(0, *rateRenderPass, m_cbFormat, *ratePipelineLayout, *vertShader, *fragShader); in runFragmentShaderMode()
1384 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runCopyMode() local
1412 …ildGraphicsPipeline(0, *renderPass, m_cbFormat, *graphicsPipelineLayout, *vertShader, *fragShader); in runCopyMode()
1627 …Move<VkShaderModule> fragShader = createShaderModule(vk, *m_device, m_context.getBinaryCollectio… in runCopyModeOnTransferQueue() local
[all …]
DvktFragmentShadingRatePixelConsistency.cpp937 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection().g… in iterate() local
955 *fragShader, // shader in iterate()
1081 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection().g… in iterate() local
1099 *fragShader, // shader in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/
DvktAttachmentRateTests.cpp155 VkShaderModule fragShader,
547 VkShaderModule vertShader, VkShaderModule fragShader, bool useShadingRate) const in buildGraphicsPipeline() argument
561 pipelineShaderStageParams[1].module = fragShader; in buildGraphicsPipeline()
1093 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runComputeShaderMode() local
1137 …ildGraphicsPipeline(0, *renderPass, m_cbFormat, *graphicsPipelineLayout, *vertShader, *fragShader); in runComputeShaderMode()
1243 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runFragmentShaderMode() local
1273 …ildGraphicsPipeline(0, *rateRenderPass, m_cbFormat, *ratePipelineLayout, *vertShader, *fragShader); in runFragmentShaderMode()
1384 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection()… in runCopyMode() local
1412 …ildGraphicsPipeline(0, *renderPass, m_cbFormat, *graphicsPipelineLayout, *vertShader, *fragShader); in runCopyMode()
1627 …Move<VkShaderModule> fragShader = createShaderModule(vk, *m_device, m_context.getBinaryCollectio… in runCopyModeOnTransferQueue() local
[all …]
DvktFragmentShadingRatePixelConsistency.cpp937 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection().g… in iterate() local
955 *fragShader, // shader in iterate()
1081 …Move<VkShaderModule> fragShader = createShaderModule(vk, device, m_context.getBinaryCollection().g… in iterate() local
1099 *fragShader, // shader in iterate()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gl_tests/
DBlendFuncExtendedTest.cpp552 std::stringstream fragShader; in TEST_P() local
553 fragShader << R"(#version 300 es in TEST_P()
565 GLuint fs = CompileShader(GL_FRAGMENT_SHADER, fragShader.str().c_str()); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/util/
DvktDrawUtil.cpp415 VkShaderModule fragShader = DE_NULL; in registerDrawObject() local
540 fragShader = *object->shaderModules[shaderNdx]; in registerDrawObject()
558 fragShader, // const VkShaderModule fragmentShaderModule in registerDrawObject()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/util/
DvktDrawUtil.cpp415 VkShaderModule fragShader = DE_NULL; in registerDrawObject() local
540 fragShader = *object->shaderModules[shaderNdx]; in registerDrawObject()
558 fragShader, // const VkShaderModule fragmentShaderModule in registerDrawObject()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcTextureCompatibilityTests.cpp78 const char* fragShader = variable
404 const auto fs = tcu::StringTemplate(fragShader).specialize(args); in initializeProgram()

1234