Home
last modified time | relevance | path

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

12

/external/deqp/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()
DrsgProgramGenerator.hpp39 …generate (const ProgramParameters& programParams, Shader& vertexShader, Shader& fragmentShader);
DrsgProgramExecutor.cpp211 void ProgramExecutor::execute (const Shader& vertexShader, const Shader& fragmentShader, const vect… in execute() argument
285 const vector<ShaderInput*>& inputs = fragmentShader.getInputs(); in execute()
290 fragmentShader.getOutputs(outputs); in execute()
339 fragmentShader.execute(execCtx); in execute()
DrsgProgramExecutor.hpp51 …void execute (const Shader& vertexShader, const Shader& fragmentShader, const std::vector…
DrsgUtils.hpp38 void computeUnifiedUniforms (const Shader& vertexShader, const Shader& fragmentShader, std::vecto…
/external/chromium_org/third_party/angle/tests/angle_tests/
DGLSLTest.cpp105 … vec2ArrayCount, GLint vec3Count, GLint vec3ArrayCount, std::string* fragmentShader, std::string* … in GenerateGLSLWithVaryings() argument
194 fragmentShader->clear(); in GenerateGLSLWithVaryings()
195 fragmentShader->append("precision highp float;\n"); in GenerateGLSLWithVaryings()
196 fragmentShader->append(varyingDeclaration); in GenerateGLSLWithVaryings()
197 fragmentShader->append("\nvoid main() \n{ \n\tvec4 retColor = vec4(0,0,0,0);\n"); in GenerateGLSLWithVaryings()
202 fragmentShader->append("\tretColor += vec4("); in GenerateGLSLWithVaryings()
206 fragmentShader->append(GenerateVectorVaryingUseCode(1, currentFSVarying)); in GenerateGLSLWithVaryings()
212 fragmentShader->append(GenerateVectorVaryingUseCode(2, currentFSVarying)); in GenerateGLSLWithVaryings()
216 fragmentShader->append("0.0, 0.0, 0.0, 0.0);\n"); in GenerateGLSLWithVaryings()
219 fragmentShader->append("\tretColor += vec4("); in GenerateGLSLWithVaryings()
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/
DDynamicHLSL.cpp228 … DynamicHLSL::packVaryings(InfoLog &infoLog, VaryingPacking packing, rx::ShaderD3D *fragmentShader, in packVaryings() argument
235 fragmentShader->resetVaryingsRegisterAssignment(); in packVaryings()
239 std::vector<gl::PackedVarying> &fragmentVaryings = fragmentShader->getVaryings(); in packVaryings()
667 rx::ShaderD3D *fragmentShader, rx::ShaderD3D *vertexShader, in generateShaderLinkHLSL() argument
679 bool usesMRT = fragmentShader->mUsesMultipleRenderTargets; in generateShaderLinkHLSL()
680 bool usesFragColor = fragmentShader->mUsesFragColor; in generateShaderLinkHLSL()
681 bool usesFragData = fragmentShader->mUsesFragData; in generateShaderLinkHLSL()
682 bool usesFragCoord = fragmentShader->mUsesFragCoord; in generateShaderLinkHLSL()
683 bool usesPointCoord = fragmentShader->mUsesPointCoord; in generateShaderLinkHLSL()
703 …const bool broadcast = (fragmentShader->mUsesFragColor && mRenderer->getCurrentClientVersion() < 3… in generateShaderLinkHLSL()
[all …]
DDynamicHLSL.h61 int packVaryings(gl::InfoLog &infoLog, VaryingPacking packing, rx::ShaderD3D *fragmentShader,
69 rx::ShaderD3D *fragmentShader, rx::ShaderD3D *vertexShader,
76 …std::string generateGeometryShaderHLSL(int registers, rx::ShaderD3D *fragmentShader, rx::ShaderD3D…
93 …void defineOutputVariables(rx::ShaderD3D *fragmentShader, std::map<int, gl::VariableLocation> *pro…
94 …std::string generatePointSpriteHLSL(int registers, rx::ShaderD3D *fragmentShader, rx::ShaderD3D *v…
DProgramD3D.cpp128 bool ProgramD3D::link(gl::InfoLog &infoLog, gl::Shader *fragmentShader, gl::Shader *vertexShader, in link() argument
133 …rx::ShaderD3D *fragmentShaderD3D = rx::ShaderD3D::makeShaderD3D(fragmentShader->getImplementation(… in link()
150 if (!gl::ProgramBinary::linkVaryings(infoLog, fragmentShader, vertexShader)) in link()
DProgramD3D.h55 bool link(gl::InfoLog &infoLog, gl::Shader *fragmentShader, gl::Shader *vertexShader,
/external/deqp/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()
DglsRandomShaderProgram.hpp44 …RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int num…
DglsAttributeLocationTests.cpp419 const deUint32 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createAndAttachShaders() local
430 gl.shaderSource(fragmentShader, 1, &fragmentShaderString, DE_NULL); in createAndAttachShaders()
436 gl.compileShader(fragmentShader); in createAndAttachShaders()
440 gl.attachShader(program, fragmentShader); in createAndAttachShaders()
445 const bool fragmentCompileOk = getShaderCompileStatus(gl, fragmentShader); in createAndAttachShaders()
448 const string fragmentShaderInfoLog = getShaderInfoLog(gl, fragmentShader); in createAndAttachShaders()
457 gl.deleteShader(fragmentShader); in createAndAttachShaders()
459 return pair<deUint32, deUint32>(vertexShader, fragmentShader); in createAndAttachShaders()
466 if (fragmentShader != 0) in createAndAttachShaders()
467 gl.deleteShader(fragmentShader); in createAndAttachShaders()
/external/deqp/modules/egl/
DteglSwapBuffersTests.cpp136 deUint32 fragmentShader = 0; in createGLES2Program() local
149 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
157 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
158 gl.compileShader(fragmentShader); in createGLES2Program()
178 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
179 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
183 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
190 gl.attachShader(program, fragmentShader); in createGLES2Program()
220 gl.deleteShader(fragmentShader); in createGLES2Program()
233 if (fragmentShader) in createGLES2Program()
[all …]
DteglNativeColorMappingTests.cpp101 deUint32 fragmentShader = 0; in createGLES2Program() local
114 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
122 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
123 gl.compileShader(fragmentShader); in createGLES2Program()
143 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
144 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
148 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
155 gl.attachShader(program, fragmentShader); in createGLES2Program()
185 gl.deleteShader(fragmentShader); in createGLES2Program()
198 if (fragmentShader) in createGLES2Program()
[all …]
DteglNativeCoordMappingTests.cpp101 deUint32 fragmentShader = 0; in createGLES2Program() local
114 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
122 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
123 gl.compileShader(fragmentShader); in createGLES2Program()
143 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
144 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
148 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
155 gl.attachShader(program, fragmentShader); in createGLES2Program()
185 gl.deleteShader(fragmentShader); in createGLES2Program()
198 if (fragmentShader) in createGLES2Program()
[all …]
DteglGLES2SharingTests.cpp389 const char* fragmentShader = "" in renderResource() local
396 Program program(vertexShader, fragmentShader); in renderResource()
565 const char* fragmentShader = "" in renderResource() local
573 Program program(vertexShader, fragmentShader); in renderResource()
701 const char* fragmentShader = "" in createResource() local
708 m_program = new Program(vertexShader, fragmentShader); in createResource()
854 const char* fragmentShader = "" in createResource() local
872 GLU_CHECK_CALL(glShaderSource(m_shader, 1, &fragmentShader, NULL)); in createResource()
898 m_log << tcu::TestLog::Message << fragmentShader << tcu::TestLog::EndMessage; in createResource()
932 const char* fragmentShader = "" in renderResource() local
[all …]
DteglGLES2SharedRenderingPerfTests.cpp320 GLuint fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createProgram() local
343 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, NULL); in createProgram()
366 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, NULL); in createProgram()
372 gl.compileShader(fragmentShader); in createProgram()
400 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &status); in createProgram()
408 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &length); in createProgram()
412 gl.getShaderInfoLog(fragmentShader, (GLsizei)log.size(), &length, &(log[0])); in createProgram()
424 gl.attachShader(program, fragmentShader); in createProgram()
454 gl.deleteShader(fragmentShader); in createProgram()
/external/deqp/framework/referencerenderer/
DrrRenderer.hpp64 , fragmentShader (fragmentShader_) in Program()
70 const FragmentShader* fragmentShader; member
DrrRenderer.cpp1036 const size_t numOutputs = program.fragmentShader->getOutputs().size(); in writeFragmentPackets()
1120 … buffers.fragmentDepthBuffer, triangle.v2->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1153 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1177 …[0], buffers.fragmentDepthBuffer, line.v1->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1206 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1243 …0], buffers.fragmentDepthBuffer, point.v0->primitiveID, (int)program.fragmentShader->getOutputs().… in rasterizePrimitive()
1271 …program.fragmentShader->shadeFragments(&buffers.fragmentPackets[0], numRasterizedPackets, shadingC… in rasterizePrimitive()
1291 const int numFragmentOutputs = (int)program.fragmentShader->getOutputs().size(); in rasterize()
1521 if (command.program.geometryShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
1526 if (command.program.vertexShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
[all …]
/external/chromium_org/third_party/libjingle/source/talk/app/webrtc/objc/
DRTCOpenGLVideoRenderer.mm119 GLuint CreateProgram(GLuint vertexShader, GLuint fragmentShader) {
120 if (vertexShader == 0 || fragmentShader == 0) {
128 glAttachShader(program, fragmentShader);
281 GLuint fragmentShader =
283 NSAssert(fragmentShader, @"failed to create fragment shader");
284 _program = CreateProgram(vertexShader, fragmentShader);
289 if (fragmentShader) {
290 glDeleteShader(fragmentShader);
/external/chromium_org/third_party/angle/src/libGLESv2/
DProgramBinary.h156 …bool link(InfoLog &infoLog, const AttributeBindings &attributeBindings, Shader *fragmentShader, Sh…
197 static bool linkVaryings(InfoLog &infoLog, Shader *fragmentShader, Shader *vertexShader);
224 …bool linkUniforms(InfoLog &infoLog, const Shader &vertexShader, const Shader &fragmentShader, cons…
232 …rmBlocks(InfoLog &infoLog, const Shader &vertexShader, const Shader &fragmentShader, const Caps &c…
244 void defineOutputVariables(Shader *fragmentShader);
DProgramBinary.cpp1034 bool ProgramBinary::linkVaryings(InfoLog &infoLog, Shader *fragmentShader, Shader *vertexShader) in linkVaryings() argument
1036 std::vector<PackedVarying> &fragmentVaryings = fragmentShader->getVaryings(); in linkVaryings()
1570 …nfoLog &infoLog, const AttributeBindings &attributeBindings, Shader *fragmentShader, Shader *verte… in link() argument
1573 if (!fragmentShader || !fragmentShader->isCompiled()) in link()
1577 ASSERT(fragmentShader->getType() == GL_FRAGMENT_SHADER); in link()
1593 …rx::ShaderD3D *fragmentShaderD3D = rx::ShaderD3D::makeShaderD3D(fragmentShader->getImplementation(… in link()
1599 …if (!mProgram->link(infoLog, fragmentShader, vertexShader, transformFeedbackVaryings, &registers, … in link()
1613 if (!linkUniforms(infoLog, *vertexShader, *fragmentShader, caps)) in link()
1628 if (!linkUniformBlocks(infoLog, *vertexShader, *fragmentShader, caps)) in link()
1853 …Uniforms(InfoLog &infoLog, const Shader &vertexShader, const Shader &fragmentShader, const Caps &c… in linkUniforms() argument
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/
DProgramImpl.h46 virtual bool link(gl::InfoLog &infoLog, gl::Shader *fragmentShader, gl::Shader *vertexShader,

12