Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrGLSLShaderBuilder.cpp File Reference
#include "src/gpu/ganesh/glsl/GrGLSLShaderBuilder.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "modules/skcms/skcms.h"
#include "src/core/SkSLTypeShared.h"
#include "src/gpu/Blend.h"
#include "src/gpu/Swizzle.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrShaderVar.h"
#include "src/gpu/ganesh/glsl/GrGLSLColorSpaceXformHelper.h"
#include "src/gpu/ganesh/glsl/GrGLSLProgramBuilder.h"
#include "src/gpu/ganesh/glsl/GrGLSLProgramDataManager.h"
#include "src/sksl/SkSLGLSL.h"

Go to the source code of this file.

Functions

static void append_texture_swizzle (SkString *out, skgpu::Swizzle swizzle)
 

Function Documentation

◆ append_texture_swizzle()

static void append_texture_swizzle ( SkString out,
skgpu::Swizzle  swizzle 
)
inlinestatic

Definition at line 95 of file GrGLSLShaderBuilder.cpp.

95 {
96 if (swizzle != skgpu::Swizzle::RGBA()) {
97 out->appendf(".%s", swizzle.asString().c_str());
98 }
99}
const char * c_str() const
Definition SkString.h:133
SkString asString() const
Definition Swizzle.cpp:46
static constexpr Swizzle RGBA()
Definition Swizzle.h:66