Home
last modified time | relevance | path

Searched refs:fragmentShader (Results 1 – 25 of 29) 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…
DrsgUtils.cpp50 void computeUnifiedUniforms (const Shader& vertexShader, const Shader& fragmentShader, std::vector<… in computeUnifiedUniforms() argument
54 addNewUniforms(uniforms, addedUniforms, fragmentShader); in computeUnifiedUniforms()
/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.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 …]
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 …]
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 …]
DteglGLES2SharingTests.cpp350 const char* fragmentShader = "" in renderResource() local
357 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
526 const char* fragmentShader = "" in renderResource() local
534 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
662 const char* fragmentShader = "" in createResource() local
669 m_program = new glu::ShaderProgram(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in createResource()
815 const char* fragmentShader = "" in createResource() local
833 GLU_CHECK_GLW_CALL(m_gl, shaderSource(m_shader, 1, &fragmentShader, DE_NULL)); in createResource()
859 m_log << tcu::TestLog::Message << fragmentShader << tcu::TestLog::EndMessage; in createResource()
893 const char* fragmentShader = "" in renderResource() local
[all …]
DteglGLES2SharedRenderingPerfTests.cpp303 GLuint fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createProgram() local
326 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createProgram()
349 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createProgram()
355 gl.compileShader(fragmentShader); in createProgram()
383 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &status); in createProgram()
391 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &length); in createProgram()
395 gl.getShaderInfoLog(fragmentShader, (GLsizei)log.size(), &length, &(log[0])); in createProgram()
407 gl.attachShader(program, fragmentShader); in createProgram()
437 gl.deleteShader(fragmentShader); in createProgram()
DteglGLES2SharingThreadedTests.cpp1461 SharedPtr<Shader> fragmentShader; member in deqp::egl::GLES2ThreadTest::Program
1560 m_program->fragmentShader = shader; in AttachShader()
1606 DE_ASSERT(m_program->fragmentShader); in DetachShader()
1607 m_program->fragmentShader = SharedPtr<Shader>(); in DetachShader()
2396 if (program->vertexShader || program->fragmentShader) in addRandomOperation()
2404 else if (program->fragmentShader) in addRandomOperation()
2415 else if (program->fragmentShader) in addRandomOperation()
2432 if (!program->fragmentShader) in addRandomOperation()
2441 if (program->vertexShader && program->fragmentShader) in addRandomOperation()
3119 SharedPtr<GLES2ThreadTest::Shader> fragmentShader; in addBufferOperations() local
[all …]
DteglImageFormatTests.cpp411 const char* const fragmentShader = in invokeGLES2() local
419 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
488 const char* fragmentShader = in invokeGLES2() local
494 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
612 const char* fragmentShader = in invokeGLES2() local
618 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
/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/jmonkeyengine/engine/src/core/com/jme3/material/
DTechniqueDef.java230 public void setShaderFile(String vertexShader, String fragmentShader, String shaderLanguage){ in setShaderFile() argument
232 this.fragName = fragmentShader; in setShaderFile()
/external/deqp/modules/gles3/functional/
Des3fShaderInvarianceTests.cpp405 …t std::string& vertexShader1, const std::string& vertexShader2, const std::string& fragmentShader);
433 …st std::string& vertexShader1, const std::string& vertexShader2, const std::string& fragmentShader) in BasicInvarianceTest() argument
437 , m_fragmentShader (fragmentShader) in BasicInvarianceTest()
Des3fVertexArrayObjectTests.cpp534 const char* fragmentShader = in createProgram() local
543 …m(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderStream.str(), fragmentShader)); in createProgram()
1111 const char* fragmentShader = in createProgram() local
1120 …m(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShaderStream.str(), fragmentShader)); in createProgram()
/external/deqp/modules/gles2/functional/
Des2fShaderInvarianceTests.cpp405 …t std::string& vertexShader1, const std::string& vertexShader2, const std::string& fragmentShader);
431 …st std::string& vertexShader1, const std::string& vertexShader2, const std::string& fragmentShader) in BasicInvarianceTest() argument
435 , m_fragmentShader (fragmentShader) in BasicInvarianceTest()
Des2fVertexTextureTests.cpp447 const char* const fragmentShader = in init() local
459 …ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader)); in init()
750 const char* const fragmentShader = in init() local
762 …ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader)); in init()
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp201 std::ostringstream fragmentShader; in createShader() local
251 fragmentShader in createShader()
259 …amSources() << glu::VertexSource(vertexShader.str()) << glu::FragmentSource(fragmentShader.str())); in createShader()

12