Home
last modified time | relevance | path

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

123

/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DGlRectDrawer.java125 public Shader(String fragmentShader) { in Shader() argument
126 this.glShader = new GlShader(VERTEX_SHADER_STRING, fragmentShader); in Shader()
189 private void prepareShader(String fragmentShader, float[] texMatrix) { in prepareShader() argument
191 if (shaders.containsKey(fragmentShader)) { in prepareShader()
192 shader = shaders.get(fragmentShader); in prepareShader()
195 shader = new Shader(fragmentShader); in prepareShader()
196 shaders.put(fragmentShader, shader); in prepareShader()
199 if (fragmentShader == YUV_FRAGMENT_SHADER_STRING) { in prepareShader()
203 } else if (fragmentShader == RGB_FRAGMENT_SHADER_STRING) { in prepareShader()
205 } else if (fragmentShader == OES_FRAGMENT_SHADER_STRING) { in prepareShader()
[all …]
DGlShader.java58 private int fragmentShader; field in GlShader
63 fragmentShader = compileShader(GLES20.GL_FRAGMENT_SHADER, fragmentSource); in GlShader()
69 GLES20.glAttachShader(program, fragmentShader); in GlShader()
134 if (fragmentShader != -1) { in release()
135 GLES20.glDeleteShader(fragmentShader); in release()
136 fragmentShader = -1; in release()
/external/swiftshader/third_party/PowerVR_SDK/Examples/Beginner/01_HelloAPI/OGLES2/
DOGLES2HelloAPI_LinuxX11.cpp431 bool InitialiseShaders( GLuint &fragmentShader, GLuint &vertexShader, GLuint &shaderProgram) in InitialiseShaders() argument
458 fragmentShader = glCreateShader(GL_FRAGMENT_SHADER); in InitialiseShaders()
461 glShaderSource(fragmentShader, 1, (const char**)&fragmentShaderSource, NULL); in InitialiseShaders()
464 glCompileShader(fragmentShader); in InitialiseShaders()
468 glGetShaderiv(fragmentShader, GL_COMPILE_STATUS, &isShaderCompiled); in InitialiseShaders()
473 glGetShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in InitialiseShaders()
477 glGetShaderInfoLog(fragmentShader, infoLogLength, &charactersWritten, infoLog); in InitialiseShaders()
533 glAttachShader(shaderProgram, fragmentShader); in InitialiseShaders()
693 void DeInitialiseGLState( GLuint fragmentShader, GLuint vertexShader, GLuint shaderProgram, GLuint … in DeInitialiseGLState() argument
696 glDeleteShader(fragmentShader); in DeInitialiseGLState()
[all …]
/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()
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()
DrsgProgramGenerator.hpp39 …generate (const ProgramParameters& programParams, Shader& vertexShader, Shader& fragmentShader);
DrsgProgramExecutor.hpp51 …void execute (const Shader& vertexShader, const Shader& fragmentShader, const std::vector…
/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…
/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 …]
DteglGetFrameTimestampsTests.cpp380 deUint32 fragmentShader = 0; in createGLES2Program() local
393 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program()
401 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program()
402 gl.compileShader(fragmentShader); in createGLES2Program()
422 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program()
423 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
427 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program()
434 gl.attachShader(program, fragmentShader); in createGLES2Program()
464 gl.deleteShader(fragmentShader); in createGLES2Program()
477 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()
/external/deqp/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassMultisampleTests.cpp1858 std::ostringstream fragmentShader; in init() local
1860 fragmentShader << in init()
1873 fragmentShader << "\tdepth = " << minValue[0] << ";\n"; in init()
1881 fragmentShader << in init()
1889 fragmentShader << in init()
1893 dst.glslSources.add("quad-frag") << glu::FragmentSource(fragmentShader.str()); in init()
1917 std::ostringstream fragmentShader; in init() local
1919 fragmentShader << in init()
1934 fragmentShader << "\tcolor[" << ndx << "] = " << minValue[ndx] << ";\n"; in init()
1951 fragmentShader << in init()
[all …]
/external/swiftshader/src/OpenGL/libGL/
DProgram.cpp80 fragmentShader = 0; in Program()
103 if(fragmentShader) in ~Program()
105 fragmentShader->release(); in ~Program()
123 if(fragmentShader) in attachShader()
128 fragmentShader = (FragmentShader*)shader; in attachShader()
129 fragmentShader->addRef(); in attachShader()
150 if(fragmentShader != shader) in detachShader()
155 fragmentShader->release(); in detachShader()
156 fragmentShader = 0; in detachShader()
165 return (vertexShader ? 1 : 0) + (fragmentShader ? 1 : 0); in getAttachedShadersCount()
[all …]
/external/webrtc/webrtc/api/objc/
DRTCOpenGLVideoRenderer.mm102 GLuint CreateProgram(GLuint vertexShader, GLuint fragmentShader) {
103 if (vertexShader == 0 || fragmentShader == 0) {
111 glAttachShader(program, fragmentShader);
269 GLuint fragmentShader =
271 NSAssert(fragmentShader, @"failed to create fragment shader");
272 _program = CreateProgram(vertexShader, fragmentShader);
277 if (fragmentShader) {
278 glDeleteShader(fragmentShader);
/external/skia/bench/
DGLBench.cpp109 GrGLuint fragmentShader = CompileShader(context, fshader, GR_GL_FRAGMENT_SHADER); in CreateProgram() local
114 GR_GL_CALL(gl, AttachShader(shaderProgram, fragmentShader)); in CreateProgram()
126 GR_GL_CALL(gl, DeleteShader(fragmentShader)); in CreateProgram()
/external/swiftshader/src/OpenGL/libGLESv2/
DProgram.cpp154 fragmentShader = 0; in Program()
182 if(fragmentShader) in ~Program()
184 fragmentShader->release(); in ~Program()
202 if(fragmentShader) in attachShader()
207 fragmentShader = (FragmentShader*)shader; in attachShader()
208 fragmentShader->addRef(); in attachShader()
229 if(fragmentShader != shader) in detachShader()
234 fragmentShader->release(); in detachShader()
235 fragmentShader = 0; in detachShader()
244 return (vertexShader ? 1 : 0) + (fragmentShader ? 1 : 0); in getAttachedShadersCount()
[all …]
/external/deqp/framework/referencerenderer/
DrrRenderer.hpp66 , fragmentShader (fragmentShader_) in Program()
72 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/webrtc/talk/app/webrtc/objc/
DRTCOpenGLVideoRenderer.mm123 GLuint CreateProgram(GLuint vertexShader, GLuint fragmentShader) {
124 if (vertexShader == 0 || fragmentShader == 0) {
132 glAttachShader(program, fragmentShader);
288 GLuint fragmentShader =
290 NSAssert(fragmentShader, @"failed to create fragment shader");
291 _program = CreateProgram(vertexShader, fragmentShader);
296 if (fragmentShader) {
297 glDeleteShader(fragmentShader);
/external/deqp/external/vulkancts/modules/vulkan/
DvktDrawUtil.hpp102 const rr::FragmentShader& fragmentShader) in ReferenceDrawContext() argument
105 , m_fragmentShader (fragmentShader) in ReferenceDrawContext()

123