Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SkSL::Layout Struct Reference

#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
 

Detailed Description

Represents a layout block appearing before a variable declaration, as in:

layout (location = 0) int x;

Definition at line 75 of file SkSLLayout.h.

Constructor & Destructor Documentation

◆ Layout() [1/2]

SkSL::Layout::Layout ( LayoutFlags  flags,
int  location,
int  offset,
int  binding,
int  index,
int  set,
int  builtin,
int  inputAttachmentIndex 
)
inline

Definition at line 76 of file SkSLLayout.h.

78 : fFlags(flags)
79 , fLocation(location)
81 , fBinding(binding)
82 , fIndex(index)
83 , fSet(set)
85 , fInputAttachmentIndex(inputAttachmentIndex) {}
FlutterSemanticsFlag flags
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Definition: switches.h:76
SeparatedVector2 offset
LayoutFlags fFlags
Definition: SkSLLayout.h:112
int fInputAttachmentIndex
Definition: SkSLLayout.h:125
static Layout builtin(int builtin)
Definition: SkSLLayout.h:89

◆ Layout() [2/2]

constexpr SkSL::Layout::Layout ( )
constexprdefault

Member Function Documentation

◆ builtin()

static Layout SkSL::Layout::builtin ( int  builtin)
inlinestatic

Definition at line 89 of file SkSLLayout.h.

89 {
91 result.fBuiltin = builtin;
92 return result;
93 }
GAsyncResult * result
constexpr Layout()=default

◆ checkPermittedLayout()

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.

◆ description()

std::string SkSL::Layout::description ( ) const

◆ operator!=()

bool SkSL::Layout::operator!= ( const Layout other) const
inline

Definition at line 108 of file SkSLLayout.h.

108 {
109 return !(*this == other);
110 }

◆ operator==()

bool SkSL::Layout::operator== ( const Layout other) const

◆ paddedDescription()

std::string SkSL::Layout::paddedDescription ( ) const

Member Data Documentation

◆ fBinding

int SkSL::Layout::fBinding = -1

Definition at line 115 of file SkSLLayout.h.

◆ fBuiltin

int SkSL::Layout::fBuiltin = -1

Definition at line 122 of file SkSLLayout.h.

◆ fFlags

LayoutFlags SkSL::Layout::fFlags = LayoutFlag::kNone

Definition at line 112 of file SkSLLayout.h.

◆ fIndex

int SkSL::Layout::fIndex = -1

Definition at line 118 of file SkSLLayout.h.

◆ fInputAttachmentIndex

int SkSL::Layout::fInputAttachmentIndex = -1

Definition at line 125 of file SkSLLayout.h.

◆ fLocalSizeX

int SkSL::Layout::fLocalSizeX = -1

Definition at line 128 of file SkSLLayout.h.

◆ fLocalSizeY

int SkSL::Layout::fLocalSizeY = -1

Definition at line 129 of file SkSLLayout.h.

◆ fLocalSizeZ

int SkSL::Layout::fLocalSizeZ = -1

Definition at line 130 of file SkSLLayout.h.

◆ fLocation

int SkSL::Layout::fLocation = -1

Definition at line 113 of file SkSLLayout.h.

◆ fOffset

int SkSL::Layout::fOffset = -1

Definition at line 114 of file SkSLLayout.h.

◆ fSampler

int SkSL::Layout::fSampler = -1

Definition at line 117 of file SkSLLayout.h.

◆ fSet

int SkSL::Layout::fSet = -1

Definition at line 119 of file SkSLLayout.h.

◆ fTexture

int SkSL::Layout::fTexture = -1

Definition at line 116 of file SkSLLayout.h.


The documentation for this struct was generated from the following file: