Home
last modified time | relevance | path

Searched refs:WrapMode (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/skia/src/gpu/
DGrSamplerState.h23 enum class WrapMode : uint8_t { enum
32 inline static constexpr int kWrapModeCount = static_cast<int>(WrapMode::kLast) + 1;
36 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter, MipmapMode mm = MipmapMode::kNone)
39 constexpr GrSamplerState(WrapMode wrapX,
40 WrapMode wrapY,
45 constexpr GrSamplerState(const WrapMode wrapModes[2],
57 constexpr WrapMode wrapModeX() const { return fWrapModes[0]; } in wrapModeX()
59 constexpr WrapMode wrapModeY() const { return fWrapModes[1]; } in wrapModeY()
62 return fWrapModes[0] == WrapMode::kRepeat || fWrapModes[0] == WrapMode::kMirrorRepeat; in isRepeatedX()
66 return fWrapModes[1] == WrapMode::kRepeat || fWrapModes[1] == WrapMode::kMirrorRepeat; in isRepeatedY()
[all …]
DSkGr.h71 static constexpr GrSamplerState::WrapMode SkTileModeToWrapMode(SkTileMode tileMode) { in SkTileModeToWrapMode()
73 case SkTileMode::kClamp: return GrSamplerState::WrapMode::kClamp; in SkTileModeToWrapMode()
74 case SkTileMode::kDecal: return GrSamplerState::WrapMode::kClampToBorder; in SkTileModeToWrapMode()
75 case SkTileMode::kMirror: return GrSamplerState::WrapMode::kMirrorRepeat; in SkTileModeToWrapMode()
76 case SkTileMode::kRepeat: return GrSamplerState::WrapMode::kRepeat; in SkTileModeToWrapMode()
/third_party/flutter/skia/src/gpu/
DGrSamplerState.h19 enum class WrapMode : uint8_t { kClamp, kRepeat, kMirrorRepeat, kClampToBorder }; enum
23 return GrSamplerState(WrapMode::kClamp, Filter::kBilerp); in ClampBilerp()
26 constexpr GrSamplerState() : GrSamplerState(WrapMode::kClamp, Filter::kNearest) {} in GrSamplerState()
28 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter) in GrSamplerState()
31 constexpr GrSamplerState(const WrapMode wrapModes[2], Filter filter) in GrSamplerState()
47 void setWrapModeX(const WrapMode wrap) { fWrapModes[0] = wrap; } in setWrapModeX()
48 void setWrapModeY(const WrapMode wrap) { fWrapModes[1] = wrap; } in setWrapModeY()
50 WrapMode wrapModeX() const { return fWrapModes[0]; } in wrapModeX()
51 WrapMode wrapModeY() const { return fWrapModes[1]; } in wrapModeY()
54 return (WrapMode::kClamp != fWrapModes[0] && WrapMode::kClampToBorder != fWrapModes[0]) || in isRepeated()
[all …]
DGrTextureProducer.cpp70 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu()
210 GrSamplerState::WrapMode wrapMode = in createFragmentProcessorForDomainAndFilter()
211 fDomainNeedsDecal ? GrSamplerState::WrapMode::kClampToBorder in createFragmentProcessorForDomainAndFilter()
212 : GrSamplerState::WrapMode::kClamp; in createFragmentProcessorForDomainAndFilter()
217 static const GrSamplerState::WrapMode kClampClamp[] = { in createFragmentProcessorForDomainAndFilter()
218 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in createFragmentProcessorForDomainAndFilter()
219 static const GrSamplerState::WrapMode kDecalDecal[] = { in createFragmentProcessorForDomainAndFilter()
220 GrSamplerState::WrapMode::kClampToBorder, GrSamplerState::WrapMode::kClampToBorder}; in createFragmentProcessorForDomainAndFilter()
247 sampler.setWrapModeX(GrSamplerState::WrapMode::kClampToBorder); in refTextureProxyForParams()
248 sampler.setWrapModeY(GrSamplerState::WrapMode::kClampToBorder); in refTextureProxyForParams()
[all …]
/third_party/flutter/skia/src/gpu/effects/
DGrBicubicEffect.h51 static constexpr GrSamplerState::WrapMode kClampClamp[] = { in Make()
52 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in Make()
62 const GrSamplerState::WrapMode wrapModes[2], in Make()
78 const GrSamplerState::WrapMode wrapModes[2],
99 static const GrSamplerState::WrapMode kClampClamp[] = { in Make()
100 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in Make()
117 const GrSamplerState::WrapMode wrapModes[2], GrTextureDomain::Mode modeX,
DGrSimpleTextureEffect.fp28 … GrSamplerState(GrSamplerState::WrapMode::kClamp, GrSamplerState::Filter::kNearest)));
37 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter)));
50 samplerParams.wrapModeX() == GrSamplerState::WrapMode::kClampToBorder ||
51 samplerParams.wrapModeY() == GrSamplerState::WrapMode::kClampToBorder)
61 GrSamplerState::WrapMode wrapModes[2];
66 wrapModes[0] = GrSamplerState::WrapMode::kClamp;
67 wrapModes[1] = GrSamplerState::WrapMode::kClamp;
DGrTextureDomain.h84 static bool IsDecalSampled(GrSamplerState::WrapMode wrapX, GrSamplerState::WrapMode wrapY, in IsDecalSampled()
86 return wrapX == GrSamplerState::WrapMode::kClampToBorder || in IsDecalSampled()
87 wrapY == GrSamplerState::WrapMode::kClampToBorder || in IsDecalSampled()
92 static bool IsDecalSampled(const GrSamplerState::WrapMode wraps[2], Mode modeX, Mode modeY) { in IsDecalSampled()
DGrBicubicEffect.cpp166 const SkRect& domain, const GrSamplerState::WrapMode wrapModes[2], in GrBicubicEffect()
214 static const GrSamplerState::WrapMode kClampClamp[] = {GrSamplerState::WrapMode::kClamp, in TestCreate()
215 GrSamplerState::WrapMode::kClamp}; in TestCreate()
/third_party/skia/src/gpu/effects/
DGrBicubicEffect.h55 const GrSamplerState::WrapMode wrapX,
56 const GrSamplerState::WrapMode wrapY,
68 const GrSamplerState::WrapMode wrapX,
69 const GrSamplerState::WrapMode wrapY,
82 const GrSamplerState::WrapMode wrapX,
83 const GrSamplerState::WrapMode wrapY,
DGrBicubicEffect.cpp128 const GrSamplerState::WrapMode wrapX, in Make()
129 const GrSamplerState::WrapMode wrapY, in Make()
145 const GrSamplerState::WrapMode wrapX, in MakeSubset()
146 const GrSamplerState::WrapMode wrapY, in MakeSubset()
164 const GrSamplerState::WrapMode wrapX, in MakeSubset()
165 const GrSamplerState::WrapMode wrapY, in MakeSubset()
259 GrSamplerState::WrapMode wm[2]; in TestCreate()
DGrTextureEffect.h88 GrSamplerState::WrapMode wx,
89 GrSamplerState::WrapMode wy,
148 static ShaderMode GetShaderMode(GrSamplerState::WrapMode,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.hpp326 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
327 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
328 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::FilterMode minFilterMode, t…
379 tcu::Sampler::WrapMode wrapS;
392 tcu::Sampler::WrapMode wrapT;
401 tcu::Sampler::WrapMode wrapT;
408 tcu::Sampler::WrapMode wrapT;
415 tcu::Sampler::WrapMode wrapR;
/third_party/skia/src/gpu/vk/
DGrVkSampler.cpp13 static VkSamplerAddressMode wrap_mode_to_vk_sampler_address(GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_vk_sampler_address()
15 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_vk_sampler_address()
17 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_vk_sampler_address()
19 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_vk_sampler_address()
21 case GrSamplerState::WrapMode::kClampToBorder: in wrap_mode_to_vk_sampler_address()
/third_party/flutter/skia/src/gpu/vk/
DGrVkSampler.cpp14 GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_vk_sampler_address()
16 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_vk_sampler_address()
18 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_vk_sampler_address()
20 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_vk_sampler_address()
22 case GrSamplerState::WrapMode::kClampToBorder: in wrap_mode_to_vk_sampler_address()
/third_party/flutter/skia/src/gpu/effects/generated/
DGrSimpleTextureEffect.h23 GrSamplerState(GrSamplerState::WrapMode::kClamp, in Make()
33 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); in Make()
56 GrSamplerState::WrapMode::kClampToBorder || in GrSimpleTextureEffect()
58 GrSamplerState::WrapMode::kClampToBorder)) in GrSimpleTextureEffect()
DGrSimpleTextureEffect.cpp73 GrSamplerState::WrapMode wrapModes[2]; in TestCreate()
78 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in TestCreate()
79 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in TestCreate()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DSamplerGL.cpp60 GLenum WrapMode(dawn::AddressMode mode) { in WrapMode() function
83 gl.SamplerParameteri(mHandle, GL_TEXTURE_WRAP_R, WrapMode(descriptor->addressModeW)); in Sampler()
84 gl.SamplerParameteri(mHandle, GL_TEXTURE_WRAP_S, WrapMode(descriptor->addressModeU)); in Sampler()
85 gl.SamplerParameteri(mHandle, GL_TEXTURE_WRAP_T, WrapMode(descriptor->addressModeV)); in Sampler()
/third_party/skia/src/gpu/mtl/
DGrMtlSampler.mm19 GrSamplerState::WrapMode wrapMode, const GrCaps& caps) {
21 case GrSamplerState::WrapMode::kClamp:
23 case GrSamplerState::WrapMode::kRepeat:
25 case GrSamplerState::WrapMode::kMirrorRepeat:
27 case GrSamplerState::WrapMode::kClampToBorder:
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlSampler.mm17 GrSamplerState::WrapMode wrapMode, const GrCaps& caps) {
19 case GrSamplerState::WrapMode::kClamp:
21 case GrSamplerState::WrapMode::kRepeat:
23 case GrSamplerState::WrapMode::kMirrorRepeat:
25 case GrSamplerState::WrapMode::kClampToBorder:
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DSamplerGL.cpp54 GLenum WrapMode(wgpu::AddressMode mode) { in WrapMode() function
103 gl.SamplerParameteri(sampler, GL_TEXTURE_WRAP_R, WrapMode(descriptor->addressModeW)); in SetupGLSampler()
104 gl.SamplerParameteri(sampler, GL_TEXTURE_WRAP_S, WrapMode(descriptor->addressModeU)); in SetupGLSampler()
105 gl.SamplerParameteri(sampler, GL_TEXTURE_WRAP_T, WrapMode(descriptor->addressModeV)); in SetupGLSampler()
/third_party/flutter/skia/src/shaders/
DSkImageShader.cpp174 static GrSamplerState::WrapMode tile_mode_to_wrap_mode(const SkTileMode tileMode) { in tile_mode_to_wrap_mode()
177 return GrSamplerState::WrapMode::kClamp; in tile_mode_to_wrap_mode()
179 return GrSamplerState::WrapMode::kRepeat; in tile_mode_to_wrap_mode()
181 return GrSamplerState::WrapMode::kMirrorRepeat; in tile_mode_to_wrap_mode()
183 return GrSamplerState::WrapMode::kClampToBorder; in tile_mode_to_wrap_mode()
196 GrSamplerState::WrapMode wrapModes[] = {tile_mode_to_wrap_mode(fTileModeX), in asFragmentProcessor()
205 if (wrapModes[0] == GrSamplerState::WrapMode::kClampToBorder) { in asFragmentProcessor()
207 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in asFragmentProcessor()
209 if (wrapModes[1] == GrSamplerState::WrapMode::kClampToBorder) { in asFragmentProcessor()
211 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in asFragmentProcessor()
/third_party/skia/third_party/externals/angle2/src/common/
DPackedGLEnums_autogen.cpp2311 WrapMode FromGLenum<WrapMode>(GLenum from) in FromGLenum()
2316 return WrapMode::ClampToEdge; in FromGLenum()
2318 return WrapMode::ClampToBorder; in FromGLenum()
2320 return WrapMode::MirroredRepeat; in FromGLenum()
2322 return WrapMode::Repeat; in FromGLenum()
2324 return WrapMode::InvalidEnum; in FromGLenum()
2328 GLenum ToGLenum(WrapMode from) in ToGLenum()
2332 case WrapMode::ClampToEdge: in ToGLenum()
2334 case WrapMode::ClampToBorder: in ToGLenum()
2336 case WrapMode::MirroredRepeat: in ToGLenum()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/common/
DPackedGLEnums_autogen.cpp2227 WrapMode FromGLenum<WrapMode>(GLenum from) in FromGLenum()
2232 return WrapMode::ClampToEdge; in FromGLenum()
2234 return WrapMode::ClampToBorder; in FromGLenum()
2236 return WrapMode::MirroredRepeat; in FromGLenum()
2238 return WrapMode::Repeat; in FromGLenum()
2240 return WrapMode::InvalidEnum; in FromGLenum()
2244 GLenum ToGLenum(WrapMode from) in ToGLenum()
2248 case WrapMode::ClampToEdge: in ToGLenum()
2250 case WrapMode::ClampToBorder: in ToGLenum()
2252 case WrapMode::MirroredRepeat: in ToGLenum()
[all …]
/third_party/skia/src/gpu/d3d/
DGrD3DResourceProvider.cpp124 static D3D12_TEXTURE_ADDRESS_MODE wrap_mode_to_d3d_address_mode(GrSamplerState::WrapMode wrapMode) { in wrap_mode_to_d3d_address_mode()
126 case GrSamplerState::WrapMode::kClamp: in wrap_mode_to_d3d_address_mode()
128 case GrSamplerState::WrapMode::kRepeat: in wrap_mode_to_d3d_address_mode()
130 case GrSamplerState::WrapMode::kMirrorRepeat: in wrap_mode_to_d3d_address_mode()
132 case GrSamplerState::WrapMode::kClampToBorder: in wrap_mode_to_d3d_address_mode()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSRGBDecodeTests.cpp305 const tcu::Sampler::WrapMode wrapS,
306 const tcu::Sampler::WrapMode wrapT,
323 tcu::Sampler::WrapMode m_wrapS;
324 tcu::Sampler::WrapMode m_wrapT;
333 const tcu::Sampler::WrapMode wrapS, in SRGBTestSampler()
334 const tcu::Sampler::WrapMode wrapT, in SRGBTestSampler()
409 const tcu::Sampler::WrapMode wrapS,
410 const tcu::Sampler::WrapMode wrapT,
436 tcu::Sampler::WrapMode m_wrapS;
437 tcu::Sampler::WrapMode m_wrapT;
[all …]

1234