Home
last modified time | relevance | path

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

1234

/external/skia/src/gpu/
DGrSamplerState.h23 enum class WrapMode : uint8_t { enum
32 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()
DGrTestUtils.cpp111 void TestWrapModes(SkRandom* random, GrSamplerState::WrapMode wrapModes[2]) { in TestWrapModes()
112 static const GrSamplerState::WrapMode kWrapModes[] = { in TestWrapModes()
113 GrSamplerState::WrapMode::kClamp, in TestWrapModes()
114 GrSamplerState::WrapMode::kRepeat, in TestWrapModes()
115 GrSamplerState::WrapMode::kMirrorRepeat, in TestWrapModes()
/external/skqp/include/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 …]
/external/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.cpp131 const GrSamplerState::WrapMode wrapX, in Make()
132 const GrSamplerState::WrapMode wrapY, in Make()
148 const GrSamplerState::WrapMode wrapX, in MakeSubset()
149 const GrSamplerState::WrapMode wrapY, in MakeSubset()
167 const GrSamplerState::WrapMode wrapX, in MakeSubset()
168 const GrSamplerState::WrapMode wrapY, in MakeSubset()
266 GrSamplerState::WrapMode wm[2]; in TestCreate()
DGrTextureEffect.h88 GrSamplerState::WrapMode wx,
89 GrSamplerState::WrapMode wy,
147 static ShaderMode GetShaderMode(GrSamplerState::WrapMode,
/external/skqp/src/gpu/effects/
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;
DGrSimpleTextureEffect.h24 GrSamplerState(GrSamplerState::WrapMode::kClamp, in Make()
34 GrSamplerState(GrSamplerState::WrapMode::kClamp, filter))); in Make()
54 GrSamplerState::WrapMode::kClampToBorder || in GrSimpleTextureEffect()
56 GrSamplerState::WrapMode::kClampToBorder)) in GrSimpleTextureEffect()
DGrBicubicEffect.cpp122 const GrSamplerState::WrapMode wrapModes[2], in GrBicubicEffect()
146 SkASSERT(fTextureSampler.samplerState().wrapModeX() == GrSamplerState::WrapMode::kClamp && in GrBicubicEffect()
147 fTextureSampler.samplerState().wrapModeY() == GrSamplerState::WrapMode::kClamp); in GrBicubicEffect()
181 static const GrSamplerState::WrapMode kClampClamp[] = {GrSamplerState::WrapMode::kClamp, in TestCreate()
182 GrSamplerState::WrapMode::kClamp}; in TestCreate()
DGrBicubicEffect.h36 const GrSamplerState::WrapMode wrapModes[2]) { in Make()
50 const GrSamplerState::WrapMode wrapModes[2], in Make()
79 const GrSamplerState::WrapMode wrapModes[2],
DGrSimpleTextureEffect.cpp72 GrSamplerState::WrapMode wrapModes[2]; in TestCreate()
77 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in TestCreate()
78 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in TestCreate()
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()
/external/skqp/src/gpu/mtl/
DGrMtlSampler.mm13 GrSamplerState::WrapMode wrapMode, const GrCaps& caps) {
15 case GrSamplerState::WrapMode::kClamp:
17 case GrSamplerState::WrapMode::kRepeat:
19 case GrSamplerState::WrapMode::kMirrorRepeat:
21 case GrSamplerState::WrapMode::kClampToBorder:
/external/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()
/external/skqp/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()
/external/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:
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.hpp294 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
295 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
296 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::FilterMode minFilterMode, t…
347 tcu::Sampler::WrapMode wrapS;
348 tcu::Sampler::WrapMode wrapT;
381 tcu::Sampler::WrapMode wrapR;
/external/skqp/src/shaders/
DSkImageShader.cpp168 static GrSamplerState::WrapMode tile_mode_to_wrap_mode(const SkShader::TileMode tileMode) { in tile_mode_to_wrap_mode()
171 return GrSamplerState::WrapMode::kClamp; in tile_mode_to_wrap_mode()
173 return GrSamplerState::WrapMode::kRepeat; in tile_mode_to_wrap_mode()
175 return GrSamplerState::WrapMode::kMirrorRepeat; in tile_mode_to_wrap_mode()
177 return GrSamplerState::WrapMode::kClampToBorder; in tile_mode_to_wrap_mode()
180 return GrSamplerState::WrapMode::kClamp; in tile_mode_to_wrap_mode()
191 GrSamplerState::WrapMode wrapModes[] = {tile_mode_to_wrap_mode(fTileModeX), in asFragmentProcessor()
200 if (wrapModes[0] == GrSamplerState::WrapMode::kClampToBorder) { in asFragmentProcessor()
202 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in asFragmentProcessor()
204 if (wrapModes[1] == GrSamplerState::WrapMode::kClampToBorder) { in asFragmentProcessor()
[all …]
/external/skqp/src/gpu/
DGrTextureProducer.cpp73 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu()
211 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, *filterOrNullForBicubic); in CreateFragmentProcessorForDomainAndFilter()
218 static const GrSamplerState::WrapMode kClampClamp[] = { in CreateFragmentProcessorForDomainAndFilter()
219 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in CreateFragmentProcessorForDomainAndFilter()
258 GrSamplerState sampler(GrSamplerState::WrapMode::kClamp, filter); in refTextureProxy()
DGrFragmentProcessor.h417 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp);
424 GrSamplerState::WrapMode wrapXAndY = GrSamplerState::WrapMode::kClamp);
DGrPrimitiveProcessor.cpp66 GrSamplerState::WrapMode wrapXAndY) { in TextureSampler()
86 GrSamplerState::WrapMode wrapXAndY) { in reset()
/external/angle/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 …]
/external/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()
/external/deqp/modules/gles31/functional/
Des31fSRGBDecodeTests.cpp304 const tcu::Sampler::WrapMode wrapS,
305 const tcu::Sampler::WrapMode wrapT,
322 tcu::Sampler::WrapMode m_wrapS;
323 tcu::Sampler::WrapMode m_wrapT;
332 const tcu::Sampler::WrapMode wrapS, in SRGBTestSampler()
333 const tcu::Sampler::WrapMode wrapT, in SRGBTestSampler()
408 const tcu::Sampler::WrapMode wrapS,
409 const tcu::Sampler::WrapMode wrapT,
435 tcu::Sampler::WrapMode m_wrapS;
436 tcu::Sampler::WrapMode m_wrapT;
[all …]

1234