spv.nv.explicittypecast.frag WARNING: 0:85: '' : typecast is unary operator and takes only a single expression WARNING: 0:86: '' : typecast is unary operator and takes only a single expression // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 182 Capability Shader Capability Float16 Capability Float64 Capability Int64 Capability Int8 Capability PhysicalStorageBufferAddressesEXT Extension "SPV_KHR_physical_storage_buffer" 1: ExtInstImport "GLSL.std.450" MemoryModel PhysicalStorageBuffer64EXT GLSL450 EntryPoint Fragment 4 "main" ExecutionMode 4 OriginUpperLeft Source GLSL 460 SourceExtension "GL_EXT_buffer_reference" SourceExtension "GL_EXT_buffer_reference_uvec2" SourceExtension "GL_NV_explicit_typecast" SourceExtension "GL_NV_gpu_shader5" Name 4 "main" Name 13 "func(f1;vf2;" Name 11 "a" Name 12 "b" Name 21 "f_0" Name 25 "u_0" Name 30 "i_0" Name 35 "f16_0" Name 40 "u64_0" Name 45 "u8_0" Name 50 "i8_0" Name 57 "v4_0" Name 61 "u8v4_0" Name 66 "f16v3_0" Name 69 "v3_0" Name 74 "u64v2_0" Name 77 "u8v2_0" Name 100 "m2_0" Name 101 "m2_1" Name 110 "d2_0" Name 126 "m4_0" Name 129 "m3_0" Name 154 "BufRef" MemberName 154(BufRef) 0 "inp" MemberName 154(BufRef) 1 "op" Name 156 "B" Name 159 "B2" Name 160 "v2_0" Name 179 "param" Name 180 "param" Decorate 154(BufRef) Block MemberDecorate 154(BufRef) 0 Offset 0 MemberDecorate 154(BufRef) 1 Offset 16 Decorate 156(B) DecorationAliasedPointerEXT Decorate 159(B2) DecorationAliasedPointerEXT 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypePointer Function 6(float) 8: TypeVector 6(float) 2 9: TypePointer Function 8(fvec2) 10: TypeFunction 6(float) 7(ptr) 9(ptr) 23: TypeInt 32 0 24: TypePointer Function 23(int) 28: TypeInt 32 1 29: TypePointer Function 28(int) 33: TypeFloat 16 34: TypePointer Function 33(float16_t) 38: TypeInt 64 0 39: TypePointer Function 38(int64_t) 43: TypeInt 8 0 44: TypePointer Function 43(int8_t) 48: TypeInt 8 1 49: TypePointer Function 48(int8_t) 55: TypeVector 6(float) 4 56: TypePointer Function 55(fvec4) 59: TypeVector 43(int8_t) 4 60: TypePointer Function 59(i8vec4) 64: TypeVector 33(float16_t) 3 65: TypePointer Function 64(f16vec3) 67: TypeVector 6(float) 3 68: TypePointer Function 67(fvec3) 72: TypeVector 38(int64_t) 2 73: TypePointer Function 72(i64vec2) 75: TypeVector 43(int8_t) 2 76: TypePointer Function 75(i8vec2) 87: TypeVector 38(int64_t) 4 98: TypeMatrix 8(fvec2) 2 99: TypePointer Function 98 106: TypeFloat 64 107: TypeVector 106(float64_t) 2 108: TypeMatrix 107(f64vec2) 2 109: TypePointer Function 108 119: 6(float) Constant 1065353216 120: 6(float) Constant 0 124: TypeMatrix 55(fvec4) 4 125: TypePointer Function 124 127: TypeMatrix 67(fvec3) 3 128: TypePointer Function 127 TypeForwardPointer 153 PhysicalStorageBufferEXT 154(BufRef): TypeStruct 55(fvec4) 55(fvec4) 153: TypePointer PhysicalStorageBufferEXT 154(BufRef) 155: TypePointer Function 153(ptr) 162: TypeVector 23(int) 2 169: 6(float) Constant 1073741824 170: 6(float) Constant 1077936128 4(main): 2 Function None 3 5: Label 21(f_0): 7(ptr) Variable Function 25(u_0): 24(ptr) Variable Function 30(i_0): 29(ptr) Variable Function 35(f16_0): 34(ptr) Variable Function 40(u64_0): 39(ptr) Variable Function 45(u8_0): 44(ptr) Variable Function 50(i8_0): 49(ptr) Variable Function 57(v4_0): 56(ptr) Variable Function 61(u8v4_0): 60(ptr) Variable Function 66(f16v3_0): 65(ptr) Variable Function 69(v3_0): 68(ptr) Variable Function 74(u64v2_0): 73(ptr) Variable Function 77(u8v2_0): 76(ptr) Variable Function 100(m2_0): 99(ptr) Variable Function 101(m2_1): 99(ptr) Variable Function 110(d2_0): 109(ptr) Variable Function 126(m4_0): 125(ptr) Variable Function 129(m3_0): 128(ptr) Variable Function 156(B): 155(ptr) Variable Function 159(B2): 155(ptr) Variable Function 160(v2_0): 9(ptr) Variable Function 179(param): 7(ptr) Variable Function 180(param): 9(ptr) Variable Function 22: 6(float) Load 21(f_0) Store 21(f_0) 22 26: 23(int) Load 25(u_0) 27: 6(float) ConvertUToF 26 Store 21(f_0) 27 31: 28(int) Load 30(i_0) 32: 23(int) Bitcast 31 Store 25(u_0) 32 36:33(float16_t) Load 35(f16_0) 37: 28(int) ConvertFToS 36 Store 30(i_0) 37 41: 38(int64_t) Load 40(u64_0) 42:33(float16_t) ConvertUToF 41 Store 35(f16_0) 42 46:33(float16_t) Load 35(f16_0) 47: 43(int8_t) ConvertFToU 46 Store 45(u8_0) 47 51:33(float16_t) Load 35(f16_0) 52: 48(int8_t) ConvertFToS 51 Store 50(i8_0) 52 53: 6(float) Load 21(f_0) 54: 38(int64_t) ConvertFToU 53 Store 40(u64_0) 54 58: 55(fvec4) Load 57(v4_0) Store 57(v4_0) 58 62: 59(i8vec4) Load 61(u8v4_0) 63: 55(fvec4) ConvertUToF 62 Store 57(v4_0) 63 70: 67(fvec3) Load 69(v3_0) 71: 64(f16vec3) FConvert 70 Store 66(f16v3_0) 71 78: 75(i8vec2) Load 77(u8v2_0) 79: 72(i64vec2) UConvert 78 Store 74(u64v2_0) 79 80: 59(i8vec4) Load 61(u8v4_0) 81: 55(fvec4) ConvertUToF 80 82: 6(float) CompositeExtract 81 0 83: 6(float) CompositeExtract 81 1 84: 6(float) CompositeExtract 81 2 85: 67(fvec3) CompositeConstruct 82 83 84 Store 69(v3_0) 85 86: 55(fvec4) Load 57(v4_0) 88: 87(i64vec4) ConvertFToU 86 89: 38(int64_t) CompositeExtract 88 0 90: 38(int64_t) CompositeExtract 88 1 91: 72(i64vec2) CompositeConstruct 89 90 Store 74(u64v2_0) 91 92: 43(int8_t) Load 45(u8_0) 93: 6(float) ConvertUToF 92 94: 55(fvec4) CompositeConstruct 93 93 93 93 Store 57(v4_0) 94 95:33(float16_t) Load 35(f16_0) 96: 38(int64_t) ConvertFToU 95 97: 72(i64vec2) CompositeConstruct 96 96 Store 74(u64v2_0) 97 102: 98 Load 101(m2_1) 103: 8(fvec2) CompositeExtract 102 0 104: 8(fvec2) CompositeExtract 102 1 105: 98 CompositeConstruct 103 104 Store 100(m2_0) 105 111: 98 Load 100(m2_0) 112: 8(fvec2) CompositeExtract 111 0 113:107(f64vec2) FConvert 112 114: 8(fvec2) CompositeExtract 111 1 115:107(f64vec2) FConvert 114 116: 108 CompositeConstruct 113 115 Store 110(d2_0) 116 117:33(float16_t) Load 35(f16_0) 118: 6(float) FConvert 117 121: 8(fvec2) CompositeConstruct 118 120 122: 8(fvec2) CompositeConstruct 120 118 123: 98 CompositeConstruct 121 122 Store 100(m2_0) 123 130: 127 Load 129(m3_0) 131: 6(float) CompositeExtract 130 0 0 132: 6(float) CompositeExtract 130 0 1 133: 6(float) CompositeExtract 130 0 2 134: 6(float) CompositeExtract 130 1 0 135: 6(float) CompositeExtract 130 1 1 136: 6(float) CompositeExtract 130 1 2 137: 6(float) CompositeExtract 130 2 0 138: 6(float) CompositeExtract 130 2 1 139: 6(float) CompositeExtract 130 2 2 140: 55(fvec4) CompositeConstruct 131 132 133 120 141: 55(fvec4) CompositeConstruct 134 135 136 120 142: 55(fvec4) CompositeConstruct 137 138 139 120 143: 55(fvec4) CompositeConstruct 120 120 120 119 144: 124 CompositeConstruct 140 141 142 143 Store 126(m4_0) 144 145: 124 Load 126(m4_0) 146: 55(fvec4) CompositeExtract 145 0 147: 67(fvec3) VectorShuffle 146 146 0 1 2 148: 55(fvec4) CompositeExtract 145 1 149: 67(fvec3) VectorShuffle 148 148 0 1 2 150: 55(fvec4) CompositeExtract 145 2 151: 67(fvec3) VectorShuffle 150 150 0 1 2 152: 127 CompositeConstruct 147 149 151 Store 129(m3_0) 152 157: 38(int64_t) Load 40(u64_0) 158: 153(ptr) ConvertUToPtr 157 Store 156(B) 158 161: 8(fvec2) Load 160(v2_0) 163: 162(ivec2) ConvertFToU 161 164: 153(ptr) Bitcast 163 Store 159(B2) 164 165:33(float16_t) Load 35(f16_0) 166: 28(int) ConvertFToS 165 167: 6(float) ConvertSToF 166 168: 43(int8_t) ConvertFToU 167 Store 45(u8_0) 168 171: 67(fvec3) CompositeConstruct 170 170 170 Store 69(v3_0) 171 172: 48(int8_t) Load 50(i8_0) 173:33(float16_t) ConvertSToF 172 174: 64(f16vec3) CompositeConstruct 173 173 173 Store 66(f16v3_0) 174 175: 43(int8_t) Load 45(u8_0) 176: 6(float) ConvertUToF 175 177: 72(i64vec2) Load 74(u64v2_0) 178: 8(fvec2) ConvertUToF 177 Store 179(param) 176 Store 180(param) 178 181: 6(float) FunctionCall 13(func(f1;vf2;) 179(param) 180(param) Return FunctionEnd 13(func(f1;vf2;): 6(float) Function None 10 11(a): 7(ptr) FunctionParameter 12(b): 9(ptr) FunctionParameter 14: Label 15: 8(fvec2) Load 12(b) 16: 6(float) Load 11(a) 17: 8(fvec2) CompositeConstruct 16 16 18: 6(float) Dot 15 17 ReturnValue 18 FunctionEnd