| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 8 |
| 4 |
; Bound: 56 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
OpCapability ClipDistance |
| 8 |
%1 = OpExtInstImport "GLSL.std.450" |
| 9 |
OpMemoryModel Logical GLSL450 |
| 10 |
OpEntryPoint Vertex %main "main" %pos_1 %_entryPointOutput_pos %_entryPointOutput_clip |
| 11 |
OpSource HLSL 500 |
| 12 |
OpName %main "main" |
| 13 |
OpName %VSOut "VSOut" |
| 14 |
OpMemberName %VSOut 0 "pos" |
| 15 |
OpMemberName %VSOut 1 "clip" |
| 16 |
OpName %_main_vf4_ "@main(vf4;" |
| 17 |
OpName %pos "pos" |
| 18 |
OpName %vout "vout" |
| 19 |
OpName %pos_0 "pos" |
| 20 |
OpName %pos_1 "pos" |
| 21 |
OpName %flattenTemp "flattenTemp" |
| 22 |
OpName %param "param" |
| 23 |
OpName %_entryPointOutput_pos "@entryPointOutput.pos" |
| 24 |
OpName %_entryPointOutput_clip "@entryPointOutput.clip" |
| 25 |
OpDecorate %pos_1 Location 0 |
| 26 |
OpDecorate %_entryPointOutput_pos BuiltIn Position |
| 27 |
OpDecorate %_entryPointOutput_clip BuiltIn ClipDistance |
| 28 |
%void = OpTypeVoid |
| 29 |
%3 = OpTypeFunction %void |
| 30 |
%float = OpTypeFloat 32 |
| 31 |
%v4float = OpTypeVector %float 4 |
| 32 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 33 |
%v2float = OpTypeVector %float 2 |
| 34 |
%VSOut = OpTypeStruct %v4float %v2float |
| 35 |
%11 = OpTypeFunction %VSOut %_ptr_Function_v4float |
| 36 |
%_ptr_Function_VSOut = OpTypePointer Function %VSOut |
| 37 |
%int = OpTypeInt 32 1 |
| 38 |
%int_0 = OpConstant %int 0 |
| 39 |
%int_1 = OpConstant %int 1 |
| 40 |
%_ptr_Function_v2float = OpTypePointer Function %v2float |
| 41 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 42 |
%pos_1 = OpVariable %_ptr_Input_v4float Input |
| 43 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 44 |
%_entryPointOutput_pos = OpVariable %_ptr_Output_v4float Output |
| 45 |
%uint = OpTypeInt 32 0 |
| 46 |
%uint_2 = OpConstant %uint 2 |
| 47 |
%_arr_float_uint_2 = OpTypeArray %float %uint_2 |
| 48 |
%_ptr_Output__arr_float_uint_2 = OpTypePointer Output %_arr_float_uint_2 |
| 49 |
%_entryPointOutput_clip = OpVariable %_ptr_Output__arr_float_uint_2 Output |
| 50 |
%uint_0 = OpConstant %uint 0 |
| 51 |
%_ptr_Function_float = OpTypePointer Function %float |
| 52 |
%_ptr_Output_float = OpTypePointer Output %float |
| 53 |
%uint_1 = OpConstant %uint 1 |
| 54 |
%main = OpFunction %void None %3 |
| 55 |
%5 = OpLabel |
| 56 |
%pos_0 = OpVariable %_ptr_Function_v4float Function |
| 57 |
%flattenTemp = OpVariable %_ptr_Function_VSOut Function |
| 58 |
%param = OpVariable %_ptr_Function_v4float Function |
| 59 |
%32 = OpLoad %v4float %pos_1 |
| 60 |
OpStore %pos_0 %32 |
| 61 |
%35 = OpLoad %v4float %pos_0 |
| 62 |
OpStore %param %35 |
| 63 |
%36 = OpFunctionCall %VSOut %_main_vf4_ %param |
| 64 |
OpStore %flattenTemp %36 |
| 65 |
%39 = OpAccessChain %_ptr_Function_v4float %flattenTemp %int_0 |
| 66 |
%40 = OpLoad %v4float %39 |
| 67 |
OpStore %_entryPointOutput_pos %40 |
| 68 |
%48 = OpAccessChain %_ptr_Function_float %flattenTemp %int_1 %uint_0 |
| 69 |
%49 = OpLoad %float %48 |
| 70 |
%51 = OpAccessChain %_ptr_Output_float %_entryPointOutput_clip %int_0 |
| 71 |
OpStore %51 %49 |
| 72 |
%53 = OpAccessChain %_ptr_Function_float %flattenTemp %int_1 %uint_1 |
| 73 |
%54 = OpLoad %float %53 |
| 74 |
%55 = OpAccessChain %_ptr_Output_float %_entryPointOutput_clip %int_1 |
| 75 |
OpStore %55 %54 |
| 76 |
OpReturn |
| 77 |
OpFunctionEnd |
| 78 |
%_main_vf4_ = OpFunction %VSOut None %11 |
| 79 |
%pos = OpFunctionParameter %_ptr_Function_v4float |
| 80 |
%14 = OpLabel |
| 81 |
%vout = OpVariable %_ptr_Function_VSOut Function |
| 82 |
%19 = OpLoad %v4float %pos |
| 83 |
%20 = OpAccessChain %_ptr_Function_v4float %vout %int_0 |
| 84 |
OpStore %20 %19 |
| 85 |
%22 = OpLoad %v4float %pos |
| 86 |
%23 = OpVectorShuffle %v2float %22 %22 0 1 |
| 87 |
%25 = OpAccessChain %_ptr_Function_v2float %vout %int_1 |
| 88 |
OpStore %25 %23 |
| 89 |
%26 = OpLoad %VSOut %vout |
| 90 |
OpReturnValue %26 |
| 91 |
OpFunctionEnd |