1#version 450 2#extension GL_EXT_shader_explicit_arithmetic_types_float16 : enable 3#extension GL_EXT_shader_explicit_arithmetic_types_float32 : enable 4#extension GL_EXT_shader_explicit_arithmetic_types_float64 : enable 5#extension GL_EXT_shader_explicit_arithmetic_types_int8 : enable 6#extension GL_EXT_shader_explicit_arithmetic_types_int16 : enable 7#extension GL_EXT_shader_explicit_arithmetic_types_int32 : enable 8#extension GL_EXT_shader_explicit_arithmetic_types_int64 : enable 9 10precision highp float; 11 12void main() 13{ 14 float16_t(float16_t(0x1)); 15 float16_t(float32_t(0x2)); 16 float16_t(float64_t(0x3)); 17 float16_t(int8_t (0x4)); 18 float16_t(int16_t (0x5)); 19 float16_t(int32_t (0x6)); 20 float16_t(int64_t (0x7)); 21 float16_t(uint8_t (0x8)); 22 float16_t(uint16_t (0x9)); 23 float16_t(uint32_t (0xA)); 24 float16_t(uint64_t (0xB)); 25 float16_t(bool (0xC)); 26 float32_t(float16_t(0x11)); 27 float32_t(float32_t(0x12)); 28 float32_t(float64_t(0x13)); 29 float32_t(int8_t (0x14)); 30 float32_t(int16_t (0x15)); 31 float32_t(int32_t (0x16)); 32 float32_t(int64_t (0x17)); 33 float32_t(uint8_t (0x18)); 34 float32_t(uint16_t (0x19)); 35 float32_t(uint32_t (0x1A)); 36 float32_t(uint64_t (0x1B)); 37 float32_t(bool (0x1C)); 38 float64_t(float16_t(0x21)); 39 float64_t(float32_t(0x22)); 40 float64_t(float64_t(0x23)); 41 float64_t(int8_t (0x24)); 42 float64_t(int16_t (0x25)); 43 float64_t(int32_t (0x26)); 44 float64_t(int64_t (0x27)); 45 float64_t(uint8_t (0x28)); 46 float64_t(uint16_t (0x29)); 47 float64_t(uint32_t (0x2A)); 48 float64_t(uint64_t (0x2B)); 49 float64_t(bool (0x2C)); 50 int8_t(float16_t(0x31)); 51 int8_t(float32_t(0x32)); 52 int8_t(float64_t(0x33)); 53 int8_t(int8_t (0x34)); 54 int8_t(int16_t (0x35)); 55 int8_t(int32_t (0x36)); 56 int8_t(int64_t (0x37)); 57 int8_t(uint8_t (0x38)); 58 int8_t(uint16_t (0x39)); 59 int8_t(uint32_t (0x3A)); 60 int8_t(uint64_t (0x3B)); 61 int8_t(bool (0x3C)); 62 int16_t(float16_t(0x41)); 63 int16_t(float32_t(0x42)); 64 int16_t(float64_t(0x43)); 65 int16_t(int8_t (0x44)); 66 int16_t(int16_t (0x45)); 67 int16_t(int32_t (0x46)); 68 int16_t(int64_t (0x47)); 69 int16_t(uint8_t (0x48)); 70 int16_t(uint16_t (0x49)); 71 int16_t(uint32_t (0x4A)); 72 int16_t(uint64_t (0x4B)); 73 int16_t(bool (0x4C)); 74 int32_t(float16_t(0x51)); 75 int32_t(float32_t(0x52)); 76 int32_t(float64_t(0x53)); 77 int32_t(int8_t (0x54)); 78 int32_t(int16_t (0x55)); 79 int32_t(int32_t (0x56)); 80 int32_t(int64_t (0x57)); 81 int32_t(uint8_t (0x58)); 82 int32_t(uint16_t (0x59)); 83 int32_t(uint32_t (0x5A)); 84 int32_t(uint64_t (0x5B)); 85 int32_t(bool (0x5C)); 86 int64_t(float16_t(0x61)); 87 int64_t(float32_t(0x62)); 88 int64_t(float64_t(0x63)); 89 int64_t(int8_t (0x64)); 90 int64_t(int16_t (0x65)); 91 int64_t(int32_t (0x66)); 92 int64_t(int64_t (0x67)); 93 int64_t(uint8_t (0x68)); 94 int64_t(uint16_t (0x69)); 95 int64_t(uint32_t (0x6A)); 96 int64_t(uint64_t (0x6B)); 97 int64_t(bool (0x6C)); 98 uint8_t(float16_t(0x71)); 99 uint8_t(float32_t(0x72)); 100 uint8_t(float64_t(0x73)); 101 uint8_t(int8_t (0x74)); 102 uint8_t(int16_t (0x75)); 103 uint8_t(int32_t (0x76)); 104 uint8_t(int64_t (0x77)); 105 uint8_t(uint8_t (0x78)); 106 uint8_t(uint16_t (0x79)); 107 uint8_t(uint32_t (0x7A)); 108 uint8_t(uint64_t (0x7B)); 109 uint8_t(bool (0x7C)); 110 uint16_t(float16_t(0x81)); 111 uint16_t(float32_t(0x82)); 112 uint16_t(float64_t(0x83)); 113 uint16_t(int8_t (0x84)); 114 uint16_t(int16_t (0x85)); 115 uint16_t(int32_t (0x86)); 116 uint16_t(int64_t (0x87)); 117 uint16_t(uint8_t (0x88)); 118 uint16_t(uint16_t (0x89)); 119 uint16_t(uint32_t (0x8A)); 120 uint16_t(uint64_t (0x8B)); 121 uint16_t(bool (0x8C)); 122 uint32_t(float16_t(0x91)); 123 uint32_t(float32_t(0x92)); 124 uint32_t(float64_t(0x93)); 125 uint32_t(int8_t (0x94)); 126 uint32_t(int16_t (0x95)); 127 uint32_t(int32_t (0x96)); 128 uint32_t(int64_t (0x97)); 129 uint32_t(uint8_t (0x98)); 130 uint32_t(uint16_t (0x99)); 131 uint32_t(uint32_t (0x9A)); 132 uint32_t(uint64_t (0x9B)); 133 uint32_t(bool (0x9C)); 134 uint64_t(float16_t(0xA1)); 135 uint64_t(float32_t(0xA2)); 136 uint64_t(float64_t(0xA3)); 137 uint64_t(int8_t (0xA4)); 138 uint64_t(int16_t (0xA5)); 139 uint64_t(int32_t (0xA6)); 140 uint64_t(int64_t (0xA7)); 141 uint64_t(uint8_t (0xA8)); 142 uint64_t(uint16_t (0xA9)); 143 uint64_t(uint32_t (0xAA)); 144 uint64_t(uint64_t (0xAB)); 145 uint64_t(bool (0xAC)); 146 bool(float16_t(0xB1)); 147 bool(float32_t(0xB2)); 148 bool(float64_t(0xB3)); 149 bool(int8_t (0xB4)); 150 bool(int16_t (0xB5)); 151 bool(int32_t (0xB6)); 152 bool(int64_t (0xB7)); 153 bool(uint8_t (0xB8)); 154 bool(uint16_t (0xB9)); 155 bool(uint32_t (0xBA)); 156 bool(uint64_t (0xBB)); 157 bool(bool (0xBC)); 158} 159