Package icyllis.arc3d.compiler.tree
Class Modifiers
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Modifiers
Represents a layout block and a set of modifier keywords (in, out, uniform, etc.)
appearing before a variable or interface block declaration, as in:
layout(location = 2) smooth in float2 v_TexCoord; layout(binding = 1, set = 0) uniform UniformBlock { float u_Radius; };
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.boolean
checkFlags
(Context context, int permittedFlags) boolean
checkLayoutFlags
(Context context, int permittedLayoutFlags) void
clearFlag
(int mask) void
clearLayoutFlag
(int mask) static String
describeFlag
(int flag) static String
describeFlags
(int flags) static String
describeFlags
(int flags, boolean padded) boolean
int
flags()
int
hashCode()
boolean
isBuffer()
boolean
isConst()
boolean
layout()
int
int
int
void
void
setLayoutFlag
(Context context, int mask, String name, int pos) toString()
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Field Details
-
kSmooth_Flag
public static final int kSmooth_Flag- See Also:
-
kFlat_Flag
public static final int kFlat_Flag- See Also:
-
kNoPerspective_Flag
public static final int kNoPerspective_Flag- See Also:
-
kConst_Flag
public static final int kConst_Flag- See Also:
-
kUniform_Flag
public static final int kUniform_Flag- See Also:
-
kIn_Flag
public static final int kIn_Flag- See Also:
-
kOut_Flag
public static final int kOut_Flag- See Also:
-
kCoherent_Flag
public static final int kCoherent_Flag- See Also:
-
kVolatile_Flag
public static final int kVolatile_Flag- See Also:
-
kRestrict_Flag
public static final int kRestrict_Flag- See Also:
-
kReadOnly_Flag
public static final int kReadOnly_Flag- See Also:
-
kWriteOnly_Flag
public static final int kWriteOnly_Flag- See Also:
-
kBuffer_Flag
public static final int kBuffer_Flag- See Also:
-
kWorkgroup_Flag
public static final int kWorkgroup_Flag- See Also:
-
kSubroutine_Flag
public static final int kSubroutine_Flag- See Also:
-
kPure_Flag
public static final int kPure_Flag- See Also:
-
kInline_Flag
public static final int kInline_Flag- See Also:
-
kNoInline_Flag
public static final int kNoInline_Flag- See Also:
-
kCount_Flag
public static final int kCount_Flag- See Also:
-
kInterpolation_Flags
public static final int kInterpolation_Flags- See Also:
-
kMemory_Flags
public static final int kMemory_Flags- See Also:
-
kStorage_Flags
public static final int kStorage_Flags- See Also:
-
-
Constructor Details
-
Modifiers
public Modifiers(int position)
-
-
Method Details
-
describeFlag
-
layout
-
layoutFlags
public int layoutFlags() -
setLayoutFlag
-
clearLayoutFlag
public void clearLayoutFlag(int mask) -
checkLayoutFlags
-
flags
public int flags() -
setFlag
-
clearFlag
public void clearFlag(int mask) -
checkFlags
-
isConst
public boolean isConst() -
isUniform
public boolean isUniform() -
isBuffer
public boolean isBuffer() -
layoutOffset
public int layoutOffset() -
layoutBuiltin
public int layoutBuiltin() -
accept
Description copied from class:Node
Visit this AST with a given visitor. -
hashCode
public int hashCode() -
equals
-
toString
-
describeFlags
-
describeFlags
-