Home
last modified time | relevance | path

Searched refs:GrSwizzle (Results 1 – 25 of 102) sorted by relevance

12345

/third_party/skia/src/gpu/
DGrSwizzle.h18 class GrSwizzle {
20 constexpr GrSwizzle() : GrSwizzle("rgba") {} in GrSwizzle() function
21 explicit constexpr GrSwizzle(const char c[4]);
23 constexpr GrSwizzle(const GrSwizzle&);
24 constexpr GrSwizzle& operator=(const GrSwizzle& that);
26 static constexpr GrSwizzle Concat(const GrSwizzle& a, const GrSwizzle& b);
28 constexpr bool operator==(const GrSwizzle& that) const { return fKey == that.fKey; }
29 constexpr bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
55 static constexpr GrSwizzle RGBA() { return GrSwizzle("rgba"); } in RGBA()
56 static constexpr GrSwizzle BGRA() { return GrSwizzle("bgra"); } in BGRA()
[all …]
DGrSurfaceProxyView.h22 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle) in GrSurfaceProxyView()
80 GrSwizzle swizzle() const { return fSwizzle; } in swizzle()
82 void concatSwizzle(GrSwizzle swizzle) { fSwizzle = GrSwizzle::Concat(fSwizzle, swizzle); } in concatSwizzle()
84 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) const & { in makeSwizzle()
85 return {fProxy, fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle()
88 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) && { in makeSwizzle()
89 return {std::move(fProxy), fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle()
137 GrSwizzle fSwizzle;
DGrSwizzle.cpp12 void GrSwizzle::apply(SkRasterPipeline* pipeline) const { in apply()
15 case GrSwizzle("rgba").asKey(): in apply()
17 case GrSwizzle("bgra").asKey(): in apply()
20 case GrSwizzle("aaa1").asKey(): in apply()
23 case GrSwizzle("rgb1").asKey(): in apply()
38 SkString GrSwizzle::asString() const { in asString()
DGrDataUtils.cpp403 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle()
405 GrSwizzle swizzle("rgba"); in get_load_and_src_swizzle()
413 case GrColorType::kARGB_4444: swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
415 case GrColorType::kBGRA_4444: swizzle = GrSwizzle("gbar"); in get_load_and_src_swizzle()
421 swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
441 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
444 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
447 swizzle = GrSwizzle("rrr1"); in get_load_and_src_swizzle()
450 swizzle = GrSwizzle("aaa1"); in get_load_and_src_swizzle()
453 swizzle = GrSwizzle("rrrg"); in get_load_and_src_swizzle()
[all …]
DGrPipeline.h64 GrSwizzle fWriteSwizzle;
74 const GrSwizzle& writeSwizzle,
83 const GrSwizzle& writeSwizzle,
195 const GrSwizzle& writeSwizzle() const { return fWriteSwizzle; } in writeSwizzle()
230 GrSwizzle fWriteSwizzle;
DGrRecordingContextPriv.cpp86 GrSwizzle writeSwizzle; in makeSC()
142 GrSwizzle swizzle; in makeSC()
187 GrSwizzle readSwizzle = this->caps()->getReadSwizzle (format, info.colorType()); in makeSFC()
188 GrSwizzle writeSwizzle = this->caps()->getWriteSwizzle(format, info.colorType()); in makeSFC()
213 GrSwizzle readSwizzle, in makeSFC()
214 GrSwizzle writeSwizzle, in makeSFC()
335 GrSwizzle readSwizzle = this->caps()->getReadSwizzle (format, info.colorType()); in makeSFCFromBackendTexture()
336 GrSwizzle writeSwizzle = this->caps()->getWriteSwizzle(format, info.colorType()); in makeSFCFromBackendTexture()
DGrSPIRVUniformHandler.h52 SamplerHandle addSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
55 GrSwizzle samplerSwizzle(SamplerHandle handle) const override;
68 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrXferProcessor.h299 const GrSwizzle& writeSwizzle) in GR_MAKE_BITFIELD_CLASS_OPS()
321 GrSwizzle fWriteSwizzle; in GR_MAKE_BITFIELD_CLASS_OPS()
375 const GrSwizzle&, in GR_MAKE_BITFIELD_CLASS_OPS()
DGrRecordingContextPriv.h18 class GrSwizzle; variable
174 GrSwizzle readSwizzle,
175 GrSwizzle writeSwizzle,
/third_party/skia/src/gpu/dawn/
DGrDawnCaps.cpp46 static GrSwizzle get_swizzle(const GrBackendFormat& format, GrColorType colorType, in get_swizzle()
52 return GrSwizzle("a000"); in get_swizzle()
54 return GrSwizzle("000r"); in get_swizzle()
58 return GrSwizzle::RRRA(); in get_swizzle()
63 return GrSwizzle::RGB1(); in get_swizzle()
67 return GrSwizzle::RGBA(); in get_swizzle()
69 return GrSwizzle::RGBA(); in get_swizzle()
125 GrSwizzle GrDawnCaps::onGetReadSwizzle(const GrBackendFormat& format, GrColorType colorType) const in onGetReadSwizzle()
130 GrSwizzle GrDawnCaps::getWriteSwizzle(const GrBackendFormat& format, GrColorType colorType) const { in getWriteSwizzle()
/third_party/skia/gm/
Dclear_swizzle.cpp35 GrSwizzle readSwizzle = GrSwizzle::Concat(sfc->readSwizzle(), GrSwizzle{"bgra"}); in __anon9cbcb5980102()
36 GrSwizzle writeSwizzle = GrSwizzle::Concat(sfc->readSwizzle(), GrSwizzle{"bgra"}); in __anon9cbcb5980102()
/third_party/skia/src/gpu/vk/
DGrVkUniformHandler.h115 const GrSwizzle&,
119 SamplerHandle addInputSampler(const GrSwizzle& swizzle, const char* name) override;
125 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
143 GrSwizzle inputSamplerSwizzle(SamplerHandle handle) const override { in inputSamplerSwizzle()
158 SkTArray<GrSwizzle> fSamplerSwizzles;
160 GrSwizzle fInputSwizzle;
DGrVkCaps.h238 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
318 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
339 GrSwizzle fReadSwizzle;
340 GrSwizzle fWriteSwizzle;
/third_party/skia/src/gpu/glsl/
DGrGLSLUniformHandler.h102 virtual GrSwizzle samplerSwizzle(SamplerHandle) const = 0;
108 virtual GrSwizzle inputSamplerSwizzle(SamplerHandle) const { in inputSamplerSwizzle()
113 virtual SamplerHandle addSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
116 virtual SamplerHandle addInputSampler(const GrSwizzle& swizzle, const char* name) { in addInputSampler()
DGrGLSLProgramBuilder.h58 GrSwizzle samplerSwizzle(SamplerHandle handle) const { in samplerSwizzle()
66 GrSwizzle inputSamplerSwizzle(SamplerHandle handle) const { in inputSamplerSwizzle()
154 SamplerHandle emitSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
156 SamplerHandle emitInputSampler(const GrSwizzle& swizzle, const char* name);
/third_party/skia/src/gpu/gl/
DGrGLUniformHandler.h55 SamplerHandle addSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
62 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
81 SkTArray<GrSwizzle> fSamplerSwizzles;
/third_party/skia/src/gpu/d3d/
DGrD3DCaps.h95 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
145 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
161 GrSwizzle fReadSwizzle;
162 GrSwizzle fWriteSwizzle;
DGrD3DCaps.cpp383 ctInfo.fReadSwizzle = GrSwizzle("rgb1"); in initFormatTable()
404 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
405 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
413 ctInfo.fReadSwizzle = GrSwizzle("rrr1"); in initFormatTable()
497 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
498 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
556 ctInfo.fReadSwizzle = GrSwizzle("argb"); in initFormatTable()
557 ctInfo.fWriteSwizzle = GrSwizzle("gbar"); in initFormatTable()
596 ctInfo.fReadSwizzle = GrSwizzle("000r"); in initFormatTable()
597 ctInfo.fWriteSwizzle = GrSwizzle("a000"); in initFormatTable()
[all …]
/third_party/skia/src/gpu/mtl/
DGrMtlUniformHandler.h75 const GrSwizzle&,
83 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
98 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrMtlCaps.h80 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
131 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
144 GrSwizzle fReadSwizzle;
145 GrSwizzle fWriteSwizzle;
/third_party/skia/src/gpu/mock/
DGrMockCaps.h133 GrSwizzle getWriteSwizzle(const GrBackendFormat& format, GrColorType ct) const override { in getWriteSwizzle()
135 return GrSwizzle("rgba"); in getWriteSwizzle()
181 GrSwizzle onGetReadSwizzle(const GrBackendFormat& format, GrColorType ct) const override { in onGetReadSwizzle()
183 return GrSwizzle("rgba"); in onGetReadSwizzle()
/third_party/skia/tests/
DTextureOpTest.cpp90 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
96 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DBackendAllocationTest.cpp858 GrSwizzle swizzle; in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
861 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
864 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
867 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
1003 GrSwizzle swizzle; in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
1007 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
1011 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
1015 swizzle = GrSwizzle("aaaa"); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
1019 swizzle = GrSwizzle("bgra"); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
1023 swizzle = GrSwizzle("rgba"); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
DMtlBackendAllocationTest.mm142 GrSwizzle swizzle;
145 swizzle = GrSwizzle("aaaa");
148 swizzle = GrSwizzle("aaaa");
151 swizzle = GrSwizzle("aaaa");
/third_party/skia/src/gpu/ops/
DAtlasInstancedHelper.h41 const GrSwizzle& atlasSwizzle() const { return fAtlasSwizzle; } in atlasSwizzle()
94 const GrSwizzle fAtlasSwizzle;

12345