Home
last modified time | relevance | path

Searched refs:fragmentShader (Results 1 – 25 of 101) sorted by relevance

12345

/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DShaderModuleValidationTests.cpp272 std::string fragmentShader = in TEST_F() local
274 utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_F()
279 std::string fragmentShader = in TEST_F() local
281 ASSERT_DEVICE_ERROR(utils::CreateShaderModule(device, fragmentShader.c_str())); in TEST_F()
362 std::string fragmentShader = in TEST_F() local
365 utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_F()
374 std::string fragmentShader = in TEST_F() local
377 ASSERT_DEVICE_ERROR(utils::CreateShaderModule(device, fragmentShader.c_str())); in TEST_F()
385 std::string fragmentShader = in TEST_F() local
388 utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Device/
DPixelProcessor.cpp74 …pdate(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const sw::Spi… in update() argument
81 if(fragmentShader) in update()
83 state.shaderID = fragmentShader->getIdentifier(); in update()
134 bool fragmentContainsKill = (fragmentShader && fragmentShader->getAnalysis().ContainsKill); in update()
153 …bool shaderContainsSampleDecoration = fragmentShader && (fragmentShader->hasBuiltinInput(spv::Buil… in update()
154fragmentShader->hasBuiltinInput(spv::BuiltInSamplePosition)); in update()
167 if(state.enableMultiSampling && fragmentShader) in update()
169 state.centroid = fragmentShader->getAnalysis().NeedsCentroid; in update()
DSetupProcessor.cpp58 …pdate(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const sw::Spi… in update() argument
62 bool vPosZW = (fragmentShader && fragmentShader->hasBuiltinInput(spv::BuiltInFragCoord)); in update()
72 state.interpolateW = fragmentShader != nullptr; in update()
84 if(fragmentShader) in update()
88 state.gradient[interpolant] = fragmentShader->inputs[interpolant]; in update()
/third_party/skia/third_party/externals/spirv-cross/shaders-msl/asm/vert/
Dfake-builtin-input.asm.vert11 …OpEntryPoint Fragment %fragmentShader "fragmentShader" %in_var_POSITION %gl_Position %gl_FragCoord…
12 OpExecutionMode %fragmentShader OriginUpperLeft
17 OpName %fragmentShader "fragmentShader"
51 %fragmentShader = OpFunction %void None %22
/third_party/vk-gl-cts/framework/randomshaders/
DrsgTest.cpp51 rsg::Shader fragmentShader(rsg::Shader::TYPE_FRAGMENT); in runTest() local
54 generator.generate(programParams, vertexShader, fragmentShader); in runTest()
57 std::cout << "Fragment shader:\n--\n" << fragmentShader.getSource() << "--\n"; in runTest()
63 rsg::computeUnifiedUniforms(vertexShader, fragmentShader, uniforms); in runTest()
70 executor.execute(vertexShader, fragmentShader, uniformValues); in runTest()
DrsgProgramGenerator.cpp44 Shader& fragmentShader) in generate() argument
55 shaderGen.generate(programParams.fragmentParameters, fragmentShader, emptyOutputs); in generate()
63 …const vector<ShaderInput*>& fragmentInputs = fragmentShader.getInputs(); // \note gl_Position and … in generate()
71 const vector<ShaderInput*>& fragmentUniforms = fragmentShader.getUniforms(); in generate()
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderProgram.cpp70 …claration& decl, const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int numUnifie… in generateProgramDeclaration() argument
73 << sglr::pdec::FragmentSource(fragmentShader.getSource()); in generateProgramDeclaration()
81 …:ShaderInput*>::const_iterator fragInIter = fragmentShader.getInputs().begin(); fragInIter != frag… in generateProgramDeclaration()
96 …gramDeclaration (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int numUnifie… in generateProgramDeclaration() argument
99 …generateProgramDeclaration(decl, vertexShader, fragmentShader, numUnifiedUniforms, unifiedUniforms… in generateProgramDeclaration()
131 …omShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int numUnifie… in RandomShaderProgram() argument
132 …: sglr::ShaderProgram (generateProgramDeclaration(vertexShader, fragmentShader, numUnifiedUniforms… in RandomShaderProgram()
134 , m_fragmentShader (fragmentShader) in RandomShaderProgram()
138 , m_fragColorVar (findShaderOutputByLocation(fragmentShader, 0)) in RandomShaderProgram()
145 …:ShaderInput*>::const_iterator fragInIter = fragmentShader.getInputs().begin(); fragInIter != frag… in RandomShaderProgram()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
Dgl_raii.h182 void makeRaster(const char *vertexShader, const char *fragmentShader) in makeRaster() argument
184 mHandle = CompileProgram(vertexShader, fragmentShader); in makeRaster()
189 const char *fragmentShader) in makeRaster() argument
191 mHandle = CompileProgramWithGS(vertexShader, geometryShader, fragmentShader); in makeRaster()
197 const char *fragmentShader) in makeRaster() argument
200 fragmentShader); in makeRaster()
204 const char *fragmentShader, in makeRasterWithTransformFeedback() argument
208 mHandle = CompileProgramWithTransformFeedback(vertexShader, fragmentShader, tfVaryings, in makeRasterWithTransformFeedback()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcParallelShaderCompileTests.cpp254 deUint32 fragmentShader[8]; in iterate() local
262 fragmentShader[i] = gl.createShader(GL_FRAGMENT_SHADER); in iterate()
275 gl.shaderSource(fragmentShader[i], 2, fSources, fLengths); in iterate()
282 gl.compileShader(fragmentShader[i]); in iterate()
294 gl.getShaderiv(fragmentShader[i], GL_COMPLETION_STATUS_KHR, &completionStatus); in iterate()
307 gl.deleteShader(fragmentShader[i]); in iterate()
317 gl.attachShader(program[i], fragmentShader[i]); in iterate()
349 gl.deleteShader(fragmentShader[i]); in iterate()
DglcTextureFilterAnisotropicTests.cpp622 std::string fragmentShader = m_fragment; in drawTexture() local
629 …xtureFilterAnisotropicUtils::replaceToken("<TEXCOORD_TYPE>", texCoordType.c_str(), fragmentShader); in drawTexture()
631 TextureFilterAnisotropicUtils::replaceToken("<SAMPLER_TYPE>", samplerType.c_str(), fragmentShader); in drawTexture()
636 TextureFilterAnisotropicUtils::replaceToken("<VERSION>", "130", fragmentShader); in drawTexture()
641 TextureFilterAnisotropicUtils::replaceToken("<VERSION>", "300 es", fragmentShader); in drawTexture()
644 ProgramSources sources = makeVtxFragSources(vertexShader, fragmentShader); in drawTexture()
653 << fragmentShader << "\n" in drawTexture()
/third_party/vk-gl-cts/modules/egl/
DteglSwapBuffersTests.cpp138 deUint32 fragmentShader = 0; in createGLES2Program() local
151 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
159 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
160 gl.compileShader(fragmentShader); in createGLES2Program()
180 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
181 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
185 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
192 gl.attachShader(program, fragmentShader); in createGLES2Program()
222 gl.deleteShader(fragmentShader); in createGLES2Program()
235 if (fragmentShader) in createGLES2Program()
[all …]
DteglNativeCoordMappingTests.cpp106 deUint32 fragmentShader = 0; in createGLES2Program() local
119 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
127 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
128 gl.compileShader(fragmentShader); in createGLES2Program()
148 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
149 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
153 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
160 gl.attachShader(program, fragmentShader); in createGLES2Program()
190 gl.deleteShader(fragmentShader); in createGLES2Program()
203 if (fragmentShader) in createGLES2Program()
[all …]
DteglNativeColorMappingTests.cpp106 deUint32 fragmentShader = 0; in createGLES2Program() local
119 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
127 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
128 gl.compileShader(fragmentShader); in createGLES2Program()
148 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
149 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
153 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
160 gl.attachShader(program, fragmentShader); in createGLES2Program()
190 gl.deleteShader(fragmentShader); in createGLES2Program()
203 if (fragmentShader) in createGLES2Program()
[all …]
DteglGetFrameTimestampsTests.cpp374 deUint32 fragmentShader = 0; in createGLES2Program() local
387 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
395 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
396 gl.compileShader(fragmentShader); in createGLES2Program()
416 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
417 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
421 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
428 gl.attachShader(program, fragmentShader); in createGLES2Program()
458 gl.deleteShader(fragmentShader); in createGLES2Program()
471 if (fragmentShader) in createGLES2Program()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/VulkanBenchmarks/
DTriangleBenchmarks.cpp73 const char *fragmentShader = R"(#version 310 es in TriangleSolidColor() local
83 return tester.createShaderModule(fragmentShader, EShLanguage::EShLangFragment); in TriangleSolidColor()
130 const char *fragmentShader = R"(#version 310 es in TriangleInterpolateColor() local
142 return tester.createShaderModule(fragmentShader, EShLanguage::EShLangFragment); in TriangleInterpolateColor()
188 const char *fragmentShader = R"(#version 310 es in TriangleSampleTexture() local
200 return tester.createShaderModule(fragmentShader, EShLanguage::EShLangFragment); in TriangleSampleTexture()
/third_party/skia/experimental/webgpu-bazel/src/
Dbindings.cpp35 wgpu::ShaderModule fragmentShader) { in createRenderPipeline() argument
40 fragmentState.module = fragmentShader; in createRenderPipeline()
111 wgpu::ShaderModule fragmentShader) { in makeRenderPipeline() argument
112 return createRenderPipeline(fDevice, vertexShader, fragmentShader); in makeRenderPipeline()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DDynamicHLSL.cpp485 const ShaderD3D *fragmentShader = nullptr; in generateShaderLinkHLSL() local
488 fragmentShader = GetImplAs<ShaderD3D>(fragmentShaderGL); in generateShaderLinkHLSL()
499 ASSERT(!fragmentShader || !fragmentShader->usesFragColor() || !fragmentShader->usesFragData()); in generateShaderLinkHLSL()
714 if (fragmentShader && fragmentShader->usesViewID()) in generateShaderLinkHLSL()
802 if (fragmentShader && fragmentShader->usesFrontFacing()) in generateShaderLinkHLSL()
880 if (fragmentShader->usesFrontFacing()) in generateShaderLinkHLSL()
1275 const ShaderD3D *fragmentShader = metadata.getFragmentShader(); in getPixelShaderOutputKey() local
1277 if (!fragmentShader) in getPixelShaderOutputKey()
1282 const auto &shaderOutputVars = fragmentShader->getState().getActiveOutputVariables(); in getPixelShaderOutputKey()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkPipeline.cpp271 fragmentShader.reset(); in destroyPipeline()
287 (fragmentShader.get() && fragmentShader->containsImageWrite()); in containsImageWrite()
300 ASSERT(fragmentShader.get() == nullptr); in setShader()
301 fragmentShader = spirvShader; in setShader()
317 return fragmentShader; in getShader()
320 return fragmentShader; in getShader()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DTextureViewTests.cpp170 void Verify(const wgpu::TextureView& textureView, const char* fragmentShader, int expected) { in Verify() argument
171 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragmentShader); in Verify()
221 const char* fragmentShader = R"( in Texture2DViewTest() local
232 Verify(textureView, fragmentShader, expected); in Texture2DViewTest()
259 const char* fragmentShader = R"( in Texture2DArrayViewTest() local
275 Verify(textureView, fragmentShader, expected); in Texture2DArrayViewTest()
340 const std::string& fragmentShader = in TextureCubeMapTest() local
344 Verify(cubeMapTextureView, fragmentShader.c_str(), expected); in TextureCubeMapTest()
368 const char* fragmentShader = R"( in TEST_P() local
382 Verify(textureView, fragmentShader, expected); in TEST_P()
DShaderTests.cpp128 std::string fragmentShader = R"( in TEST_P() local
133 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_P()
164 std::string fragmentShader = R"( in TEST_P() local
169 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_P()
207 std::string fragmentShader = R"( in TEST_P() local
217 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_P()
254 std::string fragmentShader = R"( in TEST_P() local
264 wgpu::ShaderModule fsModule = utils::CreateShaderModule(device, fragmentShader.c_str()); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassMultisampleTests.cpp1745 std::ostringstream fragmentShader; in init() local
1747 fragmentShader << in init()
1760 fragmentShader << "\tdepth = " << minValue[0] << ";\n"; in init()
1768 fragmentShader << in init()
1776 fragmentShader << in init()
1780 dst.glslSources.add("quad-frag") << glu::FragmentSource(fragmentShader.str()); in init()
1804 std::ostringstream fragmentShader; in init() local
1806 fragmentShader << in init()
1821 fragmentShader << "\tcolor[" << ndx << "] = " << minValue[ndx] << ";\n"; in init()
1838 fragmentShader << in init()
[all …]
/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/
DDrawTests.cpp61 const char *fragmentShader = R"(#version 310 es in TEST_F() local
71 return tester.createShaderModule(fragmentShader, EShLanguage::EShLangFragment); in TEST_F()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DDrawElementsTest.cpp300 GLuint fragmentShader = CompileShader(GL_FRAGMENT_SHADER, essl3_shaders::fs::Red()); in TEST_P() local
302 ASSERT_NE(0u, fragmentShader); in TEST_P()
306 glAttachShader(program, fragmentShader); in TEST_P()
315 glDetachShader(program, fragmentShader); in TEST_P()
317 glDeleteShader(fragmentShader); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmVariableInitTests.cpp397 const string fragmentShader = in addShaderCodeOutput() local
452 …dst.spirvAsmSources.add("frag", DE_NULL) << fragmentShader << SpirVAsmBuildOptions(vulkanVersion, … in addShaderCodeOutput()
543 const StringTemplate fragmentShader ( in addShaderCodeOutput() local
585 …dst.spirvAsmSources.add("frag", DE_NULL) << fragmentShader.specialize(spec) << SpirVAsmBuildOption… in addShaderCodeOutput()
/third_party/vk-gl-cts/framework/referencerenderer/
DrrRenderer.cpp1041 const size_t numOutputs = program.fragmentShader->getOutputs().size(); in writeFragmentPackets()
1126 … buffers.fragmentDepthBuffer, triangle.v2->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1159 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1183 …[0], buffers.fragmentDepthBuffer, line.v1->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1212 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1249 …0], buffers.fragmentDepthBuffer, point.v0->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1277 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1297 const int numFragmentOutputs = (int)program.fragmentShader->getOutputs().size(); in rasterize()
1529 if (command.program.geometryShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
1534 if (command.program.vertexShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
[all …]

12345