Home
last modified time | relevance | path

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

/external/skia/include/private/
DGrSwizzle.h17 class GrSwizzle {
36 constexpr GrSwizzle(const char c[4]) in GrSwizzle() function
45 GrSwizzle() { *this = RGBA(); } in GrSwizzle() function
47 GrSwizzle(const GrSwizzle& that) { *this = that; } in GrSwizzle() function
49 GrSwizzle& operator=(const GrSwizzle& that) {
50 memcpy(this, &that, sizeof(GrSwizzle));
64 bool operator==(const GrSwizzle& that) const { return this->asUInt() == that.asUInt(); }
66 bool operator!=(const GrSwizzle& that) const { return !(*this == that); }
112 static GrSwizzle RGBA() { return GrSwizzle("rgba"); } in RGBA()
113 static GrSwizzle AAAA() { return GrSwizzle("aaaa"); } in AAAA()
[all …]
/external/skia/include/gpu/
DGrShaderCaps.h243 const GrSwizzle& configTextureSwizzle(GrPixelConfig config) const { in configTextureSwizzle()
248 const GrSwizzle& configOutputSwizzle(GrPixelConfig config) const { in configOutputSwizzle()
328 GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt];
329 GrSwizzle fConfigOutputSwizzle[kGrPixelConfigCnt];
DGrContext.h40 class GrSwizzle; variable
/external/skia/src/gpu/gl/
DGrGLUniformHandler.h44 SamplerHandle addSampler(uint32_t visibility, GrSwizzle, GrSLType, GrSLPrecision,
51 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
85 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrGLCaps.cpp1582 fConfigTable[kUnknown_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1606 fConfigTable[kRGBA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1661 fConfigTable[kBGRA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1736 fConfigTable[kSRGBA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1756 fConfigTable[kSBGRA_8888_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1813 fConfigTable[kRGB_565_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1832 fConfigTable[kRGBA_4444_GrPixelConfig].fSwizzle = GrSwizzle::RGBA(); in initConfigTable()
1842 fConfigTable[kAlpha_8_GrPixelConfig].fSwizzle = GrSwizzle::RRRR(); in initConfigTable()
1852 fConfigTable[kAlpha_8_GrPixelConfig].fSwizzle = GrSwizzle::AAAA(); in initConfigTable()
1871 fConfigTable[kGray_8_GrPixelConfig].fSwizzle = GrSwizzle::RRRA(); in initConfigTable()
[all …]
DGrGLGpu.h29 class GrSwizzle; variable
283 void flushBlend(const GrXferProcessor::BlendInfo& blendInfo, const GrSwizzle&);
585 fSwizzle(GrSwizzle::RGBA()) {} in BufferTexture()
591 GrSwizzle fSwizzle;
DGrGLCaps.h144 const GrSwizzle& configSwizzle(GrPixelConfig config) const { in configSwizzle()
552 GrSwizzle fSwizzle;
DGrGLGpu.cpp708 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetWritePixelsInfo()
726 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
732 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
740 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
1817 const GrSwizzle& swizzle = this->caps()->shaderCaps()->configOutputSwizzle( in flushGLState()
2162 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetReadPixelsInfo()
2185 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2195 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2206 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
2216 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetReadPixelsInfo()
[all …]
DGrGLUniformHandler.cpp55 GrSwizzle swizzle, in addSampler()
/external/skia/src/gpu/vk/
DGrVkCaps.cpp211 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); in initShaderCaps()
212 shaderCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); in initShaderCaps()
215 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRA(); in initShaderCaps()
221 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::BGRA(); in initShaderCaps()
222 shaderCaps->fConfigOutputSwizzle[i] = GrSwizzle::BGRA(); in initShaderCaps()
224 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA(); in initShaderCaps()
DGrVkUniformHandler.h64 GrSwizzle swizzle,
73 GrSwizzle samplerSwizzle(SamplerHandle handle) const override { in samplerSwizzle()
117 SkTArray<GrSwizzle> fSamplerSwizzles;
DGrVkUniformHandler.cpp199 GrSwizzle swizzle, in addSampler()
DGrVkGpu.cpp338 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetWritePixelsInfo()
369 tempDrawInfo->fSwizzle = GrSwizzle::BGRA(); in onGetWritePixelsInfo()
1767 tempDrawInfo->fSwizzle = GrSwizzle::RGBA(); in onGetReadPixelsInfo()
DGrVkPipeline.cpp544 const GrSwizzle& swizzle = gpu->caps()->shaderCaps()->configOutputSwizzle(pixelConfig); in SetDynamicBlendConstantState()
/external/skia/src/gpu/
DGrFragmentProcessor.cpp230 const GrSwizzle& swizzle) { in SwizzleOutput()
233 static sk_sp<GrFragmentProcessor> Make(const GrSwizzle& swizzle) { in SwizzleOutput()
238 const GrSwizzle& swizzle() const { return fSwizzle; } in SwizzleOutput()
241 SwizzleFragmentProcessor(const GrSwizzle& swizzle) in SwizzleOutput()
252 const GrSwizzle& swizzle = sfp.swizzle(); in SwizzleOutput()
275 GrSwizzle fSwizzle; in SwizzleOutput()
283 if (GrSwizzle::RGBA() == swizzle) { in SwizzleOutput()
DGrFragmentProcessor.h19 class GrSwizzle; variable
75 static sk_sp<GrFragmentProcessor> SwizzleOutput(sk_sp<GrFragmentProcessor>, const GrSwizzle&);
DGrGpu.h172 GrSwizzle fSwizzle;
221 GrSwizzle fSwizzle;
/external/skia/src/gpu/glsl/
DGrGLSLUniformHandler.h67 virtual GrSwizzle samplerSwizzle(SamplerHandle) const = 0;
69 virtual SamplerHandle addSampler(uint32_t visibility, GrSwizzle, GrSLType, GrSLPrecision,
DGrGLSLShaderBuilder.cpp64 static inline void append_texture_swizzle(SkString* out, GrSwizzle swizzle) { in append_texture_swizzle()
65 if (swizzle != GrSwizzle::RGBA()) { in append_texture_swizzle()
DGrGLSLProgramBuilder.cpp326 GrSwizzle swizzle = this->shaderCaps()->configTextureSwizzle(config); in emitSampler()
357 GrSwizzle swizzle; in emitFSOutputSwizzle()
359 if (swizzle != GrSwizzle::RGBA()) { in emitFSOutputSwizzle()
DGrGLSLProgramBuilder.h53 GrSwizzle samplerSwizzle(SamplerHandle handle) const { in samplerSwizzle()
/external/skia/gn/
Dgpu.gni42 "$_include/private/GrSwizzle.h",