| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 36 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Vertex %main "main" %vid_1 %iid_1 %_entryPointOutput |
| 10 |
OpSource HLSL 500 |
| 11 |
OpName %main "main" |
| 12 |
OpName %_main_u1_u1_ "@main(u1;u1;" |
| 13 |
OpName %vid "vid" |
| 14 |
OpName %iid "iid" |
| 15 |
OpName %vid_0 "vid" |
| 16 |
OpName %vid_1 "vid" |
| 17 |
OpName %iid_0 "iid" |
| 18 |
OpName %iid_1 "iid" |
| 19 |
OpName %_entryPointOutput "@entryPointOutput" |
| 20 |
OpName %param "param" |
| 21 |
OpName %param_0 "param" |
| 22 |
OpDecorate %vid_1 BuiltIn VertexIndex |
| 23 |
OpDecorate %iid_1 BuiltIn InstanceIndex |
| 24 |
OpDecorate %_entryPointOutput BuiltIn Position |
| 25 |
%void = OpTypeVoid |
| 26 |
%3 = OpTypeFunction %void |
| 27 |
%uint = OpTypeInt 32 0 |
| 28 |
%_ptr_Function_uint = OpTypePointer Function %uint |
| 29 |
%float = OpTypeFloat 32 |
| 30 |
%v4float = OpTypeVector %float 4 |
| 31 |
%10 = OpTypeFunction %v4float %_ptr_Function_uint %_ptr_Function_uint |
| 32 |
%_ptr_Input_uint = OpTypePointer Input %uint |
| 33 |
%vid_1 = OpVariable %_ptr_Input_uint Input |
| 34 |
%iid_1 = OpVariable %_ptr_Input_uint Input |
| 35 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 36 |
%_entryPointOutput = OpVariable %_ptr_Output_v4float Output |
| 37 |
%main = OpFunction %void None %3 |
| 38 |
%5 = OpLabel |
| 39 |
%vid_0 = OpVariable %_ptr_Function_uint Function |
| 40 |
%iid_0 = OpVariable %_ptr_Function_uint Function |
| 41 |
%param = OpVariable %_ptr_Function_uint Function |
| 42 |
%param_0 = OpVariable %_ptr_Function_uint Function |
| 43 |
%25 = OpLoad %uint %vid_1 |
| 44 |
OpStore %vid_0 %25 |
| 45 |
%28 = OpLoad %uint %iid_1 |
| 46 |
OpStore %iid_0 %28 |
| 47 |
%32 = OpLoad %uint %vid_0 |
| 48 |
OpStore %param %32 |
| 49 |
%34 = OpLoad %uint %iid_0 |
| 50 |
OpStore %param_0 %34 |
| 51 |
%35 = OpFunctionCall %v4float %_main_u1_u1_ %param %param_0 |
| 52 |
OpStore %_entryPointOutput %35 |
| 53 |
OpReturn |
| 54 |
OpFunctionEnd |
| 55 |
%_main_u1_u1_ = OpFunction %v4float None %10 |
| 56 |
%vid = OpFunctionParameter %_ptr_Function_uint |
| 57 |
%iid = OpFunctionParameter %_ptr_Function_uint |
| 58 |
%14 = OpLabel |
| 59 |
%15 = OpLoad %uint %vid |
| 60 |
%16 = OpLoad %uint %iid |
| 61 |
%17 = OpIAdd %uint %15 %16 |
| 62 |
%18 = OpConvertUToF %float %17 |
| 63 |
%19 = OpCompositeConstruct %v4float %18 %18 %18 %18 |
| 64 |
OpReturnValue %19 |
| 65 |
OpFunctionEnd |