• Home
  • Raw
  • Download

Lines Matching +full:- +full:fvisibility

4 * Use of this source code is governed by a BSD-style license that can be
18 // are. This works since all alignments are powers of 2. The mask is always (alignment - 1).
23 …https://www.khronos.org/registry/vulkan/specs/1.0-wsi_extensions/html/vkspec.html#interfaces-resou…
190 offsetDiff = alignmentMask - offsetDiff + 1; in get_ubo_aligned_offset()
233 fProgramBuilder->nameVariable(uni.fVariable.accessName(), prefix, name, mangleName); in internalAddUniformArray()
235 uni.fVisibility = visibility; in internalAddUniformArray()
259 return GrGLSLUniformHandler::UniformHandle(fUniforms.count() - 1); in internalAddUniformArray()
269 fProgramBuilder->nameVariable(&mangleName, prefix, name, true); in addSampler()
271 GrSLPrecision precision = GrSLSamplerPrecision(texture->config()); in addSampler()
272 GrSwizzle swizzle = shaderCaps->configTextureSwizzle(texture->config()); in addSampler()
273 GrTextureType type = texture->texturePriv().textureType(); in addSampler()
281 layoutQualifier.appendf("set=%d, binding=%d", kSamplerDescSet, fSamplers.count() - 1); in addSampler()
283 info.fVisibility = kFragment_GrShaderFlag; in addSampler()
288 if (vkTexture->ycbcrConversionInfo().isValid()) { in addSampler()
290 GrVkGpu* gpu = static_cast<GrVkPipelineStateBuilder*>(fProgramBuilder)->gpu(); in addSampler()
291 info.fImmutableSampler = gpu->resourceProvider().findOrCreateCompatibleSampler( in addSampler()
292 state, vkTexture->ycbcrConversionInfo()); in addSampler()
298 return GrGLSLUniformHandler::SamplerHandle(fSamplers.count() - 1); in addSampler()
309 if (visibility == sampler.fVisibility) { in appendUniformDecls()
310 sampler.fVariable.appendDecl(fProgramBuilder->shaderCaps(), out); in appendUniformDecls()
311 out->append(";\n"); in appendUniformDecls()
320 if (kVertex_GrShaderFlag == localUniform.fVisibility || in appendUniformDecls()
321 kGeometry_GrShaderFlag == localUniform.fVisibility || in appendUniformDecls()
322 (kVertex_GrShaderFlag | kGeometry_GrShaderFlag) == localUniform.fVisibility) { in appendUniformDecls()
330 SkASSERT(kFragment_GrShaderFlag == localUniform.fVisibility); in appendUniformDecls()
344 if (visibility & localUniform.fVisibility) { in appendUniformDecls()
346 localUniform.fVariable.appendDecl(fProgramBuilder->shaderCaps(), &uniformsString); in appendUniformDecls()
366 out->appendf("layout (set=%d, binding=%d) uniform %sUniformBuffer\n{\n", in appendUniformDecls()
368 out->appendf("%s\n};\n", uniformsString.c_str()); in appendUniformDecls()