Interface GlslTypeQualifier
- All Known Implementing Classes:
GlslTypeQualifier.Interpolation,GlslTypeQualifier.Invariant,GlslTypeQualifier.Layout,GlslTypeQualifier.Precise,GlslTypeQualifier.Precision,GlslTypeQualifier.StorageSubroutine,GlslTypeQualifier.StorageType
public sealed interface GlslTypeQualifier
permits GlslTypeQualifier.StorageType, GlslTypeQualifier.Precision, GlslTypeQualifier.Interpolation, GlslTypeQualifier.Layout, GlslTypeQualifier.StorageSubroutine, GlslTypeQualifier.Invariant, GlslTypeQualifier.Precise
An immutable representation of data types.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic final recordType qualifier forlayout(location = 0, ...).static final recordstatic enumstatic enumstatic final recordA storage qualifier for a subroutine operand.static enum -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic GlslTypeQualifier.Layoutlayout(GlslTypeQualifier.LayoutId... ids) Creates a new layout with the specified layout ids.static GlslTypeQualifier.LayoutCreates a new layout with the specified layout ids.static GlslTypeQualifier.LayoutIdCreates a new layout id.static GlslTypeQualifier
-
Method Details
-
storage
-
layout
Creates a new layout with the specified layout ids.- Parameters:
ids- The ids to hold in the layout- Returns:
- A new layout
-
layout
Creates a new layout with the specified layout ids.- Parameters:
ids- The ids to hold in the layout- Returns:
- A new layout
-
layoutId
static GlslTypeQualifier.LayoutId layoutId(String identifier, @Nullable @Nullable GlslNode constantExpression) Creates a new layout id.- Parameters:
identifier- The name of the layout idconstantExpression- The optional expression to assign it to ornull- Returns:
- A new layout id
-