Searched defs:glslCaps (Results 1 - 18 of 18) sorted by relevance

/external/skia/src/gpu/glsl/
H A DGrGLSL.cpp29 const GrGLSLCaps& glslCaps,
31 if (glslCaps.usesPrecisionModifiers()) {
28 GrGLSLAppendDefaultFloatPrecisionDeclaration(GrSLPrecision p, const GrGLSLCaps& glslCaps, SkString* out) argument
H A DGrGLSLShaderBuilder.cpp34 var.appendDecl(fProgramBuilder->glslCaps(), &tempDecl);
49 args[i].appendDecl(fProgramBuilder->glslCaps(), &this->functions());
63 const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); local
70 glslCaps->generation()),
77 glslCaps->generation()),
85 GrGLSLTexture2DFunctionName(varyingType, samplerType, glslCaps->generation()),
93 const GrSwizzle& configSwizzle = glslCaps->configTextureSwizzle(sampler.config());
126 vars[i].appendDecl(fProgramBuilder->glslCaps(), out);
132 SkASSERT(fProgramBuilder->glslCaps()
[all...]
H A DGrGLSLShaderVar.h166 void appendDecl(const GrGLSLCaps* glslCaps, SkString* out) const { argument
173 out->append(TypeModifierString(glslCaps, this->getTypeModifier()));
178 out->append(PrecisionString(glslCaps, fPrecision));
213 static const char* PrecisionString(const GrGLSLCaps* glslCaps, GrSLPrecision p) { argument
215 if (glslCaps->usesPrecisionModifiers()) {
231 static const char* TypeModifierString(const GrGLSLCaps* glslCaps, TypeModifier t) { argument
232 GrGLSLGeneration gen = glslCaps->generation();
H A DGrGLSLFragmentShaderBuilder.cpp86 if (!fProgramBuilder->glslCaps()->shaderDerivativeSupport()) {
89 const char* extension = fProgramBuilder->glslCaps()->shaderDerivativeExtensionString();
96 if (fProgramBuilder->glslCaps()->pixelLocalStorageSize() <= 0) {
128 const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); local
135 } else if (const char* extension = glslCaps->fragCoordConventionsExtensionString()) {
137 if (glslCaps->generation() < k150_GrGLSLGeneration) {
162 const char* precision = glslCaps->usesPrecisionModifiers() ? "highp " : "";
174 const GrGLSLCaps& glslCaps = *fProgramBuilder->glslCaps(); local
194 const GrGLSLCaps& glslCaps = *fProgramBuilder->glslCaps(); local
222 const GrGLSLCaps* glslCaps = fProgramBuilder->glslCaps(); local
[all...]
/external/skia/src/gpu/vk/
H A DGrVkCaps.h79 GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } function in class:GrVkCaps
H A DGrVkProgramDesc.cpp51 const GrGLSLCaps& glslCaps,
63 add_texture_key(b, proc, glslCaps);
73 const GrGLSLCaps& glslCaps,
76 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), glslCaps, b)) {
81 fp.getGLSLProcessorKey(glslCaps, b);
83 return gen_meta_key(fp, glslCaps, primProc.getTransformKey(fp.coordTransforms(),
90 const GrGLSLCaps& glslCaps) {
105 primProc.getGLSLProcessorKey(glslCaps, &b);
106 if (!gen_meta_key(primProc, glslCaps, 0, &b)) {
113 if (!gen_frag_proc_and_meta_keys(primProc, fp, glslCaps,
50 gen_meta_key(const GrProcessor& proc, const GrGLSLCaps& glslCaps, uint32_t transformKey, GrProcessorKeyBuilder* b) argument
71 gen_frag_proc_and_meta_keys(const GrPrimitiveProcessor& primProc, const GrFragmentProcessor& fp, const GrGLSLCaps& glslCaps, GrProcessorKeyBuilder* b) argument
87 Build(GrProgramDesc* desc, const GrPrimitiveProcessor& primProc, const GrPipeline& pipeline, const GrGLSLCaps& glslCaps) argument
[all...]
H A DGrVkCaps.cpp73 // GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get());
74 // glslCaps->applyOptionsOverrides(contextOptions);
109 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); local
111 glslCaps->fVersionDeclString = "#version 140\n";
117 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR();
118 glslCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA();
120 glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA();
H A DGrVkProgramBuilder.cpp45 const GrGLSLCaps* GrVkProgramBuilder::glslCaps() const { function in class:GrVkProgramBuilder
46 return fGpu->vkCaps().glslCaps();
/external/skia/src/gpu/gl/
H A DGrGLProgramDesc.cpp64 const GrGLSLCaps& glslCaps,
76 add_texture_key(b, proc, glslCaps);
86 const GrGLSLCaps& glslCaps,
89 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), glslCaps, b)) {
94 fp.getGLSLProcessorKey(glslCaps, b);
96 return gen_meta_key(fp, glslCaps, primProc.getTransformKey(fp.coordTransforms(),
103 const GrGLSLCaps& glslCaps) {
118 primProc.getGLSLProcessorKey(glslCaps, &b);
119 if (!gen_meta_key(primProc, glslCaps, 0, &b)) {
126 if (!gen_frag_proc_and_meta_keys(primProc, fp, glslCaps,
63 gen_meta_key(const GrProcessor& proc, const GrGLSLCaps& glslCaps, uint32_t transformKey, GrProcessorKeyBuilder* b) argument
84 gen_frag_proc_and_meta_keys(const GrPrimitiveProcessor& primProc, const GrFragmentProcessor& fp, const GrGLSLCaps& glslCaps, GrProcessorKeyBuilder* b) argument
100 Build(GrProgramDesc* desc, const GrPrimitiveProcessor& primProc, const GrPipeline& pipeline, const GrGLSLCaps& glslCaps) argument
[all...]
H A DGrGLCaps.cpp272 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); local
274 glslCaps->fPathRenderingSupport = this->hasPathRenderingSupport(ctxInfo, gli);
278 glslCaps->fDstReadInShaderSupport = glslCaps->fFBFetchSupport;
282 glslCaps->fDualSourceBlendingSupport = (ctxInfo.version() >= GR_GL_VER(3, 3) ||
285 glslCaps->fShaderDerivativeSupport = true;
287 glslCaps->fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3, 2) &&
289 glslCaps->fIntegerSupport = ctxInfo.version() >= GR_GL_VER(3, 0) &&
293 glslCaps->fDualSourceBlendingSupport = ctxInfo.hasExtension("GL_EXT_blend_func_extended");
295 glslCaps
603 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); local
864 GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); local
1097 initShaderPrecisionTable(const GrGLContextInfo& ctxInfo, const GrGLInterface* intf, GrGLSLCaps* glslCaps) argument
1230 initConfigTable(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli, GrGLSLCaps* glslCaps) argument
[all...]
H A DGrGLCaps.h351 const GrGLSLCaps* glslCaps() const { return reinterpret_cast<GrGLSLCaps*>(fShaderCaps.get()); } function in class:GrGLCaps
375 void initConfigTable(const GrGLContextInfo&, const GrGLInterface* gli, GrGLSLCaps* glslCaps);
379 GrGLSLCaps* glslCaps);
H A DGrGLGpu.cpp288 const GrGLSLCaps* glslCaps = this->glCaps().glslCaps(); local
289 const char* version = glslCaps->versionDeclString();
299 if (glslCaps->noperspectiveInterpolationSupport()) {
300 if (const char* extension = glslCaps->noperspectiveInterpolationExtensionString()) {
305 aVertex.appendDecl(glslCaps, &vshaderTxt);
307 uTexCoordXform.appendDecl(glslCaps, &vshaderTxt);
309 uPosXform.appendDecl(glslCaps, &vshaderTxt);
311 vTexCoord.appendDecl(glslCaps, &vshaderTxt);
323 if (glslCaps
3370 const GrGLSLCaps* glslCaps = this->glCaps().glslCaps(); local
[all...]
/external/skia/bench/
H A DGLInstancedArraysBench.cpp110 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); local
111 const char* version = glslCaps->versionDeclString();
119 aPosition.appendDecl(glslCaps, &vshaderTxt);
121 aColor.appendDecl(glslCaps, &vshaderTxt);
123 oColor.appendDecl(glslCaps, &vshaderTxt);
138 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt);
140 oColor.appendDecl(glslCaps, &fshaderTxt);
144 if (glslCaps->mustDeclareFragmentShaderOutput()) {
145 oFragColor.appendDecl(glslCaps,
[all...]
H A DGLVec4ScalarBench.cpp96 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); local
97 const char* version = glslCaps->versionDeclString();
110 aPosition.appendDecl(glslCaps, &vshaderTxt);
112 aColor.appendDecl(glslCaps, &vshaderTxt);
114 oPosition.appendDecl(glslCaps, &vshaderTxt);
116 oColor.appendDecl(glslCaps, &vshaderTxt);
136 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt);
138 oPosition.appendDecl(glslCaps, &fshaderTxt);
141 oColor.appendDecl(glslCaps,
[all...]
H A DGLVertexAttributesBench.cpp68 const GrGLSLCaps* glslCaps = ctx->caps()->glslCaps(); local
69 const char* version = glslCaps->versionDeclString();
77 aPosition.appendDecl(glslCaps, &vshaderTxt);
86 aVars.back().appendDecl(glslCaps, &vshaderTxt);
97 oVars.back().appendDecl(glslCaps, &vshaderTxt);
122 GrGLSLAppendDefaultFloatPrecisionDeclaration(kDefault_GrSLPrecision, *glslCaps, &fshaderTxt);
125 if (glslCaps->mustDeclareFragmentShaderOutput()) {
126 oFragColor.appendDecl(glslCaps, &fshaderTxt);
135 oVars[i].appendDecl(glslCaps,
[all...]
/external/skia/src/gpu/effects/
H A DGrTextureDomain.cpp48 const GrGLSLCaps* glslCaps,
93 if (!glslCaps->canUseAnyFunctionInShader()) {
106 builder->codeAppend(GrGLSLShaderVar::PrecisionString(glslCaps,
109 builder->codeAppend(GrGLSLShaderVar::PrecisionString(glslCaps,
46 sampleTexture(GrGLSLShaderBuilder* builder, GrGLSLUniformHandler* uniformHandler, const GrGLSLCaps* glslCaps, const GrTextureDomain& textureDomain, const char* outColor, const SkString& inCoords, const GrGLSLTextureSampler& sampler, const char* inModulateColor) argument
/external/skia/src/gpu/gl/builders/
H A DGrGLProgramBuilder.cpp67 const GrGLSLCaps* GrGLProgramBuilder::glslCaps() const { function in class:GrGLProgramBuilder
68 return fGpu->ctxInfo().caps()->glslCaps();
95 const char* externalFeatureString = this->glslCaps()->externalTextureExtensionString();
187 if (fFS.hasSecondaryOutput() && caps.glslCaps()->mustDeclareFragmentShaderOutput()) {
/external/skia/src/effects/gradients/
H A DSkGradientShader.cpp1026 const GrGLSLCaps* glslCaps,
1054 if (!glslCaps->canUseMinAndAbsTogether()) {
1024 emitColor(GrGLSLFPFragmentBuilder* fragBuilder, GrGLSLUniformHandler* uniformHandler, const GrGLSLCaps* glslCaps, const GrGradientEffect& ge, const char* gradientTValue, const char* outputColor, const char* inputColor, const TextureSamplerArray& samplers) argument

Completed in 182 milliseconds