Home
last modified time | relevance | path

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

1234

/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/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/
DGrTextureProducer.cpp76 GrSamplerState samplerState(GrSamplerState::WrapMode::kClamp, copyParams.fFilter); in CopyOnGpu()
216 GrSamplerState::WrapMode wrapMode = in createFragmentProcessorForDomainAndFilter()
217 fDomainNeedsDecal ? GrSamplerState::WrapMode::kClampToBorder in createFragmentProcessorForDomainAndFilter()
218 : GrSamplerState::WrapMode::kClamp; in createFragmentProcessorForDomainAndFilter()
223 static const GrSamplerState::WrapMode kClampClamp[] = { in createFragmentProcessorForDomainAndFilter()
224 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in createFragmentProcessorForDomainAndFilter()
225 static const GrSamplerState::WrapMode kDecalDecal[] = { in createFragmentProcessorForDomainAndFilter()
226 GrSamplerState::WrapMode::kClampToBorder, GrSamplerState::WrapMode::kClampToBorder}; in createFragmentProcessorForDomainAndFilter()
251 sampler.setWrapModeX(GrSamplerState::WrapMode::kClampToBorder); in refTextureProxyForParams()
252 sampler.setWrapModeY(GrSamplerState::WrapMode::kClampToBorder); in refTextureProxyForParams()
[all …]
/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()
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.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()
/external/skia/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;
DGrBicubicEffect.h36 const GrSamplerState::WrapMode wrapModes[2]) { in Make()
50 const GrSamplerState::WrapMode wrapModes[2],
66 static const GrSamplerState::WrapMode kClampClamp[] = { in Make()
67 GrSamplerState::WrapMode::kClamp, GrSamplerState::WrapMode::kClamp}; in Make()
84 const GrSamplerState::WrapMode wrapModes[2],
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()
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()
DGrSimpleTextureEffect.cpp72 GrSamplerState::WrapMode wrapModes[2]; in TestCreate()
77 wrapModes[0] = GrSamplerState::WrapMode::kClamp; in TestCreate()
78 wrapModes[1] = GrSamplerState::WrapMode::kClamp; in TestCreate()
DGrBicubicEffect.cpp122 const GrSamplerState::WrapMode wrapModes[2], in GrBicubicEffect()
164 static const GrSamplerState::WrapMode kClampClamp[] = {GrSamplerState::WrapMode::kClamp, in TestCreate()
165 GrSamplerState::WrapMode::kClamp}; in TestCreate()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureTestUtil.hpp270 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
271 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::WrapMode wrapV, tcu::Sample…
272 tcu::Sampler createSampler (tcu::Sampler::WrapMode wrapU, tcu::Sampler::FilterMode minFilterMode, t…
309 tcu::Sampler::WrapMode wrapS;
310 tcu::Sampler::WrapMode wrapT;
342 tcu::Sampler::WrapMode wrapR;
/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/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.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/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/shaders/
DSkImageShader.cpp173 static GrSamplerState::WrapMode tile_mode_to_wrap_mode(const SkShader::TileMode tileMode) { in tile_mode_to_wrap_mode()
176 return GrSamplerState::WrapMode::kClamp; in tile_mode_to_wrap_mode()
178 return GrSamplerState::WrapMode::kRepeat; in tile_mode_to_wrap_mode()
180 return GrSamplerState::WrapMode::kMirrorRepeat; in tile_mode_to_wrap_mode()
182 return GrSamplerState::WrapMode::kClampToBorder; in tile_mode_to_wrap_mode()
185 return GrSamplerState::WrapMode::kClamp; 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()
[all …]
/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);
/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