/external/webrtc/talk/app/webrtc/java/android/org/webrtc/ |
D | GlRectDrawer.java | 125 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 …]
|
D | GlShader.java | 58 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/ |
D | OGLES2HelloAPI_LinuxX11.cpp | 431 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/ |
D | rsgTest.cpp | 51 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()
|
D | rsgProgramGenerator.cpp | 44 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()
|
D | rsgProgramExecutor.cpp | 211 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()
|
/external/deqp/modules/glshared/ |
D | glsRandomShaderProgram.cpp | 70 …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()
|
/external/deqp/external/openglcts/modules/common/ |
D | glcParallelShaderCompileTests.cpp | 254 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()
|
D | glcTextureFilterAnisotropicTests.cpp | 624 std::string fragmentShader = m_fragment; in drawTexture() local 631 …xtureFilterAnisotropicUtils::replaceToken("<TEXCOORD_TYPE>", texCoordType.c_str(), fragmentShader); in drawTexture() 633 TextureFilterAnisotropicUtils::replaceToken("<SAMPLER_TYPE>", samplerType.c_str(), fragmentShader); in drawTexture() 638 TextureFilterAnisotropicUtils::replaceToken("<VERSION>", "130", fragmentShader); in drawTexture() 643 TextureFilterAnisotropicUtils::replaceToken("<VERSION>", "300 es", fragmentShader); in drawTexture() 646 ProgramSources sources = makeVtxFragSources(vertexShader, fragmentShader); in drawTexture() 655 << fragmentShader << "\n" in drawTexture()
|
/external/deqp/modules/egl/ |
D | teglSwapBuffersTests.cpp | 138 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 …]
|
D | teglNativeColorMappingTests.cpp | 106 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 …]
|
D | teglNativeCoordMappingTests.cpp | 106 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 …]
|
D | teglGetFrameTimestampsTests.cpp | 377 deUint32 fragmentShader = 0; in createGLES2Program() local 390 fragmentShader = gl.createShader(GL_FRAGMENT_SHADER); in createGLES2Program() 398 gl.shaderSource(fragmentShader, 1, &fragmentShaderSource, DE_NULL); in createGLES2Program() 399 gl.compileShader(fragmentShader); in createGLES2Program() 419 gl.getShaderiv(fragmentShader, GL_COMPILE_STATUS, &fragmentCompileStatus); in createGLES2Program() 420 gl.getShaderiv(fragmentShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program() 424 …gl.getShaderInfoLog(fragmentShader, (glw::GLsizei)fragmentInfoLog.length(), &infoLogLength, &(frag… in createGLES2Program() 431 gl.attachShader(program, fragmentShader); in createGLES2Program() 461 gl.deleteShader(fragmentShader); in createGLES2Program() 474 if (fragmentShader) in createGLES2Program() [all …]
|
D | teglGLES2SharingTests.cpp | 350 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 …]
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleTests.cpp | 1629 std::ostringstream fragmentShader; in init() local 1631 fragmentShader << in init() 1644 fragmentShader << "\tdepth = " << minValue[0] << ";\n"; in init() 1652 fragmentShader << in init() 1660 fragmentShader << in init() 1664 dst.glslSources.add("quad-frag") << glu::FragmentSource(fragmentShader.str()); in init() 1688 std::ostringstream fragmentShader; in init() local 1690 fragmentShader << in init() 1705 fragmentShader << "\tcolor[" << ndx << "] = " << minValue[ndx] << ";\n"; in init() 1722 fragmentShader << in init() [all …]
|
/external/webrtc/webrtc/api/objc/ |
D | RTCOpenGLVideoRenderer.mm | 102 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/swiftshader/tests/GLESUnitTests/ |
D | unittests.cpp | 233 GLuint fragmentShader; member 251 ph.fragmentShader = glCreateShader(GL_FRAGMENT_SHADER); in createProgram() 253 glShaderSource(ph.fragmentShader, 1, fsSource, nullptr); in createProgram() 254 glCompileShader(ph.fragmentShader); in createProgram() 257 glGetShaderiv(ph.fragmentShader, GL_COMPILE_STATUS, &fsCompileStatus); in createProgram() 261 glAttachShader(ph.program, ph.fragmentShader); in createProgram() 276 glDeleteShader(ph.fragmentShader); in deleteProgram() 482 glGetShaderiv(ph.fragmentShader, GL_INFO_LOG_LENGTH, &length); in TEST_F() 610 ph.fragmentShader = glCreateShader(GL_FRAGMENT_SHADER); in TEST_F() 612 glShaderSource(ph.fragmentShader, 1, fsSource, nullptr); in TEST_F() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmVariableInitTests.cpp | 354 const StringTemplate fragmentShader ( in addShaderCodeOutput() local 399 …dst.spirvAsmSources.add("frag", DE_NULL) << fragmentShader.specialize(spec) << SpirVAsmBuildOption… in addShaderCodeOutput() 490 const string fragmentShader = in addShaderCodeOutputStruct() local 546 …dst.spirvAsmSources.add("frag", DE_NULL) << fragmentShader << SpirVAsmBuildOptions(vulkanVersion, … in addShaderCodeOutputStruct()
|
D | vktSpvAsmVaryingNameTests.cpp | 117 const string fragmentShader = string( in createShaders() local 165 …dst.spirvAsmSources.add("frag", DE_NULL) << fragmentShader << SpirVAsmBuildOptions(vulkanVersion, … in createShaders()
|
/external/deqp/framework/referencerenderer/ |
D | rrRenderer.cpp | 1036 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 …]
|
D | rrRenderer.hpp | 66 , fragmentShader (fragmentShader_) in Program() 72 const FragmentShader* fragmentShader; member
|
/external/webrtc/talk/app/webrtc/objc/ |
D | RTCOpenGLVideoRenderer.mm | 123 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/swiftshader/src/OpenGL/libGLESv2/ |
D | Program.cpp | 138 fragmentShader = 0; in Program() 166 if(fragmentShader) in ~Program() 168 fragmentShader->release(); in ~Program() 186 if(fragmentShader) in attachShader() 191 fragmentShader = (FragmentShader*)shader; in attachShader() 192 fragmentShader->addRef(); in attachShader() 213 if(fragmentShader != shader) in detachShader() 218 fragmentShader->release(); in detachShader() 219 fragmentShader = 0; in detachShader() 228 return (vertexShader ? 1 : 0) + (fragmentShader ? 1 : 0); in getAttachedShadersCount() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/util/ |
D | vktDrawUtil.hpp | 102 const rr::FragmentShader& fragmentShader) in ReferenceDrawContext() argument 105 , m_fragmentShader (fragmentShader) in ReferenceDrawContext()
|
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/ |
D | BackgroundRenderer.java | 108 int fragmentShader = in createOnGlThread() local 113 GLES20.glAttachShader(quadProgram, fragmentShader); in createOnGlThread()
|