| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 1 |
| 4 |
; Bound: 40 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Vertex %main "main" %_entryPointOutput %_entryPointOutput_pos |
| 10 |
OpSource HLSL 500 |
| 11 |
OpName %main "main" |
| 12 |
OpName %VSOut "VSOut" |
| 13 |
OpMemberName %VSOut 0 "a" |
| 14 |
OpMemberName %VSOut 1 "pos" |
| 15 |
OpName %_main_ "@main(" |
| 16 |
OpName %vout "vout" |
| 17 |
OpName %flattenTemp "flattenTemp" |
| 18 |
OpName %VSOut_0 "VSOut" |
| 19 |
OpMemberName %VSOut_0 0 "a" |
| 20 |
OpName %_entryPointOutput "@entryPointOutput" |
| 21 |
OpName %_entryPointOutput_pos "@entryPointOutput_pos" |
| 22 |
OpDecorate %_entryPointOutput Location 0 |
| 23 |
OpDecorate %_entryPointOutput_pos BuiltIn Position |
| 24 |
%void = OpTypeVoid |
| 25 |
%3 = OpTypeFunction %void |
| 26 |
%float = OpTypeFloat 32 |
| 27 |
%v4float = OpTypeVector %float 4 |
| 28 |
%VSOut = OpTypeStruct %float %v4float |
| 29 |
%9 = OpTypeFunction %VSOut |
| 30 |
%_ptr_Function_VSOut = OpTypePointer Function %VSOut |
| 31 |
%int = OpTypeInt 32 1 |
| 32 |
%int_0 = OpConstant %int 0 |
| 33 |
%float_40 = OpConstant %float 40 |
| 34 |
%_ptr_Function_float = OpTypePointer Function %float |
| 35 |
%int_1 = OpConstant %int 1 |
| 36 |
%float_1 = OpConstant %float 1 |
| 37 |
%21 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 38 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 39 |
%VSOut_0 = OpTypeStruct %float |
| 40 |
%_ptr_Output_VSOut_0 = OpTypePointer Output %VSOut_0 |
| 41 |
%_entryPointOutput = OpVariable %_ptr_Output_VSOut_0 Output |
| 42 |
%_ptr_Output_float = OpTypePointer Output %float |
| 43 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 44 |
%_entryPointOutput_pos = OpVariable %_ptr_Output_v4float Output |
| 45 |
%main = OpFunction %void None %3 |
| 46 |
%5 = OpLabel |
| 47 |
%flattenTemp = OpVariable %_ptr_Function_VSOut Function |
| 48 |
%28 = OpFunctionCall %VSOut %_main_ |
| 49 |
OpStore %flattenTemp %28 |
| 50 |
%32 = OpAccessChain %_ptr_Function_float %flattenTemp %int_0 |
| 51 |
%33 = OpLoad %float %32 |
| 52 |
%35 = OpAccessChain %_ptr_Output_float %_entryPointOutput %int_0 |
| 53 |
OpStore %35 %33 |
| 54 |
%38 = OpAccessChain %_ptr_Function_v4float %flattenTemp %int_1 |
| 55 |
%39 = OpLoad %v4float %38 |
| 56 |
OpStore %_entryPointOutput_pos %39 |
| 57 |
OpReturn |
| 58 |
OpFunctionEnd |
| 59 |
%_main_ = OpFunction %VSOut None %9 |
| 60 |
%11 = OpLabel |
| 61 |
%vout = OpVariable %_ptr_Function_VSOut Function |
| 62 |
%18 = OpAccessChain %_ptr_Function_float %vout %int_0 |
| 63 |
OpStore %18 %float_40 |
| 64 |
%23 = OpAccessChain %_ptr_Function_v4float %vout %int_1 |
| 65 |
OpStore %23 %21 |
| 66 |
%24 = OpLoad %VSOut %vout |
| 67 |
OpReturnValue %24 |
| 68 |
OpFunctionEnd |