Home
last modified time | relevance | path

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

123456

/external/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 …]
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()
DGrSurfaceProxyView.h22 GrSurfaceProxyView(sk_sp<GrSurfaceProxy> proxy, GrSurfaceOrigin origin, GrSwizzle swizzle) in GrSurfaceProxyView()
73 GrSwizzle swizzle() const { return fSwizzle; } in swizzle()
75 void concatSwizzle(GrSwizzle swizzle) { fSwizzle = GrSwizzle::Concat(fSwizzle, swizzle); } in concatSwizzle()
77 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) const & { in makeSwizzle()
78 return {fProxy, fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle()
81 GrSurfaceProxyView makeSwizzle(GrSwizzle swizzle) && { in makeSwizzle()
82 return {std::move(fProxy), fOrigin, GrSwizzle::Concat(fSwizzle, swizzle)}; in makeSwizzle()
130 GrSwizzle fSwizzle;
DGrDataUtils.cpp343 static GrSwizzle get_load_and_src_swizzle(GrColorType ct, SkRasterPipeline::StockStage* load, in get_load_and_src_swizzle()
345 GrSwizzle swizzle("rgba"); in get_load_and_src_swizzle()
353 case GrColorType::kARGB_4444: swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
355 case GrColorType::kBGRA_4444: swizzle = GrSwizzle("gbar"); in get_load_and_src_swizzle()
361 swizzle = GrSwizzle("bgra"); in get_load_and_src_swizzle()
381 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
384 swizzle = GrSwizzle("000r"); in get_load_and_src_swizzle()
387 swizzle = GrSwizzle("rrr1"); in get_load_and_src_swizzle()
390 swizzle = GrSwizzle("aaa1"); in get_load_and_src_swizzle()
393 swizzle = GrSwizzle("rrrg"); in get_load_and_src_swizzle()
[all …]
DGrPipeline.h72 GrSwizzle fWriteSwizzle;
82 const GrSwizzle& writeSwizzle,
91 const GrSwizzle& writeSwizzle,
202 const GrSwizzle& writeSwizzle() const { return fWriteSwizzle; } in writeSwizzle()
236 GrSwizzle fWriteSwizzle;
DGrSPIRVUniformHandler.h52 SamplerHandle addSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
55 GrSwizzle samplerSwizzle(SamplerHandle handle) const override;
68 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrGeometryProcessor.cpp61 const GrSwizzle& swizzle) { in TextureSampler()
67 const GrSwizzle& swizzle) { in reset()
DGrFragmentProcessor.cpp257 std::unique_ptr<GrFragmentProcessor> fp, const GrSwizzle& swizzle) { in SwizzleOutput()
261 const GrSwizzle& swizzle) { in SwizzleOutput()
267 const GrSwizzle& swizzle() const { return fSwizzle; } in SwizzleOutput()
274 SwizzleFragmentProcessor(std::unique_ptr<GrFragmentProcessor> fp, const GrSwizzle& swizzle) in SwizzleOutput()
287 const GrSwizzle& swizzle = sfp.swizzle(); in SwizzleOutput()
310 GrSwizzle fSwizzle; in SwizzleOutput()
318 if (GrSwizzle::RGBA() == swizzle) { in SwizzleOutput()
/external/skqp/src/gpu/
DGrSwizzle.h17 class GrSwizzle {
19 constexpr GrSwizzle() : GrSwizzle("rgba") {} in GrSwizzle() function
21 constexpr GrSwizzle(const GrSwizzle& that) in GrSwizzle() function
25 constexpr GrSwizzle& operator=(const GrSwizzle& that) {
45 constexpr bool operator==(const GrSwizzle& that) const { return fKey == that.fKey; }
46 constexpr bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
78 static constexpr GrSwizzle RGBA() { return GrSwizzle("rgba"); } in RGBA()
79 static constexpr GrSwizzle AAAA() { return GrSwizzle("aaaa"); } in AAAA()
80 static constexpr GrSwizzle RRRR() { return GrSwizzle("rrrr"); } in RRRR()
81 static constexpr GrSwizzle RRRA() { return GrSwizzle("rrra"); } in RRRA()
[all …]
DGrShaderCaps.h222 const GrSwizzle& configTextureSwizzle(GrPixelConfig config) const { in configTextureSwizzle()
227 const GrSwizzle& configOutputSwizzle(GrPixelConfig config) const { in configOutputSwizzle()
302 GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt];
303 GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt];
/external/skia/gm/
Dclear_swizzle.cpp24 GrSwizzle readSwizzle = GrSwizzle::Concat(rtCtx->readSwizzle(), GrSwizzle{"bgra"}); in __anon219885010102()
25 GrSwizzle writeSwizzle = GrSwizzle::Concat(rtCtx->readSwizzle(), GrSwizzle{"bgra"}); in __anon219885010102()
/external/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()
DGrDawnCaps.h47 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
75 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
/external/skia/src/gpu/vk/
DGrVkUniformHandler.h118 const GrSwizzle&,
122 SamplerHandle addInputSampler(const GrSwizzle& swizzle, const char* name) override;
128 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
146 GrSwizzle inputSamplerSwizzle(SamplerHandle handle) const override { in inputSamplerSwizzle()
161 SkTArray<GrSwizzle> fSamplerSwizzles;
163 GrSwizzle fInputSwizzle;
/external/skia/src/gpu/glsl/
DGrGLSLUniformHandler.h109 virtual GrSwizzle samplerSwizzle(SamplerHandle) const = 0;
115 virtual GrSwizzle inputSamplerSwizzle(SamplerHandle) const { in inputSamplerSwizzle()
120 virtual SamplerHandle addSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
123 virtual SamplerHandle addInputSampler(const GrSwizzle& swizzle, const char* name) { in addInputSampler()
DGrGLSLProgramBuilder.h62 GrSwizzle samplerSwizzle(SamplerHandle handle) const { in samplerSwizzle()
70 GrSwizzle inputSamplerSwizzle(SamplerHandle handle) const { in inputSamplerSwizzle()
156 SamplerHandle emitSampler(const GrBackendFormat&, GrSamplerState, const GrSwizzle&,
158 SamplerHandle emitInputSampler(const GrSwizzle& swizzle, const char* name);
DGrGLSLXferProcessor.h40 const GrSwizzle& writeSwizzle) in EmitArgs()
64 GrSwizzle fWriteSwizzle;
117 const GrSwizzle&,
DGrGLSLProgramBuilder.cpp183 GrSwizzle swizzle = te->view().swizzle(); in emitFragProc()
239 const GrSwizzle& swizzle = dstView.swizzle(); in emitAndInstallXferProc()
248 const GrSwizzle& swizzle = dstView.swizzle(); in emitAndInstallXferProc()
279 const GrBackendFormat& backendFormat, GrSamplerState state, const GrSwizzle& swizzle, in emitSampler()
286 GrGLSLProgramBuilder::SamplerHandle GrGLSLProgramBuilder::emitInputSampler(const GrSwizzle& swizzle, in emitInputSampler()
/external/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;
/external/skia/src/gpu/mtl/
DGrMtlUniformHandler.h74 const GrSwizzle&,
82 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
97 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrMtlCaps.h90 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
125 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
138 GrSwizzle fReadSwizzle;
139 GrSwizzle fWriteSwizzle;
/external/skia/src/gpu/d3d/
DGrD3DCaps.h94 GrSwizzle getWriteSwizzle(const GrBackendFormat&, GrColorType) const override;
141 GrSwizzle onGetReadSwizzle(const GrBackendFormat&, GrColorType) const override;
157 GrSwizzle fReadSwizzle;
158 GrSwizzle fWriteSwizzle;
/external/skia/src/gpu/mock/
DGrMockCaps.h146 GrSwizzle getWriteSwizzle(const GrBackendFormat& format, GrColorType ct) const override { in getWriteSwizzle()
148 return GrSwizzle("rgba"); in getWriteSwizzle()
194 GrSwizzle onGetReadSwizzle(const GrBackendFormat& format, GrColorType ct) const override { in onGetReadSwizzle()
196 return GrSwizzle("rgba"); in onGetReadSwizzle()
/external/skia/tests/
DTextureOpTest.cpp88 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
91 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
94 GrSwizzle::RGBA()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/gpu/gl/
DGrGLUniformHandler.h49 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
68 SkTArray<GrSwizzle> fSamplerSwizzles;

123456