Home
last modified time | relevance | path

Searched refs:glslCaps (Results 1 – 25 of 28) sorted by relevance

12

/external/skia/src/gpu/glsl/
DGrGLSLFragmentShaderBuilder.cpp86 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 …]
DGrGLSLShaderBuilder.cpp34 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 …]
DGrGLSLShaderVar.h166 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()
DGrGLSLProgramBuilder.cpp82 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()
DGrGLSL.cpp29 const GrGLSLCaps& glslCaps, in GrGLSLAppendDefaultFloatPrecisionDeclaration() argument
31 if (glslCaps.usesPrecisionModifiers()) { in GrGLSLAppendDefaultFloatPrecisionDeclaration()
DGrGLSLVarying.cpp94 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()
DGrGLSLProgramBuilder.h36 virtual const GrGLSLCaps* glslCaps() const = 0;
/external/skia/src/gpu/gl/
DGrGLCaps.cpp272 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 …]
DGrGLProgramDesc.cpp64 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 …]
DGrGLGpu.cpp288 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 …]
DGrGLCaps.h351 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);
DGrGLUniformHandler.cpp58 fUniforms[i].fVariable.appendDecl(fProgramBuilder->glslCaps(), out); in appendUniformDecls()
/external/skia/src/gpu/vk/
DGrVkProgramDesc.cpp51 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 …]
DGrVkCaps.cpp109 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()
DGrVkUniformHandler.cpp133 localUniform.fVariable.appendDecl(fProgramBuilder->glslCaps(), &uniformsString); in appendUniformDecls()
138 localUniform.fVariable.appendDecl(fProgramBuilder->glslCaps(), out); in appendUniformDecls()
DGrVkProgramBuilder.h39 const GrGLSLCaps* glslCaps() const override;
DGrVkCaps.h79 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } in glslCaps() function
DGrVkProgramBuilder.cpp45 const GrGLSLCaps* GrVkProgramBuilder::glslCaps() const { in glslCaps() function in GrVkProgramBuilder
46 return fGpu->vkCaps().glslCaps(); in glslCaps()
/external/skia/bench/
DGLVec4ScalarBench.cpp96 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 …]
DGLVertexAttributesBench.cpp68 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()
DGLInstancedArraysBench.cpp110 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/
DGrGLProgramBuilder.cpp67 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()
DGrGLProgramBuilder.h35 const GrGLSLCaps* glslCaps() const override;
/external/skia/src/gpu/effects/
DGrTextureDomain.cpp48 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()
DGrTextureDomain.h119 const GrGLSLCaps* glslCaps,

12