| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 7 |
| 4 |
; Bound: 79 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Tessellation |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint TessellationEvaluation %main "main" %input_foo %input_bar %uv_1 %CPData_1 %_entryPointOutput_pos |
| 10 |
OpExecutionMode %main Quads |
| 11 |
OpSource HLSL 500 |
| 12 |
OpName %main "main" |
| 13 |
OpName %HS_INPUT "HS_INPUT" |
| 14 |
OpMemberName %HS_INPUT 0 "foo" |
| 15 |
OpMemberName %HS_INPUT 1 "bar" |
| 16 |
OpName %ControlPoint "ControlPoint" |
| 17 |
OpMemberName %ControlPoint 0 "baz" |
| 18 |
OpName %DS_OUTPUT "DS_OUTPUT" |
| 19 |
OpMemberName %DS_OUTPUT 0 "pos" |
| 20 |
OpName %_main_struct_HS_INPUT_vf4_vf41_vf2_struct_ControlPoint_vf41_4__ "@main(struct-HS_INPUT-vf4-vf41;vf2;struct-ControlPoint-vf41[4];" |
| 21 |
OpName %input "input" |
| 22 |
OpName %uv "uv" |
| 23 |
OpName %CPData "CPData" |
| 24 |
OpName %o "o" |
| 25 |
OpName %input_0 "input" |
| 26 |
OpName %input_foo "input.foo" |
| 27 |
OpName %input_bar "input.bar" |
| 28 |
OpName %uv_0 "uv" |
| 29 |
OpName %uv_1 "uv" |
| 30 |
OpName %CPData_0 "CPData" |
| 31 |
OpName %CPData_1 "CPData" |
| 32 |
OpName %_entryPointOutput_pos "@entryPointOutput.pos" |
| 33 |
OpName %param "param" |
| 34 |
OpName %param_0 "param" |
| 35 |
OpName %param_1 "param" |
| 36 |
OpDecorate %input_foo Patch |
| 37 |
OpDecorate %input_foo Location 0 |
| 38 |
OpDecorate %input_bar Patch |
| 39 |
OpDecorate %input_bar Location 1 |
| 40 |
OpDecorate %uv_1 Patch |
| 41 |
OpDecorate %uv_1 BuiltIn TessCoord |
| 42 |
OpDecorate %CPData_1 Location 2 |
| 43 |
OpDecorate %_entryPointOutput_pos BuiltIn Position |
| 44 |
%void = OpTypeVoid |
| 45 |
%3 = OpTypeFunction %void |
| 46 |
%float = OpTypeFloat 32 |
| 47 |
%v4float = OpTypeVector %float 4 |
| 48 |
%HS_INPUT = OpTypeStruct %v4float %v4float |
| 49 |
%_ptr_Function_HS_INPUT = OpTypePointer Function %HS_INPUT |
| 50 |
%v2float = OpTypeVector %float 2 |
| 51 |
%_ptr_Function_v2float = OpTypePointer Function %v2float |
| 52 |
%ControlPoint = OpTypeStruct %v4float |
| 53 |
%uint = OpTypeInt 32 0 |
| 54 |
%uint_4 = OpConstant %uint 4 |
| 55 |
%_arr_ControlPoint_uint_4 = OpTypeArray %ControlPoint %uint_4 |
| 56 |
%_ptr_Function__arr_ControlPoint_uint_4 = OpTypePointer Function %_arr_ControlPoint_uint_4 |
| 57 |
%DS_OUTPUT = OpTypeStruct %v4float |
| 58 |
%18 = OpTypeFunction %DS_OUTPUT %_ptr_Function_HS_INPUT %_ptr_Function_v2float %_ptr_Function__arr_ControlPoint_uint_4 |
| 59 |
%_ptr_Function_DS_OUTPUT = OpTypePointer Function %DS_OUTPUT |
| 60 |
%int = OpTypeInt 32 1 |
| 61 |
%int_0 = OpConstant %int 0 |
| 62 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 63 |
%int_1 = OpConstant %int 1 |
| 64 |
%int_3 = OpConstant %int 3 |
| 65 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 66 |
%input_foo = OpVariable %_ptr_Input_v4float Input |
| 67 |
%input_bar = OpVariable %_ptr_Input_v4float Input |
| 68 |
%v3float = OpTypeVector %float 3 |
| 69 |
%_ptr_Input_v3float = OpTypePointer Input %v3float |
| 70 |
%uv_1 = OpVariable %_ptr_Input_v3float Input |
| 71 |
%_ptr_Input__arr_ControlPoint_uint_4 = OpTypePointer Input %_arr_ControlPoint_uint_4 |
| 72 |
%CPData_1 = OpVariable %_ptr_Input__arr_ControlPoint_uint_4 Input |
| 73 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 74 |
%_entryPointOutput_pos = OpVariable %_ptr_Output_v4float Output |
| 75 |
%main = OpFunction %void None %3 |
| 76 |
%5 = OpLabel |
| 77 |
%input_0 = OpVariable %_ptr_Function_HS_INPUT Function |
| 78 |
%uv_0 = OpVariable %_ptr_Function_v2float Function |
| 79 |
%CPData_0 = OpVariable %_ptr_Function__arr_ControlPoint_uint_4 Function |
| 80 |
%param = OpVariable %_ptr_Function_HS_INPUT Function |
| 81 |
%param_0 = OpVariable %_ptr_Function_v2float Function |
| 82 |
%param_1 = OpVariable %_ptr_Function__arr_ControlPoint_uint_4 Function |
| 83 |
%52 = OpLoad %v4float %input_foo |
| 84 |
%53 = OpAccessChain %_ptr_Function_v4float %input_0 %int_0 |
| 85 |
OpStore %53 %52 |
| 86 |
%55 = OpLoad %v4float %input_bar |
| 87 |
%56 = OpAccessChain %_ptr_Function_v4float %input_0 %int_1 |
| 88 |
OpStore %56 %55 |
| 89 |
%61 = OpLoad %v3float %uv_1 |
| 90 |
%62 = OpCompositeExtract %float %61 0 |
| 91 |
%63 = OpCompositeExtract %float %61 1 |
| 92 |
%64 = OpCompositeConstruct %v2float %62 %63 |
| 93 |
OpStore %uv_0 %64 |
| 94 |
%68 = OpLoad %_arr_ControlPoint_uint_4 %CPData_1 |
| 95 |
OpStore %CPData_0 %68 |
| 96 |
%72 = OpLoad %HS_INPUT %input_0 |
| 97 |
OpStore %param %72 |
| 98 |
%74 = OpLoad %v2float %uv_0 |
| 99 |
OpStore %param_0 %74 |
| 100 |
%76 = OpLoad %_arr_ControlPoint_uint_4 %CPData_0 |
| 101 |
OpStore %param_1 %76 |
| 102 |
%77 = OpFunctionCall %DS_OUTPUT %_main_struct_HS_INPUT_vf4_vf41_vf2_struct_ControlPoint_vf41_4__ %param %param_0 %param_1 |
| 103 |
%78 = OpCompositeExtract %v4float %77 0 |
| 104 |
OpStore %_entryPointOutput_pos %78 |
| 105 |
OpReturn |
| 106 |
OpFunctionEnd |
| 107 |
%_main_struct_HS_INPUT_vf4_vf41_vf2_struct_ControlPoint_vf41_4__ = OpFunction %DS_OUTPUT None %18 |
| 108 |
%input = OpFunctionParameter %_ptr_Function_HS_INPUT |
| 109 |
%uv = OpFunctionParameter %_ptr_Function_v2float |
| 110 |
%CPData = OpFunctionParameter %_ptr_Function__arr_ControlPoint_uint_4 |
| 111 |
%23 = OpLabel |
| 112 |
%o = OpVariable %_ptr_Function_DS_OUTPUT Function |
| 113 |
%29 = OpAccessChain %_ptr_Function_v4float %input %int_0 |
| 114 |
%30 = OpLoad %v4float %29 |
| 115 |
%32 = OpAccessChain %_ptr_Function_v4float %input %int_1 |
| 116 |
%33 = OpLoad %v4float %32 |
| 117 |
%34 = OpFAdd %v4float %30 %33 |
| 118 |
%35 = OpLoad %v2float %uv |
| 119 |
%36 = OpVectorShuffle %v4float %35 %35 0 1 0 1 |
| 120 |
%37 = OpFAdd %v4float %34 %36 |
| 121 |
%38 = OpAccessChain %_ptr_Function_v4float %CPData %int_0 %int_0 |
| 122 |
%39 = OpLoad %v4float %38 |
| 123 |
%40 = OpFAdd %v4float %37 %39 |
| 124 |
%42 = OpAccessChain %_ptr_Function_v4float %CPData %int_3 %int_0 |
| 125 |
%43 = OpLoad %v4float %42 |
| 126 |
%44 = OpFAdd %v4float %40 %43 |
| 127 |
%45 = OpAccessChain %_ptr_Function_v4float %o %int_0 |
| 128 |
OpStore %45 %44 |
| 129 |
%46 = OpLoad %DS_OUTPUT %o |
| 130 |
OpReturnValue %46 |
| 131 |
OpFunctionEnd |