Home
last modified time | relevance | path

Searched refs:samplerState (Results 1 – 25 of 120) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSpirvShaderSampling.cpp49 Sampler samplerState = {}; in getImageSampler() local
50 samplerState.textureType = type; in getImageSampler()
51 …ASSERT(instruction.coordinates >= samplerState.dimensionality()); // "It may be a vector larger t… in getImageSampler()
52 samplerState.textureFormat = imageViewState.format; in getImageSampler()
54 samplerState.addressingModeU = convertAddressingMode(0, vkSamplerState, type); in getImageSampler()
55 samplerState.addressingModeV = convertAddressingMode(1, vkSamplerState, type); in getImageSampler()
56 samplerState.addressingModeW = convertAddressingMode(2, vkSamplerState, type); in getImageSampler()
58 samplerState.mipmapFilter = convertMipmapMode(vkSamplerState); in getImageSampler()
59 samplerState.swizzle = imageViewState.mapping; in getImageSampler()
60 samplerState.gatherComponent = instruction.gatherComponent; in getImageSampler()
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlSampler.mm39 GrMtlSampler* GrMtlSampler::Create(const GrMtlGpu* gpu, const GrSamplerState& samplerState,
53 samplerDesc.sAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeX(),
55 samplerDesc.tAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeY(),
57 samplerDesc.magFilter = mtlMinMagFilterModes[static_cast<int>(samplerState.filter())];
58 samplerDesc.minFilter = mtlMinMagFilterModes[static_cast<int>(samplerState.filter())];
61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0;
68 GenerateKey(samplerState, maxMipLevel));
71 GrMtlSampler::Key GrMtlSampler::GenerateKey(const GrSamplerState& samplerState,
77 SkASSERT(static_cast<int>(samplerState.filter()) <= 3);
78 Key samplerKey = static_cast<uint16_t>(samplerState.filter());
[all …]
/third_party/flutter/skia/src/gpu/vk/
DGrVkSampler.cpp28 GrVkSampler* GrVkSampler::Create(GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument
46 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create()
47 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create()
49 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create()
50 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create()
63 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter(); in Create()
110 return new GrVkSampler(sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create()
127 GrVkSampler::Key GrVkSampler::GenerateKey(const GrSamplerState& samplerState, in GenerateKey() argument
132 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey()
133 uint8_t samplerKey = static_cast<uint16_t>(samplerState.filter()); in GenerateKey()
[all …]
/third_party/skia/src/gpu/vk/
DGrVkSampler.cpp39 GrVkSampler* GrVkSampler::Create(GrVkGpu* gpu, GrSamplerState samplerState, in Create() argument
57 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create()
58 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create()
59 createInfo.mipmapMode = mipmap_mode_to_vk_sampler_mipmap_mode(samplerState.mipmapMode()); in Create()
60 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create()
61 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create()
74 bool useMipMaps = samplerState.mipmapped() == GrMipmapped::kYes; in Create()
123 return new GrVkSampler(gpu, sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create()
134 GrVkSampler::Key GrVkSampler::GenerateKey(GrSamplerState samplerState, in GenerateKey() argument
136 return {samplerState.asIndex(), GrVkSamplerYcbcrConversion::GenerateKey(ycbcrInfo)}; in GenerateKey()
DGrVkPipelineState.cpp132 samplerBindings[currTextureBinding++] = {sampler.samplerState(), texture}; in setAndBindTextures()
142 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures() local
144 samplerBindings[currTextureBinding++] = {samplerState, texture}; in setAndBindTextures()
154 const auto& samplerState = samplerBindings[0].fState; in setAndBindTextures() local
155 const GrVkDescriptorSet* descriptorSet = texture->cachedSingleDescSet(samplerState); in setAndBindTextures()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderStateCache.cpp226 const gl::SamplerState &samplerState, in getSamplerState() argument
229 auto keyIter = mSamplerStateCache.Get(samplerState); in getSamplerState()
242 gl_d3d11::ConvertFilter(samplerState.getMinFilter(), samplerState.getMagFilter(), in getSamplerState()
243 samplerState.getMaxAnisotropy(), samplerState.getCompareMode()); in getSamplerState()
244 samplerDesc.AddressU = gl_d3d11::ConvertTextureWrap(samplerState.getWrapS()); in getSamplerState()
245 samplerDesc.AddressV = gl_d3d11::ConvertTextureWrap(samplerState.getWrapT()); in getSamplerState()
246 samplerDesc.AddressW = gl_d3d11::ConvertTextureWrap(samplerState.getWrapR()); in getSamplerState()
249 gl_d3d11::ConvertMaxAnisotropy(samplerState.getMaxAnisotropy(), featureLevel); in getSamplerState()
250 samplerDesc.ComparisonFunc = gl_d3d11::ConvertComparison(samplerState.getCompareFunc()); in getSamplerState()
252 if (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) in getSamplerState()
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DRenderStateCache.cpp265 const gl::SamplerState &samplerState, in getSamplerState() argument
268 auto keyIter = mSamplerStateCache.Get(samplerState); in getSamplerState()
281 gl_d3d11::ConvertFilter(samplerState.getMinFilter(), samplerState.getMagFilter(), in getSamplerState()
282 samplerState.getMaxAnisotropy(), samplerState.getCompareMode()); in getSamplerState()
283 samplerDesc.AddressU = gl_d3d11::ConvertTextureWrap(samplerState.getWrapS()); in getSamplerState()
284 samplerDesc.AddressV = gl_d3d11::ConvertTextureWrap(samplerState.getWrapT()); in getSamplerState()
285 samplerDesc.AddressW = gl_d3d11::ConvertTextureWrap(samplerState.getWrapR()); in getSamplerState()
288 gl_d3d11::ConvertMaxAnisotropy(samplerState.getMaxAnisotropy(), featureLevel); in getSamplerState()
289 samplerDesc.ComparisonFunc = gl_d3d11::ConvertComparison(samplerState.getCompareFunc()); in getSamplerState()
291 if (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) in getSamplerState()
[all …]
/third_party/skia/src/gpu/mtl/
DGrMtlSampler.mm45 GrMtlSampler* GrMtlSampler::Create(const GrMtlGpu* gpu, GrSamplerState samplerState) {
47 switch (samplerState.filter()) {
55 switch (samplerState.mipmapMode()) {
65 samplerDesc.sAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeX(),
67 samplerDesc.tAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeY(),
81 GenerateKey(samplerState));
84 GrMtlSampler::Key GrMtlSampler::GenerateKey(GrSamplerState samplerState) {
85 return samplerState.asIndex();
/third_party/flutter/skia/src/gpu/
DGrPrimitiveProcessor.cpp57 const GrSamplerState& samplerState, in TextureSampler() argument
60 this->reset(textureType, samplerState, swizzle, extraSamplerKey); in TextureSampler()
71 const GrSamplerState& samplerState, in reset() argument
74 fSamplerState = samplerState; in reset()
75 fSamplerState.setFilterMode(clamp_filter(textureType, samplerState.filter())); in reset()
DGrFragmentProcessor.cpp53 bool mipped = (GrSamplerState::Filter::kMipMap == sampler->samplerState().filter()); in visitProxies()
421 const GrSamplerState& samplerState) { in TextureSampler() argument
422 this->reset(std::move(proxy), samplerState); in TextureSampler()
432 const GrSamplerState& samplerState) { in reset() argument
434 fSamplerState = samplerState; in reset()
435 fSamplerState.setFilterMode(SkTMin(samplerState.filter(), this->proxy()->highestFilterMode())); in reset()
DGrTextureProducer.cpp70 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() local
71 paint.addColorTextureProcessor(std::move(inputProxy), SkMatrix::I(), samplerState); in CopyOnGpu()
213 GrSamplerState samplerState(wrapMode, *filterOrNullForBicubic); in createFragmentProcessorForDomainAndFilter() local
214 return GrSimpleTextureEffect::Make(std::move(proxy), textureMatrix, samplerState); in createFragmentProcessorForDomainAndFilter()
/third_party/glslang/Test/baseResults/
Dhlsl.flattenSubset.frag.out13 0:33 's1' ( temp structure{ temp float b, temp sampler samplerState, temp structure{ t…
19 …nd child to first child ( temp structure{ temp float b, temp sampler samplerState, temp structur…
20 …ect index for structure ( temp structure{ temp float b, temp sampler samplerState, temp structur…
21 …mp int a4, temp int a5, temp structure{ temp float b, temp sampler samplerState, temp structur…
24 0:34 's1' ( temp structure{ temp float b, temp sampler samplerState, temp structure{ temp …
31 …ect index for structure ( temp structure{ temp float b, temp sampler samplerState, temp structur…
32 …mp int a4, temp int a5, temp structure{ temp float b, temp sampler samplerState, temp structur…
72 0:33 's1' ( temp structure{ temp float b, temp sampler samplerState, temp structure{ t…
78 …nd child to first child ( temp structure{ temp float b, temp sampler samplerState, temp structur…
79 …ect index for structure ( temp structure{ temp float b, temp sampler samplerState, temp structur…
[all …]
/third_party/skia/src/gpu/effects/
DGrYUVtoRGBEffect.cpp34 GrSamplerState samplerState, in Make() argument
46 bool usesBorder = samplerState.wrapModeX() == GrSamplerState::WrapMode::kClampToBorder || in Make()
47 samplerState.wrapModeY() == GrSamplerState::WrapMode::kClampToBorder; in Make()
93 if (samplerState.wrapModeX() != GrSamplerState::WrapMode::kClamp) { in Make()
101 if (samplerState.wrapModeY() != GrSamplerState::WrapMode::kClamp) { in Make()
113 if (samplerState.filter() == GrSamplerState::Filter::kNearest) { in Make()
151 samplerState.wrapModeX(), in Make()
152 samplerState.wrapModeY(), in Make()
162 samplerState, in Make()
171 samplerState, in Make()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/
DTexture.cpp27 bool IsPointSampled(const SamplerState &samplerState) in IsPointSampled() argument
29 return (samplerState.getMagFilter() == GL_NEAREST && in IsPointSampled()
30 (samplerState.getMinFilter() == GL_NEAREST || in IsPointSampled()
31 samplerState.getMinFilter() == GL_NEAREST_MIPMAP_NEAREST)); in IsPointSampled()
53 bool IsMipmapFiltered(const SamplerState &samplerState) in IsMipmapFiltered() argument
55 switch (samplerState.getMinFilter()) in IsMipmapFiltered()
244 SamplerFormat TextureState::computeRequiredSamplerFormat(const SamplerState &samplerState) const in computeRequiredSamplerFormat()
249 samplerState.getCompareMode() != GL_NONE) in computeRequiredSamplerFormat()
271 bool TextureState::computeSamplerCompleteness(const SamplerState &samplerState, in computeSamplerCompleteness() argument
300 !IsPointSampled(samplerState)) in computeSamplerCompleteness()
[all …]
DTexture.h51 bool IsMipmapFiltered(const SamplerState &samplerState);
116 const SamplerState &samplerState) const in compatibleWithSamplerFormat() argument
119 mCachedSamplerCompareMode != samplerState.getCompareMode()) in compatibleWithSamplerFormat()
121 mCachedSamplerFormat = computeRequiredSamplerFormat(samplerState); in compatibleWithSamplerFormat()
122 mCachedSamplerCompareMode = samplerState.getCompareMode(); in compatibleWithSamplerFormat()
157 bool computeSamplerCompleteness(const SamplerState &samplerState, const State &data) const;
160 SamplerFormat computeRequiredSamplerFormat(const SamplerState &samplerState) const;
537 SamplerState samplerState; member
/third_party/skia/gm/
Dyuvtorgbsubset.cpp143 GrSamplerState samplerState; in onDraw() local
144 samplerState.setFilterMode(kFilters[i]); in onDraw()
147 samplerState.setWrapModeX(wm); in onDraw()
148 samplerState.setWrapModeY(wm); in onDraw()
152 GrYUVtoRGBEffect::Make(fProxies, samplerState, caps, SkMatrix::I(), subset); in onDraw()
/third_party/flutter/skia/src/gpu/gl/
DGrGLTypesPriv.cpp48 void GrGLTextureParameters::set(const SamplerOverriddenState* samplerState, in set() argument
51 if (samplerState) { in set()
52 fSamplerOverriddenState = *samplerState; in set()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkDevice.cpp75 uint32_t Device::SamplerIndexer::index(const SamplerState &samplerState) in index() argument
79 auto it = map.find(samplerState); in index()
89 map.emplace(samplerState, Identifier{ nextID, 1 }); in index()
94 void Device::SamplerIndexer::remove(const SamplerState &samplerState) in remove() argument
98 auto it = map.find(samplerState); in remove()
397 uint32_t Device::indexSampler(const SamplerState &samplerState) in indexSampler() argument
399 return samplerIndexer->index(samplerState); in indexSampler()
402 void Device::removeSampler(const SamplerState &samplerState) in removeSampler() argument
404 samplerIndexer->remove(samplerState); in removeSampler()
DVkDevice.hpp143 uint32_t index(const SamplerState &samplerState);
144 void remove(const SamplerState &samplerState);
160 uint32_t indexSampler(const SamplerState &samplerState);
161 void removeSampler(const SamplerState &samplerState);
DVkSampler.cpp48 …onst VkSamplerCreateInfo *pCreateInfo, void *mem, const SamplerState &samplerState, uint32_t sampl… in Sampler() argument
49 : SamplerState(samplerState) in Sampler()
/third_party/skia/src/gpu/gl/
DGrGLTypesPriv.cpp48 void GrGLTextureParameters::set(const SamplerOverriddenState* samplerState, in set() argument
51 if (samplerState) { in set()
52 fSamplerOverriddenState = *samplerState; in set()
DGrGLProgram.cpp130 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures()
142 GrSamplerState samplerState = te.samplerState(); in bindTextures() local
145 fGpu->bindTexture(nextTexSamplerIdx++, samplerState, swizzle, texture); in bindTextures()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
DTexture.cpp31 bool IsPointSampled(const SamplerState &samplerState) in IsPointSampled() argument
33 return (samplerState.getMagFilter() == GL_NEAREST && in IsPointSampled()
34 (samplerState.getMinFilter() == GL_NEAREST || in IsPointSampled()
35 samplerState.getMinFilter() == GL_NEAREST_MIPMAP_NEAREST)); in IsPointSampled()
294 SamplerFormat TextureState::computeRequiredSamplerFormat(const SamplerState &samplerState) const in computeRequiredSamplerFormat()
299 samplerState.getCompareMode() != GL_NONE) in computeRequiredSamplerFormat()
321 bool TextureState::computeSamplerCompleteness(const SamplerState &samplerState, in computeSamplerCompleteness() argument
357 !IsPointSampled(samplerState)) in computeSamplerCompleteness()
364 if ((samplerState.getWrapS() != GL_CLAMP_TO_EDGE && in computeSamplerCompleteness()
365 samplerState.getWrapS() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.width)) || in computeSamplerCompleteness()
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp109 gpu->resourceProvider().findOrCreateCompatibleSampler(sampler.samplerState()); in setAndBindTextures()
122 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures() local
126 gpu->resourceProvider().findOrCreateCompatibleSampler(samplerState); in setAndBindTextures()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.h96 wgpu::Sampler getOrCreateSampler(GrSamplerState samplerState);
243 size_t operator()(GrSamplerState samplerState) const { in operator()
244 return SkOpts::hash_fn(&samplerState, sizeof(samplerState), 0); in operator()

12345