Lines Matching refs:append

560         shader.append(gVS_Header_Attributes_TexCoords);  in generateVertexShader()
563 shader.append(gVS_Header_Attributes_VertexAlphaParameters); in generateVertexShader()
566 shader.append(gVS_Header_Attributes_Colors); in generateVertexShader()
569 shader.append(gVS_Header_Uniforms); in generateVertexShader()
571 shader.append(gVS_Header_Uniforms_TextureTransform); in generateVertexShader()
574 shader.append(gVS_Header_Uniforms_HasGradient); in generateVertexShader()
577 shader.append(gVS_Header_Uniforms_HasBitmap); in generateVertexShader()
580 shader.append(gVS_Header_Uniforms_HasRoundRectClip); in generateVertexShader()
584 shader.append(gVS_Header_Varyings_HasTexture); in generateVertexShader()
587 shader.append(gVS_Header_Varyings_HasVertexAlpha); in generateVertexShader()
590 shader.append(gVS_Header_Varyings_HasColors); in generateVertexShader()
593 shader.append(gVS_Header_Varyings_HasGradient[gradientIndex(description)]); in generateVertexShader()
596 shader.append(gVS_Header_Varyings_HasBitmap); in generateVertexShader()
599 shader.append(gVS_Header_Varyings_HasRoundRectClip); in generateVertexShader()
603 shader.append(gVS_Main); { in generateVertexShader()
605 shader.append(gVS_Main_OutTransformedTexCoords); in generateVertexShader()
607 shader.append(gVS_Main_OutTexCoords); in generateVertexShader()
610 shader.append(gVS_Main_VertexAlpha); in generateVertexShader()
613 shader.append(gVS_Main_OutColors); in generateVertexShader()
616 shader.append(gVS_Main_OutBitmapTexCoords); in generateVertexShader()
619 shader.append(gVS_Main_Position); in generateVertexShader()
621 shader.append(gVS_Main_OutGradient[gradientIndex(description)]); in generateVertexShader()
624 shader.append(gVS_Main_HasRoundRectClip); in generateVertexShader()
628 shader.append(gVS_Footer); in generateVertexShader()
639 shader.append(snippets[op]); in shaderOp()
648 shader.append(gFS_Header_Extension_FramebufferFetch); in generateFragmentShader()
652 shader.append(gFS_Header_Extension_ExternalTexture); in generateFragmentShader()
655 shader.append(gFS_Header); in generateFragmentShader()
659 shader.append(gVS_Header_Varyings_HasTexture); in generateFragmentShader()
662 shader.append(gVS_Header_Varyings_HasVertexAlpha); in generateFragmentShader()
665 shader.append(gVS_Header_Varyings_HasColors); in generateFragmentShader()
668 shader.append(gVS_Header_Varyings_HasGradient[gradientIndex(description)]); in generateFragmentShader()
671 shader.append(gVS_Header_Varyings_HasBitmap); in generateFragmentShader()
674 shader.append(gVS_Header_Varyings_HasRoundRectClip); in generateFragmentShader()
683 shader.append(gFS_Uniforms_Color); in generateFragmentShader()
687 shader.append(gFS_Uniforms_TextureSampler); in generateFragmentShader()
689 shader.append(gFS_Uniforms_ExternalTextureSampler); in generateFragmentShader()
692 shader.append(gFS_Uniforms_GradientSampler[description.isSimpleGradient]); in generateFragmentShader()
695 shader.append(gFS_Uniforms_HasRoundRectClip); in generateFragmentShader()
704 shader.append(gFS_Uniforms_BitmapExternalSampler); in generateFragmentShader()
706 shader.append(gFS_Uniforms_BitmapSampler); in generateFragmentShader()
709 shader.append(gFS_Uniforms_ColorOp[static_cast<int>(description.colorOp)]); in generateFragmentShader()
712 shader.append(gFS_Uniforms_ColorSpaceConversion); in generateFragmentShader()
714 shader.append(gFS_Uniforms_TransferFunction[static_cast<int>(description.transferFunction)]); in generateFragmentShader()
731 shader.append(gFS_sRGB_TransferFunctions); in generateFragmentShader()
735 shader.append(gFS_TransferFunction[static_cast<int>(description.transferFunction)]); in generateFragmentShader()
736 shader.append(gFS_OETF[(description.hasLinearTexture || description.hasColorSpaceConversion) in generateFragmentShader()
738 shader.append(gFS_ColorConvert[description.hasColorSpaceConversion in generateFragmentShader()
742 shader.append(gFS_GradientFunctions); in generateFragmentShader()
743 shader.append(gFS_GradientPreamble[mHasLinearBlending]); in generateFragmentShader()
747 shader.append(gFS_Main); { in generateFragmentShader()
752 shader.append( in generateFragmentShader()
756 shader.append(gFS_Main_FetchTexture[modulateOp]); in generateFragmentShader()
760 shader.append(gFS_Main_FetchColor); in generateFragmentShader()
764 shader.append(gFS_Main_FetchGradient[gradientIndex(description)]); in generateFragmentShader()
768 shader.append(gFS_Main_FetchBitmap); in generateFragmentShader()
770 shader.append(gFS_Main_FetchBitmapNpot); in generateFragmentShader()
777 shader.append(gFS_Main_BlendShadersBG); in generateFragmentShader()
779 shader.append(gFS_Main_BlendShadersGB); in generateFragmentShader()
794 shader.append(gFS_Main_ModulateColor); in generateFragmentShader()
798 shader.append(gFS_Main_ApplyColorOp[static_cast<int>(description.colorOp)]); in generateFragmentShader()
802 shader.append(gFS_Main_ApplyVertexAlphaShadowInterp); in generateFragmentShader()
804 shader.append(gFS_Main_ApplyVertexAlphaLinearInterp); in generateFragmentShader()
809 shader.append(gFS_Main_AddDither); in generateFragmentShader()
814 shader.append(gFS_Main_FragColor); in generateFragmentShader()
816 shader.append(!description.swapSrcDst ? in generateFragmentShader()
820 shader.append(gFS_Main_FragColor_HasColors); in generateFragmentShader()
823 shader.append(gFS_Main_FragColor_HasRoundRectClip); in generateFragmentShader()
826 shader.append(gFS_Main_DebugHighlight); in generateFragmentShader()
830 shader.append(gFS_Footer); in generateFragmentShader()
841 shader.append("\nvec4 "); in generateBlend()
842 shader.append(name); in generateBlend()
843 shader.append("(vec4 src, vec4 dst) {\n"); in generateBlend()
844 shader.append(" "); in generateBlend()
845 shader.append(gBlendOps[(int)mode]); in generateBlend()
846 shader.append("}\n"); in generateBlend()
850 shader.append("\nhighp vec2 wrap(highp vec2 texCoords) {\n"); in generateTextureWrap()
852 shader.append(" highp float xMod2 = mod(texCoords.x, 2.0);\n"); in generateTextureWrap()
853 shader.append(" if (xMod2 > 1.0) xMod2 = 2.0 - xMod2;\n"); in generateTextureWrap()
856 shader.append(" highp float yMod2 = mod(texCoords.y, 2.0);\n"); in generateTextureWrap()
857 shader.append(" if (yMod2 > 1.0) yMod2 = 2.0 - yMod2;\n"); in generateTextureWrap()
859 shader.append(" return vec2("); in generateTextureWrap()
862 shader.append("texCoords.x"); in generateTextureWrap()
865 shader.append("mod(texCoords.x, 1.0)"); in generateTextureWrap()
868 shader.append("xMod2"); in generateTextureWrap()
871 shader.append(", "); in generateTextureWrap()
874 shader.append("texCoords.y"); in generateTextureWrap()
877 shader.append("mod(texCoords.y, 1.0)"); in generateTextureWrap()
880 shader.append("yMod2"); in generateTextureWrap()
883 shader.append(");\n"); in generateTextureWrap()
884 shader.append("}\n"); in generateTextureWrap()
893 if (line.length() == 0) line.append("\n"); in printLongString()