/external/skia/src/gpu/glsl/ |
D | GrGLSLFragmentShaderBuilder.cpp | 86 if (!fProgramBuilder->glslCaps()->shaderDerivativeSupport()) { in enableFeature() 89 const char* extension = fProgramBuilder->glslCaps()->shaderDerivativeExtensionString(); in enableFeature() 96 if (fProgramBuilder->glslCaps()->pixelLocalStorageSize() <= 0) { in enableFeature() 128 const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); in fragmentPosition() local 135 } else if (const char* extension = glslCaps->fragCoordConventionsExtensionString()) { in fragmentPosition() 137 if (glslCaps->generation() < k150_GrGLSLGeneration) { in fragmentPosition() 162 const char* precision = glslCaps->usesPrecisionModifiers() ? "highp " : ""; in fragmentPosition() 174 const GrGLSLCaps& glslCaps = *fProgramBuilder->glslCaps(); in maskSampleCoverage() local 175 if (!glslCaps.sampleVariablesSupport()) { in maskSampleCoverage() 179 if (const char* extension = glslCaps.sampleVariablesExtensionString()) { in maskSampleCoverage() [all …]
|
D | GrGLSLShaderBuilder.cpp | 34 var.appendDecl(fProgramBuilder->glslCaps(), &tempDecl); in declAppend() 49 args[i].appendDecl(fProgramBuilder->glslCaps(), &this->functions()); in emitFunction() 63 const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); in appendTextureLookup() local 70 glslCaps->generation()), in appendTextureLookup() 77 glslCaps->generation()), in appendTextureLookup() 85 GrGLSLTexture2DFunctionName(varyingType, samplerType, glslCaps->generation()), in appendTextureLookup() 93 const GrSwizzle& configSwizzle = glslCaps->configTextureSwizzle(sampler.config()); in appendTextureLookup() 126 vars[i].appendDecl(fProgramBuilder->glslCaps(), out); in appendDecls() 132 SkASSERT(fProgramBuilder->glslCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier() 133 fProgramBuilder->glslCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier() [all …]
|
D | GrGLSLShaderVar.h | 166 void appendDecl(const GrGLSLCaps* glslCaps, SkString* out) const { in appendDecl() argument 173 out->append(TypeModifierString(glslCaps, this->getTypeModifier())); in appendDecl() 178 out->append(PrecisionString(glslCaps, fPrecision)); in appendDecl() 213 static const char* PrecisionString(const GrGLSLCaps* glslCaps, GrSLPrecision p) { in PrecisionString() argument 215 if (glslCaps->usesPrecisionModifiers()) { in PrecisionString() 231 static const char* TypeModifierString(const GrGLSLCaps* glslCaps, TypeModifier t) { in TypeModifierString() argument 232 GrGLSLGeneration gen = glslCaps->generation(); in TypeModifierString()
|
D | GrGLSLProgramBuilder.cpp | 82 fGeometryProcessor = proc.createGLSLInstance(*this->glslCaps()); in emitAndInstallPrimProc() 91 this->glslCaps(), in emitAndInstallPrimProc() 140 this->glslCaps(), in emitAndInstallFragProc() 172 if (this->glslCaps()->mustDeclareFragmentShaderOutput()) { in emitAndInstallXferProc() 186 this->glslCaps(), in emitAndInstallXferProc()
|
D | GrGLSL.cpp | 29 const GrGLSLCaps& glslCaps, in GrGLSLAppendDefaultFloatPrecisionDeclaration() argument 31 if (glslCaps.usesPrecisionModifiers()) { in GrGLSLAppendDefaultFloatPrecisionDeclaration()
|
D | GrGLSLVarying.cpp | 94 const GrGLSLCaps& caps = *fProgramBuilder->glslCaps(); in setNoPerspective() 138 vars[i].appendDecl(fProgramBuilder->glslCaps(), out); in appendDecls() 155 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->glslCaps()->generation() || in getFragDecls()
|
D | GrGLSLProgramBuilder.h | 36 virtual const GrGLSLCaps* glslCaps() const = 0;
|
/external/skia/src/gpu/gl/ |
D | GrGLCaps.cpp | 272 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); in init() local 274 glslCaps->fPathRenderingSupport = this->hasPathRenderingSupport(ctxInfo, gli); in init() 278 glslCaps->fDstReadInShaderSupport = glslCaps->fFBFetchSupport; in init() 282 glslCaps->fDualSourceBlendingSupport = (ctxInfo.version() >= GR_GL_VER(3, 3) || in init() 285 glslCaps->fShaderDerivativeSupport = true; in init() 287 glslCaps->fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3, 2) && in init() 289 glslCaps->fIntegerSupport = ctxInfo.version() >= GR_GL_VER(3, 0) && in init() 293 glslCaps->fDualSourceBlendingSupport = ctxInfo.hasExtension("GL_EXT_blend_func_extended"); in init() 295 glslCaps->fShaderDerivativeSupport = ctxInfo.version() >= GR_GL_VER(3, 0) || in init() 298 glslCaps->fIntegerSupport = ctxInfo.version() >= GR_GL_VER(3, 0) && in init() [all …]
|
D | GrGLProgramDesc.cpp | 64 const GrGLSLCaps& glslCaps, in gen_meta_key() argument 76 add_texture_key(b, proc, glslCaps); in gen_meta_key() 86 const GrGLSLCaps& glslCaps, in gen_frag_proc_and_meta_keys() argument 89 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), glslCaps, b)) { in gen_frag_proc_and_meta_keys() 94 fp.getGLSLProcessorKey(glslCaps, b); in gen_frag_proc_and_meta_keys() 96 return gen_meta_key(fp, glslCaps, primProc.getTransformKey(fp.coordTransforms(), in gen_frag_proc_and_meta_keys() 103 const GrGLSLCaps& glslCaps) { in Build() argument 118 primProc.getGLSLProcessorKey(glslCaps, &b); in Build() 119 if (!gen_meta_key(primProc, glslCaps, 0, &b)) { in Build() 126 if (!gen_frag_proc_and_meta_keys(primProc, fp, glslCaps, &b)) { in Build() [all …]
|
D | GrGLGpu.cpp | 288 const GrGLSLCaps* glslCaps = this->glCaps().glslCaps(); in createPLSSetupProgram() local 289 const char* version = glslCaps->versionDeclString(); in createPLSSetupProgram() 299 if (glslCaps->noperspectiveInterpolationSupport()) { in createPLSSetupProgram() 300 if (const char* extension = glslCaps->noperspectiveInterpolationExtensionString()) { in createPLSSetupProgram() 305 aVertex.appendDecl(glslCaps, &vshaderTxt); in createPLSSetupProgram() 307 uTexCoordXform.appendDecl(glslCaps, &vshaderTxt); in createPLSSetupProgram() 309 uPosXform.appendDecl(glslCaps, &vshaderTxt); in createPLSSetupProgram() 311 vTexCoord.appendDecl(glslCaps, &vshaderTxt); in createPLSSetupProgram() 323 if (glslCaps->noperspectiveInterpolationSupport()) { in createPLSSetupProgram() 324 if (const char* extension = glslCaps->noperspectiveInterpolationExtensionString()) { in createPLSSetupProgram() [all …]
|
D | GrGLCaps.h | 351 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } in glslCaps() function 375 void initConfigTable(const GrGLContextInfo&, const GrGLInterface* gli, GrGLSLCaps* glslCaps); 379 GrGLSLCaps* glslCaps);
|
D | GrGLUniformHandler.cpp | 58 fUniforms[i].fVariable.appendDecl(fProgramBuilder->glslCaps(), out); in appendUniformDecls()
|
/external/skia/src/gpu/vk/ |
D | GrVkProgramDesc.cpp | 51 const GrGLSLCaps& glslCaps, in gen_meta_key() argument 63 add_texture_key(b, proc, glslCaps); in gen_meta_key() 73 const GrGLSLCaps& glslCaps, in gen_frag_proc_and_meta_keys() argument 76 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), glslCaps, b)) { in gen_frag_proc_and_meta_keys() 81 fp.getGLSLProcessorKey(glslCaps, b); in gen_frag_proc_and_meta_keys() 83 return gen_meta_key(fp, glslCaps, primProc.getTransformKey(fp.coordTransforms(), in gen_frag_proc_and_meta_keys() 90 const GrGLSLCaps& glslCaps) { in Build() argument 105 primProc.getGLSLProcessorKey(glslCaps, &b); in Build() 106 if (!gen_meta_key(primProc, glslCaps, 0, &b)) { in Build() 113 if (!gen_frag_proc_and_meta_keys(primProc, fp, glslCaps, &b)) { in Build() [all …]
|
D | GrVkCaps.cpp | 109 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); in initGLSLCaps() local 111 glslCaps->fVersionDeclString = "#version 140\n"; in initGLSLCaps() 117 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); in initGLSLCaps() 118 glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); in initGLSLCaps() 120 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA(); in initGLSLCaps()
|
D | GrVkUniformHandler.cpp | 133 localUniform.fVariable.appendDecl(fProgramBuilder->glslCaps(), &uniformsString); in appendUniformDecls() 138 localUniform.fVariable.appendDecl(fProgramBuilder->glslCaps(), out); in appendUniformDecls()
|
D | GrVkProgramBuilder.h | 39 const GrGLSLCaps* glslCaps() const override;
|
D | GrVkCaps.h | 79 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } in glslCaps() function
|
D | GrVkProgramBuilder.cpp | 45 const GrGLSLCaps* GrVkProgramBuilder::glslCaps() const { in glslCaps() function in GrVkProgramBuilder 46 return fGpu->vkCaps().glslCaps(); in glslCaps()
|
/external/skia/bench/ |
D | GLVec4ScalarBench.cpp | 96 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); in setupShader() local 97 const char* version = glslCaps->versionDeclString(); in setupShader() 110 aPosition.appendDecl(glslCaps, &vshaderTxt); in setupShader() 112 aColor.appendDecl(glslCaps, &vshaderTxt); in setupShader() 114 oPosition.appendDecl(glslCaps, &vshaderTxt); in setupShader() 116 oColor.appendDecl(glslCaps, &vshaderTxt); in setupShader() 136 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt); in setupShader() 138 oPosition.appendDecl(glslCaps, &fshaderTxt); in setupShader() 141 oColor.appendDecl(glslCaps, &fshaderTxt); in setupShader() 145 if (glslCaps->mustDeclareFragmentShaderOutput()) { in setupShader() [all …]
|
D | GLVertexAttributesBench.cpp | 68 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); in setupShader() local 69 const char* version = glslCaps->versionDeclString(); in setupShader() 77 aPosition.appendDecl(glslCaps, &vshaderTxt); in setupShader() 86 aVars.back().appendDecl(glslCaps, &vshaderTxt); in setupShader() 97 oVars.back().appendDecl(glslCaps, &vshaderTxt); in setupShader() 122 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt); in setupShader() 125 if (glslCaps->mustDeclareFragmentShaderOutput()) { in setupShader() 126 oFragColor.appendDecl(glslCaps, &fshaderTxt); in setupShader() 135 oVars[i].appendDecl(glslCaps, &fshaderTxt); in setupShader()
|
D | GLInstancedArraysBench.cpp | 110 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); in setupShader() local 111 const char* version = glslCaps->versionDeclString(); in setupShader() 119 aPosition.appendDecl(glslCaps, &vshaderTxt); in setupShader() 121 aColor.appendDecl(glslCaps, &vshaderTxt); in setupShader() 123 oColor.appendDecl(glslCaps, &vshaderTxt); in setupShader() 138 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt); in setupShader() 140 oColor.appendDecl(glslCaps, &fshaderTxt); in setupShader() 144 if (glslCaps->mustDeclareFragmentShaderOutput()) { in setupShader() 145 oFragColor.appendDecl(glslCaps, &fshaderTxt); in setupShader()
|
/external/skia/src/gpu/gl/builders/ |
D | GrGLProgramBuilder.cpp | 67 const GrGLSLCaps* GrGLProgramBuilder::glslCaps() const { in glslCaps() function in GrGLProgramBuilder 68 return fGpu->ctxInfo().caps()->glslCaps(); in glslCaps() 95 const char* externalFeatureString = this->glslCaps()->externalTextureExtensionString(); in emitSamplers() 187 if (fFS.hasSecondaryOutput() && caps.glslCaps()->mustDeclareFragmentShaderOutput()) { in bindProgramResourceLocations()
|
D | GrGLProgramBuilder.h | 35 const GrGLSLCaps* glslCaps() const override;
|
/external/skia/src/gpu/effects/ |
D | GrTextureDomain.cpp | 48 const GrGLSLCaps* glslCaps, in sampleTexture() argument 93 if (!glslCaps->canUseAnyFunctionInShader()) { in sampleTexture() 106 builder->codeAppend(GrGLSLShaderVar::PrecisionString(glslCaps, in sampleTexture() 109 builder->codeAppend(GrGLSLShaderVar::PrecisionString(glslCaps, in sampleTexture()
|
D | GrTextureDomain.h | 119 const GrGLSLCaps* glslCaps,
|