Flutter Engine
The Flutter Engine
|
#include <SkSLLayout.h>
Public Member Functions | |
Layout (LayoutFlags flags, int location, int offset, int binding, int index, int set, int builtin, int inputAttachmentIndex) | |
constexpr | Layout ()=default |
std::string | description () const |
std::string | paddedDescription () const |
bool | checkPermittedLayout (const Context &context, Position pos, LayoutFlags permittedLayoutFlags) const |
bool | operator== (const Layout &other) const |
bool | operator!= (const Layout &other) const |
Static Public Member Functions | |
static Layout | builtin (int builtin) |
Public Attributes | |
LayoutFlags | fFlags = LayoutFlag::kNone |
int | fLocation = -1 |
int | fOffset = -1 |
int | fBinding = -1 |
int | fTexture = -1 |
int | fSampler = -1 |
int | fIndex = -1 |
int | fSet = -1 |
int | fBuiltin = -1 |
int | fInputAttachmentIndex = -1 |
int | fLocalSizeX = -1 |
int | fLocalSizeY = -1 |
int | fLocalSizeZ = -1 |
Represents a layout block appearing before a variable declaration, as in:
layout (location = 0) int x;
Definition at line 75 of file SkSLLayout.h.
|
inline |
Definition at line 76 of file SkSLLayout.h.
|
constexprdefault |
Definition at line 89 of file SkSLLayout.h.
bool SkSL::Layout::checkPermittedLayout | ( | const Context & | context, |
Position | pos, | ||
LayoutFlags | permittedLayoutFlags | ||
) | const |
Verifies that only permitted layout flags are included. Reports errors and returns false in the event of a violation.
std::string SkSL::Layout::description | ( | ) | const |
|
inline |
Definition at line 108 of file SkSLLayout.h.
bool SkSL::Layout::operator== | ( | const Layout & | other | ) | const |
std::string SkSL::Layout::paddedDescription | ( | ) | const |
int SkSL::Layout::fBinding = -1 |
Definition at line 115 of file SkSLLayout.h.
int SkSL::Layout::fBuiltin = -1 |
Definition at line 122 of file SkSLLayout.h.
LayoutFlags SkSL::Layout::fFlags = LayoutFlag::kNone |
Definition at line 112 of file SkSLLayout.h.
int SkSL::Layout::fIndex = -1 |
Definition at line 118 of file SkSLLayout.h.
int SkSL::Layout::fInputAttachmentIndex = -1 |
Definition at line 125 of file SkSLLayout.h.
int SkSL::Layout::fLocalSizeX = -1 |
Definition at line 128 of file SkSLLayout.h.
int SkSL::Layout::fLocalSizeY = -1 |
Definition at line 129 of file SkSLLayout.h.
int SkSL::Layout::fLocalSizeZ = -1 |
Definition at line 130 of file SkSLLayout.h.
int SkSL::Layout::fLocation = -1 |
Definition at line 113 of file SkSLLayout.h.
int SkSL::Layout::fOffset = -1 |
Definition at line 114 of file SkSLLayout.h.
int SkSL::Layout::fSampler = -1 |
Definition at line 117 of file SkSLLayout.h.
int SkSL::Layout::fSet = -1 |
Definition at line 119 of file SkSLLayout.h.
int SkSL::Layout::fTexture = -1 |
Definition at line 116 of file SkSLLayout.h.