|
| enum | SearchFlags : UInt32 { SearchLValue = (1 << 0)
, SearchRValue = (1 << 1)
, SearchAll = (~0u)
} |
| |
| enum class | AssignOp {
Undefined
, Set
, Add
, Sub
,
Mul
, Div
, Mod
, LShift
,
RShift
, Or
, And
, Xor
} |
| |
| enum class | BinaryOp {
Undefined
, LogicalAnd
, LogicalOr
, Or
,
Xor
, And
, LShift
, RShift
,
Add
, Sub
, Mul
, Div
,
Mod
, Equal
, NotEqual
, Less
,
Greater
, LessEqual
, GreaterEqual
} |
| |
| enum class | UnaryOp {
Undefined
, LogicalNot
, Not
, Nop
,
Negate
, Inc
, Dec
} |
| |
| enum class | CtrlTransfer { Undefined
, Break
, Continue
, Discard
} |
| |
| enum class | DataType {
Undefined
, String
, Bool
, Int
,
UInt
, Half
, Float
, Double
,
Bool2
, Bool3
, Bool4
, Int2
,
Int3
, Int4
, UInt2
, UInt3
,
UInt4
, Half2
, Half3
, Half4
,
Float2
, Float3
, Float4
, Double2
,
Double3
, Double4
, Bool2x2
, Bool2x3
,
Bool2x4
, Bool3x2
, Bool3x3
, Bool3x4
,
Bool4x2
, Bool4x3
, Bool4x4
, Int2x2
,
Int2x3
, Int2x4
, Int3x2
, Int3x3
,
Int3x4
, Int4x2
, Int4x3
, Int4x4
,
UInt2x2
, UInt2x3
, UInt2x4
, UInt3x2
,
UInt3x3
, UInt3x4
, UInt4x2
, UInt4x3
,
UInt4x4
, Half2x2
, Half2x3
, Half2x4
,
Half3x2
, Half3x3
, Half3x4
, Half4x2
,
Half4x3
, Half4x4
, Float2x2
, Float2x3
,
Float2x4
, Float3x2
, Float3x3
, Float3x4
,
Float4x2
, Float4x3
, Float4x4
, Double2x2
,
Double2x3
, Double2x4
, Double3x2
, Double3x3
,
Double3x4
, Double4x2
, Double4x3
, Double4x4
} |
| |
| enum class | PrimitiveType {
Undefined
, Point
, Line
, LineAdj
,
Triangle
, TriangleAdj
} |
| |
| enum class | StorageClass {
Undefined
, Extern
, Precise
, Shared
,
GroupShared
, Static
, Volatile
} |
| |
| enum class | InterpModifier {
Undefined
, Centroid
, Linear
, NoInterpolation
,
NoPerspective
, Sample
} |
| |
| enum class | TypeModifier {
Undefined
, Const
, RowMajor
, ColumnMajor
,
SNorm
, UNorm
} |
| |
| enum class | UniformBufferType { Undefined
, ConstantBuffer
, TextureBuffer
} |
| |
| enum class | BufferType {
Undefined
, Buffer
, StructuredBuffer
, ByteAddressBuffer
,
RWBuffer
, RWStructuredBuffer
, RWByteAddressBuffer
, AppendStructuredBuffer
,
ConsumeStructuredBuffer
, RWTexture1D
, RWTexture1DArray
, RWTexture2D
,
RWTexture2DArray
, RWTexture3D
, Texture1D
, Texture1DArray
,
Texture2D
, Texture2DArray
, Texture3D
, TextureCube
,
TextureCubeArray
, Texture2DMS
, Texture2DMSArray
, GenericTexture
,
InputPatch
, OutputPatch
, PointStream
, LineStream
,
TriangleStream
, GenericBuffer
} |
| |
| enum class | SamplerType {
Undefined
, Sampler1D
, Sampler2D
, Sampler3D
,
SamplerCube
, Sampler2DRect
, Sampler1DArray
, Sampler2DArray
,
SamplerCubeArray
, SamplerBuffer
, Sampler2DMS
, Sampler2DMSArray
,
Sampler1DShadow
, Sampler2DShadow
, SamplerCubeShadow
, Sampler2DRectShadow
,
Sampler1DArrayShadow
, Sampler2DArrayShadow
, SamplerCubeArrayShadow
, SamplerState
,
SamplerComparisonState
} |
| |
| enum class | ImageLayoutFormat {
Undefined
, F32X4
, F32X2
, F32X1
,
F16X4
, F16X2
, F16X1
, F11R11G10B
,
UN32X4
, UN16X2
, UN16X1
, UN10R10G10B2A
,
UN8X4
, UN8X2
, UN8X1
, SN16X4
,
SN16X2
, SN16X1
, SN8X4
, SN8X2
,
SN8X1
, I32X4
, I32X2
, I32X1
,
I16X4
, I16X2
, I16X1
, I8X4
,
I8X2
, I8X1
, UI32X4
, UI32X2
,
UI32X1
, UI16X4
, UI16X2
, UI16X1
,
UI10R10G10B2A
, UI8X4
, UI8X2
, UI8X1
} |
| |
| enum class | RegisterType {
Undefined
, ConstantBuffer
, TextureBuffer
, BufferOffset
,
Sampler
, UnorderedAccessView
} |
| |
| enum class | AttributeType {
Undefined
, Branch
, Call
, Flatten
,
IfAll
, IfAny
, Isolate
, Loop
,
MaxExports
, MaxInstructionCount
, MaxTempReg
, NoExpressionOptimizations
,
Predicate
, PredicateBlock
, ReduceTempRegUsage
, RemoveUnusedInputs
,
SampReg
, Unroll
, Unused
, Xps
,
Domain
, EarlyDepthStencil
, Instance
, MaxTessFactor
,
MaxVertexCount
, NumThreads
, OutputControlPoints
, OutputTopology
,
Partitioning
, PatchSize
, PatchConstantFunc
, Align
,
Binding
, CW
, CCW
, ColumnMajor
,
Component
, DepthAny
, DepthGreater
, DepthLess
,
DepthUnchanged
, EarlyFragmentTests
, EqualSpacing
, FractionalEvenSpacing
,
FractionalOddSpacing
, Index
, Invocations
, Isolines
,
Lines
, LinesAdjacency
, LineStrip
, LocalSizeX
,
LocalSizeY
, LocalSizeZ
, Location
, MaxVertices
,
OriginUpperLeft
, Offset
, Packed
, PixelCenterInteger
,
Points
, PointMode
, Quads
, RowMajor
,
Shared
, Std140
, Std430
, Stream
,
Triangles
, TrianglesAdjacency
, TriangleStrip
, Vertices
,
XfbBuffer
, XfbOffset
, XfbStride
, Set
,
Space
, Layout
} |
| |
| enum class | AttributeValue {
Undefined
, DomainTri
, DomainQuad
, DomainIsoline
,
OutputTopologyPoint
, OutputTopologyLine
, OutputTopologyTriangleCW
, OutputTopologyTriangleCCW
,
PartitioningInteger
, PartitioningPow2
, PartitioningFractionalEven
, PartitioningFractionalOdd
} |
| |
| enum class | Intrinsic {
Undefined
, Abort
, Abs
, ACos
,
All
, AllMemoryBarrier
, AllMemoryBarrierWithGroupSync
, Any
,
AsDouble
, AsFloat
, ASin
, AsInt
,
AsUInt1
, AsUInt3
, ATan
, ATan2
,
Ceil
, CheckAccessFullyMapped
, Clamp
, Clip
,
Cos
, CosH
, CountBits
, Cross
,
D3DCOLORtoUBYTE4
, DDX
, DDXCoarse
, DDXFine
,
DDY
, DDYCoarse
, DDYFine
, Degrees
,
Determinant
, DeviceMemoryBarrier
, DeviceMemoryBarrierWithGroupSync
, Distance
,
Dot
, Dst
, Equal
, ErrorF
,
EvaluateAttributeAtCentroid
, EvaluateAttributeAtSample
, EvaluateAttributeSnapped
, Exp
,
Exp2
, F16toF32
, F32toF16
, FaceForward
,
FirstBitHigh
, FirstBitLow
, Floor
, FMA
,
FMod
, Frac
, FrExp
, FWidth
,
GetRenderTargetSampleCount
, GetRenderTargetSamplePosition
, GreaterThan
, GreaterThanEqual
,
GroupMemoryBarrier
, GroupMemoryBarrierWithGroupSync
, InterlockedAdd
, InterlockedAnd
,
InterlockedCompareExchange
, InterlockedCompareStore
, InterlockedExchange
, InterlockedMax
,
InterlockedMin
, InterlockedOr
, InterlockedXor
, IsFinite
,
IsInf
, IsNaN
, LdExp
, Length
,
Lerp
, LessThan
, LessThanEqual
, Lit
,
Log
, Log10
, Log2
, MAD
,
Max
, Min
, ModF
, MSAD4
,
Mul
, Normalize
, NotEqual
, Not
,
Pow
, PrintF
, Process2DQuadTessFactorsAvg
, Process2DQuadTessFactorsMax
,
Process2DQuadTessFactorsMin
, ProcessIsolineTessFactors
, ProcessQuadTessFactorsAvg
, ProcessQuadTessFactorsMax
,
ProcessQuadTessFactorsMin
, ProcessTriTessFactorsAvg
, ProcessTriTessFactorsMax
, ProcessTriTessFactorsMin
,
Radians
, Rcp
, Reflect
, Refract
,
ReverseBits
, Round
, RSqrt
, Saturate
,
Sign
, Sin
, SinCos
, SinH
,
SmoothStep
, Sqrt
, Step
, Tan
,
TanH
, Transpose
, Trunc
, Tex1D2
,
Tex1D4
, Tex1DBias
, Tex1DGrad
, Tex1DLod
,
Tex1DProj
, Tex2D2
, Tex2D4
, Tex2DBias
,
Tex2DGrad
, Tex2DLod
, Tex2DProj
, Tex3D2
,
Tex3D4
, Tex3DBias
, Tex3DGrad
, Tex3DLod
,
Tex3DProj
, TexCube2
, TexCube4
, TexCubeBias
,
TexCubeGrad
, TexCubeLod
, TexCubeProj
, TextureGetDimensions
,
TextureQueryLod
, TextureQueryLodUnclamped
, TextureLoad1
, TextureLoad2
,
TextureLoad3
, TextureSample2
, TextureSample3
, TextureSample4
,
TextureSample5
, TextureSampleBias3
, TextureSampleBias4
, TextureSampleBias5
,
TextureSampleBias6
, TextureSampleCmp3
, TextureSampleCmp4
, TextureSampleCmp5
,
TextureSampleCmp6
, TextureSampleCmpLevelZero3
, TextureSampleCmpLevelZero4
, TextureSampleCmpLevelZero5
,
TextureSampleGrad4
, TextureSampleGrad5
, TextureSampleGrad6
, TextureSampleGrad7
,
TextureSampleLevel3
, TextureSampleLevel4
, TextureSampleLevel5
, TextureGather2
,
TextureGatherRed2
, TextureGatherGreen2
, TextureGatherBlue2
, TextureGatherAlpha2
,
TextureGather3
, TextureGather4
, TextureGatherRed3
, TextureGatherRed4
,
TextureGatherGreen3
, TextureGatherGreen4
, TextureGatherBlue3
, TextureGatherBlue4
,
TextureGatherAlpha3
, TextureGatherAlpha4
, TextureGatherRed6
, TextureGatherRed7
,
TextureGatherGreen6
, TextureGatherGreen7
, TextureGatherBlue6
, TextureGatherBlue7
,
TextureGatherAlpha6
, TextureGatherAlpha7
, TextureGatherCmp3
, TextureGatherCmpRed3
,
TextureGatherCmpGreen3
, TextureGatherCmpBlue3
, TextureGatherCmpAlpha3
, TextureGatherCmp4
,
TextureGatherCmp5
, TextureGatherCmpRed4
, TextureGatherCmpRed5
, TextureGatherCmpGreen4
,
TextureGatherCmpGreen5
, TextureGatherCmpBlue4
, TextureGatherCmpBlue5
, TextureGatherCmpAlpha4
,
TextureGatherCmpAlpha5
, TextureGatherCmpRed7
, TextureGatherCmpRed8
, TextureGatherCmpGreen7
,
TextureGatherCmpGreen8
, TextureGatherCmpBlue7
, TextureGatherCmpBlue8
, TextureGatherCmpAlpha7
,
TextureGatherCmpAlpha8
, StreamOutputAppend
, StreamOutputRestartStrip
, ImageLoad
,
ImageStore
, ImageAtomicAdd
, ImageAtomicAnd
, ImageAtomicOr
,
ImageAtomicXor
, ImageAtomicMin
, ImageAtomicMax
, ImageAtomicCompSwap
,
ImageAtomicExchange
, PackHalf2x16
} |
| | Intrinsics function enumeration (currently only HLSL intrinsics). More...
|
| |
| enum class | Semantic {
Undefined
, UserDefined
, ClipDistance
, CullDistance
,
Coverage
, Depth
, DepthGreaterEqual
, DepthLessEqual
,
DispatchThreadID
, DomainLocation
, FragCoord
, GroupID
,
GroupIndex
, GroupThreadID
, GSInstanceID
, InnerCoverage
,
InsideTessFactor
, InstanceID
, IsFrontFace
, OutputControlPointID
,
PointSize
, PrimitiveID
, RenderTargetArrayIndex
, SampleIndex
,
StencilRef
, Target
, TessFactor
, VertexID
,
VertexPosition
, ViewportArrayIndex
} |
| |
| enum class | ReportTypes { Info
, Warning
, Error
} |
| | Report types enumeration. More...
|
| |
| enum class | ShaderTarget {
Undefined
, VertexShader
, TessellationControlShader
, TessellationEvaluationShader
,
GeometryShader
, FragmentShader
, ComputeShader
} |
| | Shader target enumeration. More...
|
| |
| enum class | InputShaderVersion {
Cg = 2
, HLSL3 = 3
, HLSL4 = 4
, HLSL5 = 5
,
HLSL6 = 6
, GLSL = 0x0000ffff
, ESSL = 0x0001ffff
, VKSL = 0x0002ffff
} |
| | Input shader version enumeration. More...
|
| |
| enum class | OutputShaderVersion {
GLSL110 = 110
, GLSL120 = 120
, GLSL130 = 130
, GLSL140 = 140
,
GLSL150 = 150
, GLSL330 = 330
, GLSL400 = 400
, GLSL410 = 410
,
GLSL420 = 420
, GLSL430 = 430
, GLSL440 = 440
, GLSL450 = 450
,
GLSL460 = 460
, GLSL = 0x0000ffff
, ESSL100 = (0x00010000 + 100)
, ESSL300 = (0x00010000 + 300)
,
ESSL310 = (0x00010000 + 310)
, ESSL320 = (0x00010000 + 320)
, ESSL = 0x0001ffff
, VKSL450 = (0x00020000 + 450)
,
VKSL = 0x0002ffff
} |
| | Output shader version enumeration. More...
|
| |
|
| bool | isDeclarationAST (const AST::Types t) |
| |
| bool | isExpressionAST (const AST::Types t) |
| |
| bool | isStatementAST (const AST::Types t) |
| |
| bool | isDeclarationStatementAST (const AST::Types t) |
| |
| String | assignOpToString (const AssignOp o) |
| |
| AssignOp | stringToAssignOp (const String &s) |
| |
| bool | isBitwiseOp (const AssignOp o) |
| |
| String | binaryOpToString (const BinaryOp o) |
| |
| BinaryOp | stringToBinaryOp (const String &s) |
| |
| BinaryOp | assignOpToBinaryOp (const AssignOp op) |
| |
| bool | isLogicalOp (const BinaryOp o) |
| |
| bool | isBitwiseOp (const BinaryOp o) |
| |
| bool | isCompareOp (const BinaryOp o) |
| |
| bool | isBooleanOp (const BinaryOp o) |
| |
| String | unaryOpToString (const UnaryOp o) |
| |
| UnaryOp | stringToUnaryOp (const String &s) |
| |
| bool | isLogicalOp (const UnaryOp o) |
| |
| bool | isBitwiseOp (const UnaryOp o) |
| |
| bool | isLValueOp (const UnaryOp o) |
| |
| String | ctrlTransformToString (const CtrlTransfer ct) |
| |
| CtrlTransfer | stringToCtrlTransfer (const String &s) |
| |
| String | dataTypeToString (const DataType t, bool useTemplateSyntax=false) |
| |
| UInt32 | dataTypeSize (const DataType t) |
| |
| bool | isScalarType (const DataType t) |
| |
| bool | isVectorType (const DataType t) |
| |
| bool | isMatrixType (const DataType t) |
| |
| bool | isBooleanType (const DataType t) |
| |
| bool | isRealType (const DataType t) |
| |
| bool | isHalfRealType (const DataType t) |
| |
| bool | isSingleRealType (const DataType t) |
| |
| bool | isDoubleRealType (const DataType t) |
| |
| bool | isIntegralType (const DataType t) |
| |
| bool | isIntType (const DataType t) |
| |
| bool | isUIntType (const DataType t) |
| |
| Int32 | vectorTypeDim (const DataType t) |
| | Returns the dimension of the specified data type interpreted as vector type.
|
| |
| Pair< int, int > | matrixTypeDim (const DataType t) |
| | Returns the dimensions MxN of the specified data type interpreted as matrix type.
|
| |
| DataType | baseDataType (const DataType t) |
| |
| DataType | vectorDataType (const DataType baseDataType, Int32 vectorSize) |
| |
| DataType | matrixDataType (const DataType baseDataType, Int32 rows, Int32 columns) |
| |
| DataType | subscriptDataType (const DataType dataType, const String &subscript, Vector< Pair< int, int > > *indices=nullptr) |
| |
| DataType | tokenToDataType (const Token &token) |
| |
| DataType | doubleToFloatDataType (const DataType dataType) |
| |
| UInt32 | remainingVectorSize (UInt32 vectorSize, UInt32 alignment=16u) |
| |
| bool | accumulateAlignedVectorSize (const DataType dataType, UInt32 &size, UInt32 &padding, UInt32 *offset=nullptr) |
| |
| String | bufferTypeToString (const BufferType t) |
| |
| bool | isStorageBufferType (const BufferType t) |
| |
| bool | isRwBufferType (const BufferType t) |
| |
| bool | isTextureBufferType (const BufferType t) |
| |
| bool | isTextureMsBufferType (const BufferType t) |
| |
| bool | isImageBufferType (const BufferType t) |
| |
| bool | isRwImageBufferType (const BufferType t) |
| |
| bool | isPatchBufferType (const BufferType t) |
| |
| bool | isStreamBufferType (const BufferType t) |
| |
| Int32 | getBufferTypeTextureDim (const BufferType t) |
| |
| bool | isSamplerStateType (const SamplerType t) |
| |
| bool | isSamplerTypeShadow (const SamplerType t) |
| |
| bool | isSamplerTypeArray (const SamplerType t) |
| |
| Int32 | getSamplerTypeTextureDim (const SamplerType t) |
| |
| SamplerType | textureTypeToSamplerType (const BufferType t) |
| |
| SamplerType | samplerTypeToShadowSamplerType (const SamplerType t) |
| |
| DataType | getImageLayoutFormatBaseType (const ImageLayoutFormat format) |
| |
| ImageLayoutFormat | dataTypeToImageLayoutFormat (const DataType t) |
| |
| RegisterType | charToRegisterType (char c) |
| |
| char | registerTypeToChar (const RegisterType t) |
| |
| String | registerTypeToString (const RegisterType t) |
| |
| bool | isShaderModel3AttributeType (const AttributeType t) |
| |
| bool | isShaderModel5AttributeType (const AttributeType t) |
| |
| bool | isHLSLAttributeType (const AttributeType t) |
| |
| bool | isGLSLAttributeType (const AttributeType t) |
| |
| bool | isExtAttributeType (const AttributeType t) |
| |
| bool | isAttributeValueDomain (const AttributeValue t) |
| |
| bool | isAttributeValueOutputTopology (const AttributeValue t) |
| |
| bool | isAttributeValuePartitioning (const AttributeValue t) |
| |
| bool | isAttributeValueTrianglePartitioning (const AttributeValue t) |
| |
| bool | isGlobalIntrinsic (const Intrinsic t) |
| |
| bool | isTextureIntrinsic (const Intrinsic t) |
| |
| bool | isTextureGatherIntrisic (const Intrinsic t) |
| |
| bool | isTextureSampleIntrinsic (const Intrinsic t) |
| |
| bool | isTextureCompareIntrinsic (const Intrinsic t) |
| |
| bool | isTextureCompareLevelZeroIntrinsic (const Intrinsic t) |
| |
| bool | isTextureLoadIntrinsic (const Intrinsic t) |
| |
| bool | isStreamOutputIntrinsic (const Intrinsic t) |
| |
| bool | isImageIntrinsic (const Intrinsic t) |
| |
| bool | isInterlockedIntristic (const Intrinsic t) |
| |
| Intrinsic | compareOpToIntrinsic (const BinaryOp op) |
| |
| Intrinsic | interlockedToImageAtomicIntrinsic (const Intrinsic t) |
| | Returns the respecitve image atomic intrinsic for the specified interlocked intrinsic, or the input intrinsic, if is is not an interlocked intrinsic (e.g.
|
| |
| Int32 | getGatherIntrinsicOffsetParamCount (const Intrinsic t) |
| |
| Int32 | getGatherIntrinsicComponentIndex (const Intrinsic t) |
| |
| bool | isSystemSemantic (const Semantic t) |
| |
| bool | isUserSemantic (const Semantic t) |
| |
| String | semanticToString (const Semantic t) |
| |
| String | filterToString (const Reflection::Filter t) |
| |
| Reflection::Filter | stringToFilter (const String &s) |
| |
| String | texAddressModeToString (const Reflection::TextureAddressMode t) |
| |
| Reflection::TextureAddressMode | stringToTexAddressMode (const String &s) |
| |
| String | compareFuncToString (const Reflection::ComparisonFunc t) |
| |
| Reflection::ComparisonFunc | stringToCompareFunc (const String &s) |
| |
| String | resourceTypeToString (const Reflection::ResourceType t) |
| |
| Reflection::ResourceType | uniformBufferTypeToResourceType (const UniformBufferType t) |
| |
| Reflection::ResourceType | bufferTypeToResourceType (const BufferType t) |
| |
| Reflection::ResourceType | samplerTypeToResourceType (const SamplerType t) |
| |
| bool | operator== (const Identifier &lhs, const Identifier &rhs) |
| |
| bool | operator== (const String &lhs, const Identifier &rhs) |
| |
| bool | operator== (const Identifier &lhs, const String &rhs) |
| |
| bool | operator!= (const Identifier &lhs, const Identifier &rhs) |
| |
| bool | operator!= (const String &lhs, const Identifier &rhs) |
| |
| bool | operator!= (const Identifier &lhs, const String &rhs) |
| |
| bool | operator< (const Identifier &lhs, const Identifier &rhs) |
| |
| bool | operator< (const String &lhs, const Identifier &rhs) |
| |
| bool | operator< (const Identifier &lhs, const String &rhs) |
| |
| String | operator+ (const Identifier &lhs, const Identifier &rhs) |
| |
| String | operator+ (const String &lhs, const Identifier &rhs) |
| |
| String | operator+ (const Identifier &lhs, const String &rhs) |
| |
| String | operator+ (const char lhs, const Identifier &rhs) |
| |
| String | operator+ (const Identifier &lhs, const char rhs) |
| |
| void | assertReachedEnd (bool reachedEnd) |
| |
| void | assertCurrentTokenType (const Token::Types type, const Token::Types expectedType) |
| |
| template<typename TokenType , typename TokenOfInterestFunctor > |
| bool | operator== (const BasicTokenString< TokenType, TokenOfInterestFunctor > &lhs, const BasicTokenString< TokenType, TokenOfInterestFunctor > &rhs) |
| |
| template<typename TokenType , typename TokenOfInterestFunctor > |
| bool | operator!= (const BasicTokenString< TokenType, TokenOfInterestFunctor > &lhs, const BasicTokenString< TokenType, TokenOfInterestFunctor > &rhs) |
| |
| template<typename TokenType , typename TokenOfInterestFunctor > |
| std::ostream & | operator<< (std::ostream &lhs, const BasicTokenString< TokenType, TokenOfInterestFunctor > &rhs) |
| |
| bool | operator== (const VectorSpace &lhs, const VectorSpace &rhs) |
| |
| bool | operator!= (const VectorSpace &lhs, const VectorSpace &rhs) |
| |
| const String * | intrinsicToGLSLKeyword (const Intrinsic intr, bool useGLSL120=false) |
| |
| CiString | toCiString (const String &s) |
| |
| String | toString (const CiString &s) |
| |
| void | runtimeErr (const char *msg) |
| |
| void | runtimeErr (const String &msg) |
| |
| void | runtimeErr (const char *msg, const AST *ast) |
| |
| void | runtimeErr (const String &msg, const AST *ast) |
| |
| void | runtimeErr (const String &msg, const AST *ast, const Vector< const AST * > &astAppendices) |
| |
| void | invalidArg (const char *msg) |
| |
| void | invalidArg (const String &msg) |
| |
| const Map< String, int > & | getGLSLExtensionVersionMap () |
| |
| Int32 | getGLSLVersionNumber (const OutputShaderVersion version) |
| |
| const KeywordMapType & | glslKeywords () |
| |
| const String * | dataTypeToGLSLKeyword (const DataType t) |
| |
| DataType | glslKeywordToDataType (const String &keyword) |
| |
| const String * | storageClassToGLSLKeyword (const StorageClass t) |
| |
| StorageClass | glslKeywordToStorageClass (const String &keyword) |
| |
| const String * | interpModifierToGLSLKeyword (const InterpModifier t) |
| |
| InterpModifier | glslKeywordToInterpModifier (const String &keyword) |
| |
| const String * | bufferTypeToGLSLKeyword (const BufferType t, bool useVulkanGLSL=false, bool separateSamplers=true) |
| |
| const String * | samplerTypeToGLSLKeyword (const SamplerType t) |
| |
| SamplerType | glslKeywordToSamplerType (const String &keyword) |
| |
| const String * | attributeTypeToGLSLKeyword (const AttributeType t) |
| |
| AttributeType | glslKeywordToAttributeType (const String &keyword) |
| |
| const String * | attributeValueToGLSLKeyword (const AttributeValue t) |
| |
| AttributeValue | glslKeywordToAttributeValue (const String &keyword) |
| |
| const String * | primitiveTypeToGLSLKeyword (const PrimitiveType t) |
| |
| PrimitiveType | glslKeywordToPrimitiveType (const String &keyword) |
| |
| const String * | imageLayoutFormatToGLSLKeyword (const ImageLayoutFormat t) |
| |
| UPtr< String > | semanticToGLSLKeyword (const IndexedSemantic &semantic, bool useVulkanGLSL=false) |
| |
| DataType | semanticToGLSLDataType (const Semantic t) |
| |
| const Set< String > & | reservedGLSLKeywords () |
| |
| const KeywordMapType & | hlslKeywords () |
| |
| const KeywordMapType & | hlslKeywordsExtCg () |
| |
| DataType | hlslKeywordToDataType (const String &keyword) |
| |
| DataType | hlslKeywordExtCgToDataType (const String &keyword) |
| |
| PrimitiveType | hlslKeywordToPrimitiveType (const String &keyword) |
| |
| StorageClass | hlslKeywordToStorageClass (const String &keyword) |
| |
| InterpModifier | hlslKeywordToInterpModifier (const String &keyword) |
| |
| TypeModifier | hlslKeywordToTypeModifier (const String &keyword) |
| |
| UniformBufferType | hlslKeywordToUniformBufferType (const String &keyword) |
| |
| BufferType | hlslKeywordToBufferType (const String &keyword) |
| |
| SamplerType | hlslKeywordToSamplerType (const String &keyword) |
| |
| const String * | attributeTypeToHLSLKeyword (const AttributeType t) |
| |
| AttributeType | hlslKeywordToAttributeType (const String &keyword) |
| |
| AttributeValue | hlslKeywordToAttributeValue (const String &keyword) |
| |
| IndexedSemantic | hlslKeywordToSemantic (const String &ident, bool useD3D10Semantics=true) |
| |
| ImageLayoutFormat | extHLSLKeywordToImageLayoutFormat (const String &keyword) |
| |
| String | joinString (const String &s, const Vector< String > &values) |
| | Joins the specified string with its values.
|
| |
| template<typename T > |
| void | toStringListPrimary (Vector< String > &list, const T &value) |
| |
| template<> |
| void | toStringListPrimary< int > (Vector< String > &list, const int &value) |
| |
| template<typename... Args> |
| void | toStringList (Vector< String > &list, Args &&... args) |
| |
| template<typename Arg0 , typename... ArgsN> |
| void | toStringListSecondary (Vector< String > &list, Arg0 &&arg0, ArgsN &&... argsN) |
| |
| template<> |
| void | toStringList (Vector< String > &list) |
| |
| template<typename Arg0 > |
| void | toStringListSecondary (Vector< String > &list, Arg0 &&arg0) |
| |
| String | operator+ (const JoinableString &lhs, const String &rhs) |
| |
| String | operator+ (const String &lhs, const JoinableString &rhs) |
| |
| String | toString (const Reflection::Filter t) |
| | Returns the string representation of the specified <Filter> type.
|
| |
| String | toString (const Reflection::TextureAddressMode t) |
| | Returns the string representation of the specified <TextureAddressMode> type.
|
| |
| String | toString (const Reflection::ComparisonFunc t) |
| | Returns the string representation of the specified <ComparisonFunc> type.
|
| |
| String | toString (const Reflection::ResourceType t) |
| | Returns the string representation of the specified <Reflection::ResourceType> type.
|
| |
| void | printReflection (std::ostream &stream, const Reflection::ReflectionData &reflectionData, bool referencedOnly=false) |
| | Prints the reflection data into the output stream in a human readable format.
|
| |
| bool | compileShader (const ShaderInput &inputDesc, const ShaderOutput &outputDesc, Log *log=nullptr, Reflection::ReflectionData *reflectionData=nullptr) |
| | Cross compiles the shader code from the specified input stream into the specified output shader code.
|
| |
| bool | operator== (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| bool | operator!= (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| bool | operator< (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| bool | operator<= (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| bool | operator> (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| bool | operator>= (const ShaderVersion &lhs, const ShaderVersion &rhs) |
| |
| UInt32 | stringDistance (const String &a, const String &b) |
| |
| void | runtimeErrNoActiveScope () |
| |
| void | runtimeErrIdentAlreadyDeclared (const String &ident, const AST *prevDeclarationAST=nullptr) |
| |
| template<typename SymbolType > |
| AST * | fetchASTFromSymbol (const SymbolType &symbol) |
| |
| template<> |
| AST * | fetchASTFromSymbol< ASTSymbolOverloadPtr > (const ASTSymbolOverloadPtr &symbol) |
| |
| String | toString (const ShaderTarget target) |
| | Returns the specified shader target as string.
|
| |
| String | toString (const InputShaderVersion shaderVersion) |
| | Returns the specified shader input version as string.
|
| |
| String | toString (const OutputShaderVersion shaderVersion) |
| | Returns the specified shader output version as string.
|
| |
| bool | isLanguageHLSL (const InputShaderVersion shaderVersion) |
| | Returns true if the shader input version specifies HLSL (for DirectX) or Cg (handled as dialect or HLSL).
|
| |
| bool | isLanguageGLSL (const InputShaderVersion shaderVersion) |
| | Returns true if the shader input version specifies GLSL (for OpenGL, OpenGL ES, and Vulkan).
|
| |
| bool | isLanguageGLSL (const OutputShaderVersion shaderVersion) |
| | Returns true if the shader output version specifies GLSL (for OpenGL 2+).
|
| |
| bool | isLanguageESSL (const OutputShaderVersion shaderVersion) |
| | Returns true if the shader output version specifies ESSL (for OpenGL ES 2+).
|
| |
| bool | isLanguageVKSL (const OutputShaderVersion shaderVersion) |
| | Returns true if the shader output version specifies VKSL (for Vulkan).
|
| |
| const Map< String, int > & | getGLSLExtensionEnumeration () |
| | Returns the enumeration of all supported GLSL extensions as a map of extension name and version number.
|
| |
| Variant | operator== (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator!= (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator< (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator<= (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator> (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator>= (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator+ (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator- (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator* (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator/ (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator% (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator| (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator& (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator^ (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator<< (const Variant &lhs, const Variant &rhs) |
| |
| Variant | operator>> (const Variant &lhs, const Variant &rhs) |
| |
Joins the specified string with its values.
Special characters for the string 's' are: '{', '}', '[', and ']'.
"{0}" will be replaced by the first value from the array 'values', "{1}" will be replaced by the second value and so forth. Everything inside squared brackets (e.g. "[optional {0}]") will only be joined to the output string, if all values inside these brackets are specified and non-empty.
These characters will only be treated as direct output, if the escape character '\' is written in front of it (e.g. "\\[...\\]"), to write the escape character itself use "\\\\".
Examples:
JoinString("undeclared identifier {0}", { "foo_bar" }) --> "undeclared identifier foo_bar"
JoinString("always {0}[, sometimes {1}]", { "first", "second" }) --> "always first, sometimes second"
JoinString("always {0}[, sometimes {1}]", { "first", "" }) --> "always first"
JoinString("always {0}[, sometimes {1}]", { "first" }) --> "always first"
JoinString("one {0}[, two {1}[, three {2}]]", { "1", "2", "3" }) --> "one 1, two 2, three 3"
JoinString("one {0}[, two {1}[, three {2}]]", { "1", "", "3" }) --> "one 1"
JoinString("one {0}[, two {1}][, three {2}]", { "1", "", "3" }) --> "one 1, three 3"
Throw:
std::out_of_range If a value index, that is not optional, is out of range
std::invalid_argument If there is an incomplete escape character (e.g. "\")
std::invalid_argument If there is an incomplete optional part, i.e. a missing closing ']' (e.g. "[")