Home
last modified time | relevance | path

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

123

/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/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/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/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 …]
DGrDistanceFieldGeoProc.cpp291 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local
306 samplerState, in TestCreate()
558 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local
573 samplerState, in TestCreate()
871 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate() local
884 1, samplerState, wa, flags, localMatrix); in TestCreate()
/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/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/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 …]
DTexture.h126 const SamplerState &samplerState) const in compatibleWithSamplerFormatForWebGL() argument
129 mCachedSamplerCompareMode != samplerState.getCompareMode()) in compatibleWithSamplerFormatForWebGL()
131 mCachedSamplerFormat = computeRequiredSamplerFormat(samplerState); in compatibleWithSamplerFormatForWebGL()
132 mCachedSamplerCompareMode = samplerState.getCompareMode(); in compatibleWithSamplerFormatForWebGL()
186 bool computeSamplerCompleteness(const SamplerState &samplerState, const State &state) const;
189 SamplerFormat computeRequiredSamplerFormat(const SamplerState &samplerState) const;
692 SamplerState samplerState; member
/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()
DGrDawnGpu.cpp878 wgpu::Sampler GrDawnGpu::getOrCreateSampler(GrSamplerState samplerState) { in getOrCreateSampler() argument
879 auto i = fSamplers.find(samplerState); in getOrCreateSampler()
884 desc.addressModeU = to_dawn_address_mode(samplerState.wrapModeX()); in getOrCreateSampler()
885 desc.addressModeV = to_dawn_address_mode(samplerState.wrapModeY()); in getOrCreateSampler()
887 desc.magFilter = desc.minFilter = to_dawn_filter_mode(samplerState.filter()); in getOrCreateSampler()
888 desc.mipmapFilter = to_dawn_mipmap_mode(samplerState.mipmapMode()); in getOrCreateSampler()
890 fSamplers.insert(std::pair<GrSamplerState, wgpu::Sampler>(samplerState, sampler)); in getOrCreateSampler()
/third_party/skia/src/gpu/
DGrGeometryProcessor.cpp46 GrGeometryProcessor::TextureSampler::TextureSampler(GrSamplerState samplerState, in TextureSampler() argument
49 this->reset(samplerState, backendFormat, swizzle); in TextureSampler()
52 void GrGeometryProcessor::TextureSampler::reset(GrSamplerState samplerState, in reset() argument
55 fSamplerState = samplerState; in reset()
56 fSamplerState.setFilterMode(clamp_filter(backendFormat.textureType(), samplerState.filter())); in reset()
DGrProgramDesc.cpp69 caps.addExtraSamplerKey(b, sampler.samplerState(), backendFormat); in add_geomproc_sampler_keys()
127 caps.addExtraSamplerKey(b, te->samplerState(), backendFormat); in gen_fp_key()
/third_party/skia/src/gpu/glsl/
DGrGLSLProgramBuilder.cpp102 sampler.samplerState(), in emitAndInstallPrimProc()
163 GrSamplerState samplerState = te->samplerState(); in emitFragProc() local
166 SamplerHandle handle = this->emitSampler(format, samplerState, swizzle, name.c_str()); in emitFragProc()
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
Dframe_capture_utils.cpp732 void SerializeSamplerState(JsonSerializer *json, const gl::SamplerState &samplerState) in SerializeSamplerState() argument
734 json->addScalar("MinFilter", samplerState.getMinFilter()); in SerializeSamplerState()
735 json->addScalar("MagFilter", samplerState.getMagFilter()); in SerializeSamplerState()
736 json->addScalar("WrapS", samplerState.getWrapS()); in SerializeSamplerState()
737 json->addScalar("WrapT", samplerState.getWrapT()); in SerializeSamplerState()
738 json->addScalar("WrapR", samplerState.getWrapR()); in SerializeSamplerState()
739 json->addScalar("MaxAnisotropy", samplerState.getMaxAnisotropy()); in SerializeSamplerState()
740 json->addScalar("MinLod", samplerState.getMinLod()); in SerializeSamplerState()
741 json->addScalar("MaxLod", samplerState.getMaxLod()); in SerializeSamplerState()
742 json->addScalar("CompareMode", samplerState.getCompareMode()); in SerializeSamplerState()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsSamplerObjectTest.hpp60 SamplingState samplerState; member
119 SamplingState samplerState; member
/third_party/skia/src/gpu/ops/
DQuadPerEdgeAA.cpp615 GrSamplerState samplerState, in Make() argument
621 vertexSpec, caps, backendFormat, samplerState, swizzle, in Make()
844 GrSamplerState samplerState, in QuadPerEdgeAAGeometryProcessor() argument
851 , fSampler(samplerState, backendFormat, swizzle) { in QuadPerEdgeAAGeometryProcessor()
933 GrSamplerState samplerState, in MakeTexturedProcessor() argument
937 return QuadPerEdgeAAGeometryProcessor::Make(arena, spec, caps, backendFormat, samplerState, in MakeTexturedProcessor()

123