assert(0);
break;
case EbtInt:
- {
switch (node->getType().getBasicType()) {
case EbtFloat: op = EOpConvFloatToInt; break;
case EbtFloat16: op = EOpConvFloat16ToInt; break;
case EbtUint: op = EOpConvUintToInt; break;
default: assert(0);
}
-
- }
break;
case EbtUint:
- {
switch (node->getType().getBasicType()) {
case EbtFloat: op = EOpConvFloatToUint; break;
case EbtFloat16: op = EOpConvFloat16ToUint; break;
case EbtUint8: op = EOpConvUint8ToUint; break;
- case EbtInt8: op = EOpConvInt8ToUint; break;
+ case EbtInt8: op = EOpConvInt8ToUint; break;
case EbtInt: op = EOpConvIntToUint; break;
case EbtUint: op = EOpConvUintToInt8; break;
default: assert(0);
}
-
- }
break;
-
case EbtInt8:
- {
switch (node->getType().getBasicType()) {
case EbtFloat: op = EOpConvFloatToInt8; break;
case EbtFloat16: op = EOpConvFloat16ToInt8; break;
case EbtUint: op = EOpConvUintToInt8; break;
default: assert(0);
}
-
- }
break;
- case EbtUint8: {
+ case EbtUint8:
switch (node->getType().getBasicType()) {
case EbtFloat: op = EOpConvFloatToUint8; break;
case EbtFloat16: op = EOpConvFloat16ToUint8; break;
case EbtUint: op = EOpConvUintToUint8; break;
default: assert(0);
}
- }
break;
case EbtFloat:
- {
switch (node->getType().getBasicType()) {
case EbtFloat16: op = EOpConvFloat16ToFloat; break;
case EbtInt8: op = EOpConvInt8ToFloat; break;
case EbtUint: op = EOpConvUintToFloat; break;
default: assert(0);
}
- }
break;
case EbtFloat16:
- {
switch (node->getType().getBasicType()) {
case EbtFloat: op = EOpConvFloatToFloat16; break;
case EbtInt8: op = EOpConvInt8ToFloat16; break;
case EbtUint: op = EOpConvUintToFloat16; break;
default: assert(0);
}
- }
break;
}
$$.basicType = EbtFloat;
$$.coopmat = true;
}
- | ICOOPMATNV {\r
- parseContext.intcoopmatCheck($1.loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());\r
- $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());\r
- $$.basicType = EbtInt;\r
- $$.coopmat = true;\r
- }\r
- | UCOOPMATNV {\r
- parseContext.intcoopmatCheck($1.loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());\r
- $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());\r
- $$.basicType = EbtUint;\r
- $$.coopmat = true;\r
- }\r
+ | ICOOPMATNV {
+ parseContext.intcoopmatCheck($1.loc, "icoopmatNV", parseContext.symbolTable.atBuiltInLevel());
+ $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());
+ $$.basicType = EbtInt;
+ $$.coopmat = true;
+ }
+ | UCOOPMATNV {
+ parseContext.intcoopmatCheck($1.loc, "ucoopmatNV", parseContext.symbolTable.atBuiltInLevel());
+ $$.init($1.loc, parseContext.symbolTable.atGlobalLevel());
+ $$.basicType = EbtUint;
+ $$.coopmat = true;
+ }
GLSLANG_WEB_EXCLUDE_OFF
| struct_specifier {
$$ = $1;