Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
GrShaderVar.cpp File Reference
#include "src/core/SkSLTypeShared.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrShaderVar.h"

Go to the source code of this file.

Functions

static const char * type_modifier_string (GrShaderVar::TypeModifier t)
 

Function Documentation

◆ type_modifier_string()

static const char * type_modifier_string ( GrShaderVar::TypeModifier  t)
static

Definition at line 12 of file GrShaderVar.cpp.

12 {
13 switch (t) {
14 case GrShaderVar::TypeModifier::None: return "";
15 case GrShaderVar::TypeModifier::In: return "in";
16 case GrShaderVar::TypeModifier::InOut: return "inout";
17 case GrShaderVar::TypeModifier::Out: return "out";
18 case GrShaderVar::TypeModifier::Uniform: return "uniform";
19 }
20 SK_ABORT("Unknown shader variable type modifier.");
21}
#define SK_ABORT(message,...)
Definition SkAssert.h:70