19 : fFloat(
Type::MakeScalarType(
20 "float",
"f",
Type::NumberKind::
kFloat, 10, 32))
21 , fFloat2(
Type::MakeVectorType(
"float2",
"f2", *fFloat, 2))
22 , fFloat3(
Type::MakeVectorType(
"float3",
"f3", *fFloat, 3))
23 , fFloat4(
Type::MakeVectorType(
"float4",
"f4", *fFloat, 4))
24 , fHalf(
Type::MakeScalarType(
26 , fHalf2(
Type::MakeVectorType(
"half2",
"h2", *fHalf, 2))
27 , fHalf3(
Type::MakeVectorType(
"half3",
"h3", *fHalf, 3))
28 , fHalf4(
Type::MakeVectorType(
"half4",
"h4", *fHalf, 4))
29 , fInt(
Type::MakeScalarType(
30 "int",
"i",
Type::NumberKind::kSigned, 7, 32))
31 , fInt2(
Type::MakeVectorType(
"int2",
"i2", *fInt, 2))
32 , fInt3(
Type::MakeVectorType(
"int3",
"i3", *fInt, 3))
33 , fInt4(
Type::MakeVectorType(
"int4",
"i4", *fInt, 4))
34 , fUInt(
Type::MakeScalarType(
35 "uint",
"I",
Type::NumberKind::kUnsigned, 6, 32))
36 , fUInt2(
Type::MakeVectorType(
"uint2",
"I2", *fUInt, 2))
37 , fUInt3(
Type::MakeVectorType(
"uint3",
"I3", *fUInt, 3))
38 , fUInt4(
Type::MakeVectorType(
"uint4",
"I4", *fUInt, 4))
39 , fShort(
Type::MakeScalarType(
40 "short",
"s",
Type::NumberKind::kSigned, 4, 16))
41 , fShort2(
Type::MakeVectorType(
"short2",
"s2", *fShort, 2))
42 , fShort3(
Type::MakeVectorType(
"short3",
"s3", *fShort, 3))
43 , fShort4(
Type::MakeVectorType(
"short4",
"s4", *fShort, 4))
44 , fUShort(
Type::MakeScalarType(
45 "ushort",
"S",
Type::NumberKind::kUnsigned, 3, 16))
46 , fUShort2(
Type::MakeVectorType(
"ushort2",
"S2", *fUShort, 2))
47 , fUShort3(
Type::MakeVectorType(
"ushort3",
"S3", *fUShort, 3))
48 , fUShort4(
Type::MakeVectorType(
"ushort4",
"S4", *fUShort, 4))
49 , fBool(
Type::MakeScalarType(
50 "bool",
"b",
Type::NumberKind::kBoolean, 0, 1))
51 , fBool2(
Type::MakeVectorType(
"bool2",
"b2", *fBool, 2))
52 , fBool3(
Type::MakeVectorType(
"bool3",
"b3", *fBool, 3))
53 , fBool4(
Type::MakeVectorType(
"bool4",
"b4", *fBool, 4))
54 , fInvalid(
Type::MakeSpecialType(
"<INVALID>",
"O",
Type::TypeKind::
kOther))
56 , fVoid(
Type::MakeSpecialType(
"void",
"v",
Type::TypeKind::
kVoid))
57 , fFloatLiteral(
Type::MakeLiteralType(
"$floatLiteral", *fFloat, 8))
58 , fIntLiteral(
Type::MakeLiteralType(
"$intLiteral", *fInt, 5))
59 , fFloat2x2(
Type::MakeMatrixType(
"float2x2",
"f22", *fFloat, 2, 2))
60 , fFloat2x3(
Type::MakeMatrixType(
"float2x3",
"f23", *fFloat, 2, 3))
61 , fFloat2x4(
Type::MakeMatrixType(
"float2x4",
"f24", *fFloat, 2, 4))
62 , fFloat3x2(
Type::MakeMatrixType(
"float3x2",
"f32", *fFloat, 3, 2))
63 , fFloat3x3(
Type::MakeMatrixType(
"float3x3",
"f33", *fFloat, 3, 3))
64 , fFloat3x4(
Type::MakeMatrixType(
"float3x4",
"f34", *fFloat, 3, 4))
65 , fFloat4x2(
Type::MakeMatrixType(
"float4x2",
"f42", *fFloat, 4, 2))
66 , fFloat4x3(
Type::MakeMatrixType(
"float4x3",
"f43", *fFloat, 4, 3))
67 , fFloat4x4(
Type::MakeMatrixType(
"float4x4",
"f44", *fFloat, 4, 4))
68 , fHalf2x2(
Type::MakeMatrixType(
"half2x2",
"h22", *fHalf, 2, 2))
69 , fHalf2x3(
Type::MakeMatrixType(
"half2x3",
"h23", *fHalf, 2, 3))
70 , fHalf2x4(
Type::MakeMatrixType(
"half2x4",
"h24", *fHalf, 2, 4))
71 , fHalf3x2(
Type::MakeMatrixType(
"half3x2",
"h32", *fHalf, 3, 2))
72 , fHalf3x3(
Type::MakeMatrixType(
"half3x3",
"h33", *fHalf, 3, 3))
73 , fHalf3x4(
Type::MakeMatrixType(
"half3x4",
"h34", *fHalf, 3, 4))
74 , fHalf4x2(
Type::MakeMatrixType(
"half4x2",
"h42", *fHalf, 4, 2))
75 , fHalf4x3(
Type::MakeMatrixType(
"half4x3",
"h43", *fHalf, 4, 3))
76 , fHalf4x4(
Type::MakeMatrixType(
"half4x4",
"h44", *fHalf, 4, 4))
77 , fVec2(
Type::MakeAliasType(
"vec2", *fFloat2))
78 , fVec3(
Type::MakeAliasType(
"vec3", *fFloat3))
79 , fVec4(
Type::MakeAliasType(
"vec4", *fFloat4))
80 , fIVec2(
Type::MakeAliasType(
"ivec2", *fInt2))
81 , fIVec3(
Type::MakeAliasType(
"ivec3", *fInt3))
82 , fIVec4(
Type::MakeAliasType(
"ivec4", *fInt4))
83 , fBVec2(
Type::MakeAliasType(
"bvec2", *fBool2))
84 , fBVec3(
Type::MakeAliasType(
"bvec3", *fBool3))
85 , fBVec4(
Type::MakeAliasType(
"bvec4", *fBool4))
86 , fMat2(
Type::MakeAliasType(
"mat2", *fFloat2x2))
87 , fMat3(
Type::MakeAliasType(
"mat3", *fFloat3x3))
88 , fMat4(
Type::MakeAliasType(
"mat4", *fFloat4x4))
89 , fMat2x2(
Type::MakeAliasType(
"mat2x2", *fFloat2x2))
90 , fMat2x3(
Type::MakeAliasType(
"mat2x3", *fFloat2x3))
91 , fMat2x4(
Type::MakeAliasType(
"mat2x4", *fFloat2x4))
92 , fMat3x2(
Type::MakeAliasType(
"mat3x2", *fFloat3x2))
93 , fMat3x3(
Type::MakeAliasType(
"mat3x3", *fFloat3x3))
94 , fMat3x4(
Type::MakeAliasType(
"mat3x4", *fFloat3x4))
95 , fMat4x2(
Type::MakeAliasType(
"mat4x2", *fFloat4x2))
96 , fMat4x3(
Type::MakeAliasType(
"mat4x3", *fFloat4x3))
97 , fMat4x4(
Type::MakeAliasType(
"mat4x4", *fFloat4x4))
98 , fTexture2D_sample(
Type::MakeTextureType(
"$texture2D_sample",
103 Type::TextureAccess::kSample))
104 , fTextureExternalOES(
Type::MakeTextureType(
"textureExternalOES",
109 Type::TextureAccess::kSample))
110 , fTexture2DRect(
Type::MakeTextureType(
"texture2DRect",
115 Type::TextureAccess::kSample))
116 , fTexture2D(
Type::MakeTextureType(
"texture2D",
122 , fReadOnlyTexture2D(
Type::MakeTextureType(
"readonlyTexture2D",
128 , fWriteOnlyTexture2D(
Type::MakeTextureType(
"writeonlyTexture2D",
134 , fGenTexture2D(
Type::MakeGenericType(
"$genTexture2D",
140 {fReadOnlyTexture2D.get(),
146 fWriteOnlyTexture2D.get(),
168 fFloat4.get()}, fFloat.get()))
170 fHalf4.get()}, fHalf.get()))
172 fInt4.get()}, fInt.get()))
174 fUInt4.get()}, fUInt.get()))
176 fBool4.get()}, fBool.get()))
178 fFloat3x2.get(), fFloat3x3.get(), fFloat3x4.get(),
179 fFloat4x2.get(), fFloat4x3.get(), fFloat4x4.get()},
182 fHalf3x2.get(), fHalf3x3.get(), fHalf3x4.get(),
183 fHalf4x2.get(), fHalf4x3.get(), fHalf4x4.get()},
186 fFloat3x3.get(), fFloat4x4.get()},
189 fHalf3x3.get(), fHalf4x4.get()},
192 fFloat4.get()}, fFloat.get()))
194 fHalf4.get()}, fHalf.get()))
196 fInt4.get()}, fInt.get()))
198 fUInt4.get()}, fUInt.get()))
200 fShort4.get()}, fShort.get()))
202 fUShort4.get()}, fUShort.get()))
204 fBool4.get()}, fBool.get()))