Home
last modified time | relevance | path

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

12345

/external/swiftshader/src/Pipeline/
DSpirvShaderSampling.cpp47 Sampler samplerState = {}; in getImageSampler() local
48 samplerState.textureType = type; in getImageSampler()
49 samplerState.textureFormat = imageDescriptor->format; in getImageSampler()
51 samplerState.addressingModeU = convertAddressingMode(0, sampler, type); in getImageSampler()
52 samplerState.addressingModeV = convertAddressingMode(1, sampler, type); in getImageSampler()
53 samplerState.addressingModeW = convertAddressingMode(2, sampler, type); in getImageSampler()
55 samplerState.mipmapFilter = convertMipmapMode(sampler); in getImageSampler()
56 samplerState.swizzle = imageDescriptor->swizzle; in getImageSampler()
57 samplerState.gatherComponent = instruction.gatherComponent; in getImageSampler()
61 samplerState.textureFilter = convertFilterMode(sampler, type, instruction); in getImageSampler()
[all …]
/external/skqp/src/gpu/vk/
DGrVkSampler.cpp29 GrVkSampler* GrVkSampler::Create(GrVkGpu* gpu, const GrSamplerState& samplerState, in Create() argument
47 createInfo.magFilter = vkMagFilterModes[static_cast<int>(samplerState.filter())]; in Create()
48 createInfo.minFilter = vkMinFilterModes[static_cast<int>(samplerState.filter())]; in Create()
50 createInfo.addressModeU = wrap_mode_to_vk_sampler_address(samplerState.wrapModeX()); in Create()
51 createInfo.addressModeV = wrap_mode_to_vk_sampler_address(samplerState.wrapModeY()); in Create()
64 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter(); in Create()
112 return new GrVkSampler(sampler, ycbcrConversion, GenerateKey(samplerState, ycbcrInfo)); in Create()
129 GrVkSampler::Key GrVkSampler::GenerateKey(const GrSamplerState& samplerState, in GenerateKey() argument
134 SkASSERT(static_cast<int>(samplerState.filter()) <= 3); in GenerateKey()
135 uint8_t samplerKey = static_cast<uint16_t>(samplerState.filter()); in GenerateKey()
[all …]
/external/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.cpp134 samplerBindings[currTextureBinding++] = {sampler.samplerState(), texture}; in setAndBindTextures()
138 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures() local
140 samplerBindings[currTextureBinding++] = {samplerState, texture}; in setAndBindTextures()
155 const auto& samplerState = samplerBindings[0].fState; in setAndBindTextures() local
156 const GrVkDescriptorSet* descriptorSet = texture->cachedSingleDescSet(samplerState); in setAndBindTextures()
/external/angle/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 …]
/external/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();
/external/skia/src/gpu/
DGrGeometryProcessor.cpp59 GrGeometryProcessor::TextureSampler::TextureSampler(GrSamplerState samplerState, in TextureSampler() argument
62 this->reset(samplerState, backendFormat, swizzle); in TextureSampler()
65 void GrGeometryProcessor::TextureSampler::reset(GrSamplerState samplerState, in reset() argument
68 fSamplerState = samplerState; in reset()
69 fSamplerState.setFilterMode(clamp_filter(backendFormat.textureType(), samplerState.filter())); in reset()
/external/skqp/src/gpu/mtl/
DGrMtlSampler.mm36 GrMtlSampler* GrMtlSampler::Create(const GrMtlGpu* gpu, const GrSamplerState& samplerState,
50 samplerDesc.sAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeX(),
52 samplerDesc.tAddressMode = wrap_mode_to_mtl_sampler_address(samplerState.wrapModeY(),
54 samplerDesc.magFilter = mtlMinMagFilterModes[static_cast<int>(samplerState.filter())];
55 samplerDesc.minFilter = mtlMinMagFilterModes[static_cast<int>(samplerState.filter())];
58 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0;
/external/skqp/src/gpu/
DGrPrimitiveProcessor.cpp58 const GrSamplerState& samplerState, in TextureSampler() argument
60 this->reset(textureType, config, samplerState, extraSamplerKey); in TextureSampler()
72 const GrSamplerState& samplerState, in reset() argument
75 fSamplerState = samplerState; in reset()
76 fSamplerState.setFilterMode(clamp_filter(textureType, samplerState.filter())); in reset()
DGrTextureMaker.cpp124 GrSamplerState samplerState; in createFragmentProcessor() local
126 samplerState = GrSamplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in createFragmentProcessor()
129 samplerState = GrSamplerState::ClampNearest(); in createFragmentProcessor()
132 sk_sp<GrTextureProxy> proxy(this->refTextureProxyForParams(samplerState, scaleAdjust)); in createFragmentProcessor()
DGrTextureAdjuster.cpp122 GrSamplerState samplerState; in createFragmentProcessor() local
124 samplerState.setFilterMode(*filterOrNullForBicubic); in createFragmentProcessor()
128 this->refTextureProxyForParams(samplerState, scaleAdjust)); in createFragmentProcessor()
DGrTextureProducer.cpp73 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu() local
74 paint.addColorTextureProcessor(std::move(inputProxy), SkMatrix::I(), samplerState); in CopyOnGpu()
211 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter() local
212 return GrSimpleTextureEffect::Make(std::move(proxy), textureMatrix, samplerState); in CreateFragmentProcessorForDomainAndFilter()
DGrPaint.cpp43 const GrSamplerState& samplerState) { in addColorTextureProcessor() argument
45 samplerState)); in addColorTextureProcessor()
/external/angle/third_party/vulkan-deps/glslang/src/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 …]
/external/deqp-deps/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 …]
/external/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()
388 uint32_t Device::indexSampler(const SamplerState &samplerState) in indexSampler() argument
390 return samplerIndexer->index(samplerState); in indexSampler()
393 void Device::removeSampler(const SamplerState &samplerState) in removeSampler() argument
395 samplerIndexer->remove(samplerState); in removeSampler()
DVkDevice.hpp142 uint32_t index(const SamplerState &samplerState);
143 void remove(const SamplerState &samplerState);
158 uint32_t indexSampler(const SamplerState &samplerState);
159 void removeSampler(const SamplerState &samplerState);
DVkSampler.cpp46 …onst VkSamplerCreateInfo *pCreateInfo, void *mem, const SamplerState &samplerState, uint32_t sampl… in Sampler() argument
47 : SamplerState(samplerState) in Sampler()
/external/skia/src/gpu/effects/
DGrYUVtoRGBEffect.cpp35 GrSamplerState samplerState, in Make() argument
45 bool usesBorder = samplerState.wrapModeX() == GrSamplerState::WrapMode::kClampToBorder || in Make()
46 samplerState.wrapModeY() == GrSamplerState::WrapMode::kClampToBorder; in Make()
94 if (samplerState.filter() == GrSamplerState::Filter::kNearest) { in Make()
132 samplerState.wrapModeX(), in Make()
133 samplerState.wrapModeY(), in Make()
143 samplerState, in Make()
152 samplerState, in Make()
158 GrSamplerState planeSampler = samplerState; in Make()
/external/skia/gm/
Dyuvtorgbsubset.cpp138 GrSamplerState samplerState; in onDraw() local
139 samplerState.setFilterMode(kFilters[i]); in onDraw()
142 samplerState.setWrapModeX(wm); in onDraw()
143 samplerState.setWrapModeY(wm); in onDraw()
147 GrYUVtoRGBEffect::Make(fProxies, samplerState, caps, SkMatrix::I(), subset); in onDraw()
/external/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.cpp133 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures()
139 GrSamplerState samplerState = te.samplerState(); in bindTextures() local
142 fGpu->bindTexture(nextTexSamplerIdx++, samplerState, swizzle, texture); in bindTextures()
/external/angle/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()
292 SamplerFormat TextureState::computeRequiredSamplerFormat(const SamplerState &samplerState) const in computeRequiredSamplerFormat()
297 samplerState.getCompareMode() != GL_NONE) in computeRequiredSamplerFormat()
319 bool TextureState::computeSamplerCompleteness(const SamplerState &samplerState, in computeSamplerCompleteness() argument
355 !IsPointSampled(samplerState)) in computeSamplerCompleteness()
362 if ((samplerState.getWrapS() != GL_CLAMP_TO_EDGE && in computeSamplerCompleteness()
363 samplerState.getWrapS() != GL_CLAMP_TO_BORDER && !isPow2(baseImageDesc.size.width)) || in computeSamplerCompleteness()
[all …]
/external/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp108 gpu->resourceProvider().findOrCreateCompatibleSampler(sampler.samplerState()); in setAndBindTextures()
113 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures() local
117 gpu->resourceProvider().findOrCreateCompatibleSampler(samplerState); in setAndBindTextures()
/external/skia/src/gpu/dawn/
DGrDawnGpu.h96 wgpu::Sampler getOrCreateSampler(GrSamplerState samplerState);
229 size_t operator()(GrSamplerState samplerState) const { in operator()
230 return SkOpts::hash_fn(&samplerState, sizeof(samplerState), 0); in operator()

12345