Home
last modified time | relevance | path

Searched refs:vertexShader (Results 1 – 25 of 27) sorted by relevance

12

/external/deqp/framework/randomshaders/
DrsgTest.cpp50 rsg::Shader vertexShader(rsg::Shader::TYPE_VERTEX); in runTest() local
54 generator.generate(programParams, vertexShader, fragmentShader); in runTest()
56 std::cout << "Vertex shader:\n--\n" << vertexShader.getSource() << "--\n"; in runTest()
63 rsg::computeUnifiedUniforms(vertexShader, fragmentShader, uniforms); in runTest()
70 executor.execute(vertexShader, fragmentShader, uniformValues); in runTest()
DrsgProgramGenerator.cpp43 Shader& vertexShader, in generate() argument
65 shaderGen.generate(programParams.vertexParameters, vertexShader, fragmentInputs); in generate()
70 const vector<ShaderInput*>& vertexUniforms = vertexShader.getUniforms(); in generate()
DrsgProgramGenerator.hpp39 …void generate (const ProgramParameters& programParams, Shader& vertexShader, Shader& fragm…
DrsgProgramExecutor.cpp211 void ProgramExecutor::execute (const Shader& vertexShader, const Shader& fragmentShader, const vect… in execute() argument
224 const vector<ShaderInput*>& inputs = vertexShader.getInputs(); in execute()
226 vertexShader.getOutputs(outputs); in execute()
255 vertexShader.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
53 addNewUniforms(uniforms, addedUniforms, vertexShader); in computeUnifiedUniforms()
/external/deqp/modules/glshared/
DglsRandomShaderProgram.cpp70 …ation (sglr::pdec::ShaderProgramDeclaration& decl, const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
72 decl << sglr::pdec::VertexSource(vertexShader.getSource()) in generateProgramDeclaration()
75 …rsg::ShaderInput*>::const_iterator vtxInIter = vertexShader.getInputs().begin(); vtxInIter != vert… in generateProgramDeclaration()
96 …aderProgramDeclaration generateProgramDeclaration (const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
99 …generateProgramDeclaration(decl, vertexShader, fragmentShader, numUnifiedUniforms, unifiedUniforms… in generateProgramDeclaration()
131 RandomShaderProgram::RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragm… in RandomShaderProgram() argument
132 …: sglr::ShaderProgram (generateProgramDeclaration(vertexShader, fragmentShader, numUnifiedUniforms… in RandomShaderProgram()
133 , m_vertexShader (vertexShader) in RandomShaderProgram()
137 , m_positionVar (findShaderOutputByName(vertexShader, "gl_Position")) in RandomShaderProgram()
148 …const rsg::Variable* vertexOutput = findShaderOutputByName(vertexShader, fragInput->getVariable()-… in RandomShaderProgram()
DglsRandomShaderProgram.hpp44 …RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragmentShader, int num…
DglsAttributeLocationTests.cpp418 const deUint32 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createAndAttachShaders() local
429 gl.shaderSource(vertexShader, 1, &vertexShaderString, DE_NULL); in createAndAttachShaders()
435 gl.compileShader(vertexShader); in createAndAttachShaders()
439 gl.attachShader(program, vertexShader); in createAndAttachShaders()
444 const bool vertexCompileOk = getShaderCompileStatus(gl, vertexShader); in createAndAttachShaders()
447 const string vertexShaderInfoLog = getShaderInfoLog(gl, vertexShader); in createAndAttachShaders()
456 gl.deleteShader(vertexShader); in createAndAttachShaders()
459 return pair<deUint32, deUint32>(vertexShader, fragmentShader); in createAndAttachShaders()
463 if (vertexShader != 0) in createAndAttachShaders()
464 gl.deleteShader(vertexShader); in createAndAttachShaders()
DglsTextureBufferCase.cpp664 …const rr::VertexShader* const vertexShader = (renderBits & RENDERBITS_AS_VERTEX_TEXTURE ? static… in renderReference() local
674 const rr::Program program(vertexShader, fragmentShader); in renderReference()
/external/deqp/modules/egl/
DteglSwapBuffersTests.cpp137 deUint32 vertexShader = 0; in createGLES2Program() local
150 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
155 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
156 gl.compileShader(vertexShader); in createGLES2Program()
166 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
167 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
171 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
191 gl.attachShader(program, vertexShader); in createGLES2Program()
221 gl.deleteShader(vertexShader); in createGLES2Program()
232 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeColorMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeCoordMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglGLES2SharingTests.cpp340 const char* vertexShader = "" in renderResource() local
357 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
516 const char* vertexShader = "" in renderResource() local
534 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
652 const char* vertexShader = "" in createResource() local
669 m_program = new glu::ShaderProgram(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in createResource()
805 const char* vertexShader = "" in createResource() local
829 GLU_CHECK_GLW_CALL(m_gl, shaderSource(m_shader, 1, &vertexShader, DE_NULL)); in createResource()
855 m_log << tcu::TestLog::Message << vertexShader << tcu::TestLog::EndMessage; in createResource()
883 const char* vertexShader = "" in renderResource() local
[all …]
DteglGLES2SharedRenderingPerfTests.cpp302 GLuint vertexShader = gl.createShader(GL_VERTEX_SHADER); in createProgram() local
324 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createProgram()
347 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createProgram()
353 gl.compileShader(vertexShader); in createProgram()
361 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &status); in createProgram()
369 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &length); in createProgram()
373 gl.getShaderInfoLog(vertexShader, (GLsizei)log.size(), &length, &(log[0])); in createProgram()
405 gl.attachShader(program, vertexShader); in createProgram()
435 gl.deleteShader(vertexShader); in createProgram()
DteglGLES2SharingThreadedTests.cpp1460 SharedPtr<Shader> vertexShader; member in deqp::egl::GLES2ThreadTest::Program
1558 m_program->vertexShader = shader; in AttachShader()
1601 DE_ASSERT(m_program->vertexShader); in DetachShader()
1602 m_program->vertexShader = SharedPtr<Shader>(); in DetachShader()
2396 if (program->vertexShader || program->fragmentShader) in addRandomOperation()
2402 if (program->vertexShader) in addRandomOperation()
2413 if (program->vertexShader) in addRandomOperation()
2423 if (!program->vertexShader) in addRandomOperation()
2441 if (program->vertexShader && program->fragmentShader) in addRandomOperation()
3118 SharedPtr<GLES2ThreadTest::Shader> vertexShader; in addBufferOperations() local
[all …]
DteglImageFormatTests.cpp403 const char* const vertexShader = in invokeGLES2() local
419 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
481 const char* vertexShader = in invokeGLES2() local
494 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
606 const char* vertexShader = in invokeGLES2() local
618 Program program(gl, vertexShader, fragmentShader); in invokeGLES2()
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp200 std::ostringstream vertexShader; in createShader() local
204 vertexShader << "attribute mediump vec4 a_static" << attributeNdx << ";\n"; in createShader()
207 vertexShader << "\n"; in createShader()
210 vertexShader << "attribute mediump vec4 a_dyn" << attributeNdx << ";\n"; in createShader()
212 vertexShader in createShader()
219 vertexShader << "\tv_color = "; in createShader()
226 vertexShader << " + "; in createShader()
229 vertexShader << "a_static" << attributeNdx; in createShader()
235 vertexShader << " + "; in createShader()
238 vertexShader << "a_dyn" << attributeNdx; in createShader()
[all …]
/external/deqp/framework/referencerenderer/
DrrRenderer.hpp63 : vertexShader (vertexShader_) in Program()
69 const VertexShader* vertexShader; member
DrrRenderer.cpp509 …am.geometryShader) ? (program.geometryShader->getOutputs()) : (program.vertexShader->getOutputs()); in flatshadeVertices()
534 …am.geometryShader) ? (program.geometryShader->getOutputs()) : (program.vertexShader->getOutputs()); in clipPrimitives()
721 …am.geometryShader) ? (program.geometryShader->getOutputs()) : (program.vertexShader->getOutputs()); in clipPrimitives()
1518 if (command.program.vertexShader->getOutputs() != command.program.geometryShader->getInputs()) in isValidCommand()
1526 if (command.program.vertexShader->getOutputs() != command.program.fragmentShader->getInputs()) in isValidCommand()
1531 …for (size_t varyingNdx = 0; varyingNdx < command.program.vertexShader->getInputs().size(); ++varyi… in isValidCommand()
1532 if (command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_FLOAT && in isValidCommand()
1533 command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_INT32 && in isValidCommand()
1534 command.program.vertexShader->getInputs()[varyingNdx].type != GENERICVECTYPE_UINT32) in isValidCommand()
1536 …for (size_t varyingNdx = 0; varyingNdx < command.program.vertexShader->getOutputs().size(); ++vary… 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
231 this.vertName = vertexShader; in setShaderFile()
/external/deqp/modules/gles2/functional/
Des2fVertexTextureTests.cpp434 const char* const vertexShader = in init() local
459 …::ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader… in init()
737 const char* const vertexShader = in init() local
762 …::ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader… in init()
/external/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp321 const GLboolean vertexShader = in get_fp_input_mask() local
339 else if (!(vertexProgram || vertexShader)) { in get_fp_input_mask()
387 if (vertexShader) in get_fp_input_mask()
/external/deqp/modules/gles3/functional/
Des3fVertexTextureTests.cpp532 const char* const vertexShader = in init() local
560 …::ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader… in init()
838 const char* const vertexShader = in init() local
866 …::ShaderProgram(m_context.getRenderContext(), glu::makeVtxFragSources(vertexShader, fragmentShader… in init()

12