Home
last modified time | relevance | path

Searched refs:numTextureSamplers (Results 1 – 25 of 44) sorted by relevance

12

/external/skia/src/gpu/d3d/
DGrD3DRootSignature.cpp13 sk_sp<GrD3DRootSignature> GrD3DRootSignature::Make(GrD3DGpu* gpu, int numTextureSamplers, in Make() argument
25 int numShaderViews = numTextureSamplers + numUAVs; in Make()
26 SkAutoTArray<D3D12_DESCRIPTOR_RANGE> samplerRanges(numTextureSamplers); in Make()
28 if (numTextureSamplers) { in Make()
35 for (int i = 0; i < numTextureSamplers; ++i) { in Make()
56 shaderViewRanges[numTextureSamplers].RangeType = D3D12_DESCRIPTOR_RANGE_TYPE_UAV; in Make()
57 shaderViewRanges[numTextureSamplers].NumDescriptors = numUAVs; in Make()
60 shaderViewRanges[numTextureSamplers].BaseShaderRegister = 2 * numTextureSamplers; in Make()
62 shaderViewRanges[numTextureSamplers].RegisterSpace = in Make()
65 shaderViewRanges[numTextureSamplers].OffsetInDescriptorsFromTableStart = in Make()
[all …]
DGrD3DRootSignature.h18 static sk_sp<GrD3DRootSignature> Make(GrD3DGpu* gpu, int numTextureSamplers, int numUAVs);
29 bool isCompatible(int numTextureSamplers, int numUAVs) const;
43 GrD3DRootSignature(gr_cp<ID3D12RootSignature> rootSig, int numTextureSamplers, int numUAVs);
DGrD3DResourceProvider.cpp52 sk_sp<GrD3DRootSignature> GrD3DResourceProvider::findOrCreateRootSignature(int numTextureSamplers, in findOrCreateRootSignature() argument
55 if (fRootSignatures[i]->isCompatible(numTextureSamplers, numUAVs)) { in findOrCreateRootSignature()
60 auto rootSig = GrD3DRootSignature::Make(fGpu, numTextureSamplers, numUAVs); in findOrCreateRootSignature()
DGrD3DPipelineState.cpp96 SkASSERT(geomProcTextures || !geomProc.numTextureSamplers()); in setAndBindTextures()
102 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in setAndBindTextures()
/external/skia/src/gpu/effects/
DGrAtlasedShaderHelpers.h19 int numTextureSamplers, in append_index_uv_varyings() argument
31 if (numTextureSamplers <= 1) { in append_index_uv_varyings()
44 if (numTextureSamplers <= 1) { in append_index_uv_varyings()
80 int numTextureSamplers, in append_multitexture_lookup() argument
84 SkASSERT(numTextureSamplers > 0); in append_multitexture_lookup()
86 if (numTextureSamplers <= 0) { in append_multitexture_lookup()
92 for (int i = 0; i < numTextureSamplers-1; ++i) { in append_multitexture_lookup()
98 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers - 1], coordName); in append_multitexture_lookup()
DGrDistanceFieldGeoProc.cpp71 append_index_uv_varyings(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
86 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
194 b->add32(dfTexEffect.numTextureSamplers()); in GenKey()
346 append_index_uv_varyings(args, dfPathEffect.numTextureSamplers(), in onEmitCode()
379 append_multitexture_lookup(args, dfPathEffect.numTextureSamplers(), texIdx, "uv", in onEmitCode()
480 b->add32(dfTexEffect.numTextureSamplers()); in GenKey()
635 append_index_uv_varyings(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
690 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
698 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
703 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
[all …]
DGrBitmapTextGeoProc.cpp43 append_index_uv_varyings(args, btgp.numTextureSamplers(), btgp.inTextureCoords().name(), in onEmitCode()
67 append_multitexture_lookup(args, btgp.numTextureSamplers(), in onEmitCode()
111 b->add32(btgp.numTextureSamplers(),"numTextures"); in GenKey()
/external/skqp/src/gpu/
DGrProgramDesc.cpp54 int numTextureSamplers = fp.numTextureSamplers(); in add_sampler_keys() local
56 int word32Count = (numTextureSamplers + 1) / 2; in add_sampler_keys()
61 for (int i = 0; i < numTextureSamplers; ++i) { in add_sampler_keys()
77 if (numTextureSamplers & 0x1) { in add_sampler_keys()
78 k16[numTextureSamplers] = 0; in add_sampler_keys()
84 int numTextureSamplers = pp.numTextureSamplers(); in add_sampler_keys() local
86 int word32Count = (numTextureSamplers + 1) / 2; in add_sampler_keys()
91 for (int i = 0; i < numTextureSamplers; ++i) { in add_sampler_keys()
105 if (numTextureSamplers & 0x1) { in add_sampler_keys()
106 k16[numTextureSamplers] = 0; in add_sampler_keys()
DGrGpuCommandBuffer.cpp56 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw()
63 int n = primProc.numTextureSamplers() * meshCount; in draw()
74 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw()
80 primProcProxies[j*primProc.numTextureSamplers() + i]; in draw()
DGrOpFlushState.cpp110 for (int i = 0; i < gp->numTextureSamplers(); ++i) { in draw()
115 int n = gp->numTextureSamplers() * meshCnt; in draw()
180 for (int i = 0; i < fGeometryProcessor->numTextureSamplers(); ++i) { in ~Draw()
185 int n = fGeometryProcessor->numTextureSamplers() * fMeshCnt; in ~Draw()
DGrFragmentProcessor.h107 int numTextureSamplers() const { return fTextureSamplerCnt; } in numTextureSamplers() function
241 &GrFragmentProcessor::numTextureSamplers,
DGrPrimitiveProcessor.cpp23 SkASSERT(i >= 0 && i < this->numTextureSamplers()); in textureSampler()
/external/skqp/src/gpu/effects/
DGrAtlasedShaderHelpers.h57 int numTextureSamplers, in append_multitexture_lookup() argument
62 for (int i = 0; i < numTextureSamplers-1; ++i) { in append_multitexture_lookup()
69 args.fFragBuilder->appendTextureLookup(args.fTexSamplers[numTextureSamplers-1], coordName, in append_multitexture_lookup()
DGrYUVtoRGBEffect.cpp72 for (int i = 0; i < this->numTextureSamplers(); ++i) { in dumpInfo()
155 b->add32(this->numTextureSamplers()); in onGetGLSLProcessorKey()
181 for (int i = 0; i < this->numTextureSamplers(); ++i) { in onIsEqual()
197 int numPlanes = src.numTextureSamplers(); in GrYUVtoRGBEffect()
215 SkASSERT(index < this->numTextureSamplers()); in onTextureSampler()
DGrDistanceFieldGeoProc.cpp88 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
193 b->add32(dfTexEffect.numTextureSamplers()); in GenKey()
388 append_multitexture_lookup(args, dfPathEffect.numTextureSamplers(), texIdx, "uv", in onEmitCode()
497 b->add32(dfTexEffect.numTextureSamplers()); in GenKey()
710 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
718 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
723 append_multitexture_lookup(args, dfTexEffect.numTextureSamplers(), in onEmitCode()
813 b->add32(dfTexEffect.numTextureSamplers()); in GenKey()
DGrBitmapTextGeoProc.cpp69 append_multitexture_lookup(args, btgp.numTextureSamplers(), in onEmitCode()
107 b->add32(btgp.numTextureSamplers()); in GenKey()
/external/skia/src/gpu/
DGrProgramDesc.cpp59 int numTextureSamplers = geomProc.numTextureSamplers(); in add_geomproc_sampler_keys() local
60 b->add32(numTextureSamplers, "ppNumSamplers"); in add_geomproc_sampler_keys()
61 for (int i = 0; i < numTextureSamplers; ++i) { in add_geomproc_sampler_keys()
DGrOpsRenderPass.cpp107 bool hasTextures = (programInfo.geomProc().numTextureSamplers() > 0); in bindPipeline()
140 SkASSERT((geomProc.numTextureSamplers() > 0) == SkToBool(geomProcTextures)); in bindTextures()
141 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures()
DGrGeometryProcessor.cpp28 SkASSERT(i >= 0 && i < this->numTextureSamplers()); in textureSampler()
DGrOpFlushState.cpp156 for (int i = 0; i < geomProc->numTextureSamplers(); ++i) { in recordDraw()
240 for (int i = 0; i < fGeometryProcessor->numTextureSamplers(); ++i) { in ~Draw()
/external/skqp/src/gpu/gl/
DGrGLProgram.cpp93 int nextTexSamplerIdx = primProc.numTextureSamplers(); in updateUniformsAndTextureBindings()
111 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in updatePrimitiveProcessorTextureBindings()
124 for (int i = 0; i < fp->numTextureSamplers(); ++i) { in setFragmentData()
/external/skia/src/gpu/gl/
DGrGLProgram.cpp130 for (int i = 0; i < geomProc.numTextureSamplers(); ++i) { in bindTextures()
136 int nextTexSamplerIdx = geomProc.numTextureSamplers(); in bindTextures()
/external/skqp/src/gpu/vk/
DGrVkPipelineState.cpp202 SkASSERT(primProcTextures || !primProc.numTextureSamplers()); in setAndBindTextures()
213 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in setAndBindTextures()
224 for (int i = 0; i < fp->numTextureSamplers(); ++i) { in setAndBindTextures()
/external/skqp/src/gpu/glsl/
DGrGLSLProgramBuilder.cpp104 SkAutoSTMalloc<4, SamplerHandle> texSamplers(proc.numTextureSamplers()); in emitAndInstallPrimProc()
105 for (int i = 0; i < proc.numTextureSamplers(); ++i) { in emitAndInstallPrimProc()
190 for (int i = 0; i < subFP->numTextureSamplers(); ++i) { in emitAndInstallFragProc()
/external/skqp/src/gpu/mtl/
DGrMtlPipelineState.mm68 SkASSERT(primProcTextures || !primProc.numTextureSamplers());
74 for (int i = 0; i < primProc.numTextureSamplers(); ++i) {
86 for (int i = 0; i < fp->numTextureSamplers(); ++i) {

12