Home
last modified time | relevance | path

Searched refs:samplerState (Results 1 - 25 of 61) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
H A DSpirvShaderSampling.cpp49 Sampler samplerState = {}; in getImageSampler()
50 samplerState.textureType = type; in getImageSampler()
51 ASSERT(instruction.coordinates >= samplerState.dimensionality()); // "It may be a vector larger than needed, but all unused components appear after all used components." 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 in getImageSampler()
128 emitWriteRoutine(ImageInstructionSignature instruction, const Sampler &samplerState) emitWriteRoutine() argument
144 emitSamplerRoutine(ImageInstructionSignature instruction, const Sampler &samplerState) emitSamplerRoutine() argument
266 convertFilterMode(const vk::SamplerState *samplerState, VkImageViewType imageViewType, SamplerMethod samplerMethod) convertFilterMode() argument
319 convertMipmapMode(const vk::SamplerState *samplerState) convertMipmapMode() argument
342 convertAddressingMode(int coordinateIndex, const vk::SamplerState *samplerState, VkImageViewType imageViewType) convertAddressingMode() argument
[all...]
/third_party/skia/src/gpu/vk/
H A 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 in GenerateKey()
[all...]
H A DGrVkPipelineState.cpp132 samplerBindings[currTextureBinding++] = {sampler.samplerState(), texture}; in setAndBindTextures()
142 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures()
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/
H A DRenderStateCache.cpp265 const gl::SamplerState &samplerState, in getSamplerState()
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 in getSamplerState()
263 getSamplerState(const gl::Context *context, Renderer11 *renderer, const gl::SamplerState &samplerState, ID3D11SamplerState **outSamplerState) getSamplerState() argument
[all...]
/third_party/skia/src/gpu/effects/
H A DGrYUVtoRGBEffect.cpp34 GrSamplerState samplerState, in Make()
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()
33 Make(const GrYUVATextureProxies& yuvaProxies, GrSamplerState samplerState, const GrCaps& caps, const SkMatrix& localMatrix, const SkRect* subset, const SkRect* domain) Make() argument
[all...]
H A DGrDistanceFieldGeoProc.cpp299 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
314 samplerState, in TestCreate()
574 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
589 samplerState, in TestCreate()
895 GrSamplerState samplerState(wrapModes, d->fRandom->nextBool() in TestCreate()
908 1, samplerState, wa, flags, localMatrix); in TestCreate()
H A DGrYUVtoRGBEffect.h20 GrSamplerState samplerState,
/third_party/skia/gm/
H A Dyuvtorgbsubset.cpp143 GrSamplerState samplerState; variable
144 samplerState.setFilterMode(kFilters[i]);
147 samplerState.setWrapModeX(wm);
148 samplerState.setWrapModeY(wm);
152 GrYUVtoRGBEffect::Make(fProxies, samplerState, caps, SkMatrix::I(), subset);
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A 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()
H A 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);
H A DVkSampler.cpp48 Sampler::Sampler(const VkSamplerCreateInfo *pCreateInfo, void *mem, const SamplerState &samplerState, uint32_t samplerID) in Sampler() argument
49 : SamplerState(samplerState) in Sampler()
/third_party/skia/src/gpu/gl/
H A DGrGLTypesPriv.cpp48 void GrGLTextureParameters::set(const SamplerOverriddenState* samplerState, in set() argument
51 if (samplerState) { in set()
52 fSamplerOverriddenState = *samplerState; in set()
H A DGrGLProgram.cpp130 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures()
142 GrSamplerState samplerState = te.samplerState(); in bindTextures()
145 fGpu->bindTexture(nextTexSamplerIdx++, samplerState, swizzle, texture); in bindTextures()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
H A 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 in computeSamplerCompleteness()
2114 const auto &samplerState = isSamplerComplete() local
[all...]
H A DTexture.h126 const SamplerState &samplerState) const in compatibleWithSamplerFormatForWebGL()
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/
H A DGrD3DPipelineState.cpp109 gpu->resourceProvider().findOrCreateCompatibleSampler(sampler.samplerState()); in setAndBindTextures()
122 GrSamplerState samplerState = te.samplerState(); in setAndBindTextures()
126 gpu->resourceProvider().findOrCreateCompatibleSampler(samplerState); in setAndBindTextures()
/third_party/skia/src/gpu/dawn/
H A DGrDawnGpu.h96 wgpu::Sampler getOrCreateSampler(GrSamplerState samplerState);
251 size_t operator()(GrSamplerState samplerState) const { in operator ()()
252 return SkOpts::hash_fn(&samplerState, sizeof(samplerState), 0); in operator ()()
H A DGrDawnGpu.cpp886 wgpu::Sampler GrDawnGpu::getOrCreateSampler(GrSamplerState samplerState) { in getOrCreateSampler() argument
887 auto i = fSamplers.find(samplerState); in getOrCreateSampler()
892 desc.addressModeU = to_dawn_address_mode(samplerState.wrapModeX()); in getOrCreateSampler()
893 desc.addressModeV = to_dawn_address_mode(samplerState.wrapModeY()); in getOrCreateSampler()
895 desc.magFilter = desc.minFilter = to_dawn_filter_mode(samplerState.filter()); in getOrCreateSampler()
896 desc.mipmapFilter = to_dawn_mipmap_mode(samplerState.mipmapMode()); in getOrCreateSampler()
898 fSamplers.insert(std::pair<GrSamplerState, wgpu::Sampler>(samplerState, sampler)); in getOrCreateSampler()
/third_party/skia/src/gpu/
H A 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()
H A DGrProgramInfo.cpp45 if (te.samplerState().mipmapped() == GrMipmapped::kYes && in checkMSAAAndMIPSAreResolved()
H A 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/vk-gl-cts/modules/glshared/
H A DglsSamplerObjectTest.hpp60 SamplingState samplerState; member
119 SamplingState samplerState; member
/third_party/skia/src/gpu/glsl/
H A DGrGLSLProgramBuilder.cpp104 sampler.samplerState(), in emitAndInstallPrimProc()
165 GrSamplerState samplerState = te->samplerState(); in emitFragProc()
168 SamplerHandle handle = this->emitSampler(format, samplerState, swizzle, name.c_str()); in emitFragProc()
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/
H A 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 in SerializeSamplerState()
[all...]
/third_party/skia/src/gpu/ops/
H A DQuadPerEdgeAA.cpp615 GrSamplerState samplerState, in Make()
621 vertexSpec, caps, backendFormat, samplerState, swizzle, in Make()
862 GrSamplerState samplerState, in QuadPerEdgeAAGeometryProcessor()
869 , fSampler(samplerState, backendFormat, swizzle) { in QuadPerEdgeAAGeometryProcessor()
951 GrSamplerState samplerState, in MakeTexturedProcessor()
955 return QuadPerEdgeAAGeometryProcessor::Make(arena, spec, caps, backendFormat, samplerState, in MakeTexturedProcessor()
611 Make(SkArenaAlloc* arena, const VertexSpec& vertexSpec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) Make() argument
859 QuadPerEdgeAAGeometryProcessor(const VertexSpec& spec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) QuadPerEdgeAAGeometryProcessor() argument
947 MakeTexturedProcessor(SkArenaAlloc* arena, const VertexSpec& spec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) MakeTexturedProcessor() argument

Completed in 20 milliseconds

123