| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Google spiregg; 0 |
| 4 |
; Bound: 179 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Tessellation |
| 7 |
OpCapability SampledBuffer |
| 8 |
OpExtension "SPV_GOOGLE_hlsl_functionality1" |
| 9 |
%1 = OpExtInstImport "GLSL.std.450" |
| 10 |
OpMemoryModel Logical GLSL450 |
| 11 |
OpEntryPoint TessellationControl %MainHull "main" %in_var_TEXCOORD10_centroid %in_var_TEXCOORD11_centroid %in_var_VS_To_DS_Position %gl_InvocationID %out_var_TEXCOORD10_centroid %out_var_TEXCOORD11_centroid %out_var_VS_To_DS_Position %out_var_Flat_DisplacementScales %out_var_Flat_TessellationMultiplier %out_var_Flat_WorldDisplacementMultiplier %gl_TessLevelOuter %gl_TessLevelInner |
| 12 |
OpExecutionMode %MainHull Triangles |
| 13 |
OpExecutionMode %MainHull SpacingFractionalOdd |
| 14 |
OpExecutionMode %MainHull VertexOrderCw |
| 15 |
OpExecutionMode %MainHull OutputVertices 3 |
| 16 |
OpSource HLSL 600 |
| 17 |
OpName %FFlatTessellationHSToDS "FFlatTessellationHSToDS" |
| 18 |
OpMemberName %FFlatTessellationHSToDS 0 "PassSpecificData" |
| 19 |
OpMemberName %FFlatTessellationHSToDS 1 "DisplacementScale" |
| 20 |
OpMemberName %FFlatTessellationHSToDS 2 "TessellationMultiplier" |
| 21 |
OpMemberName %FFlatTessellationHSToDS 3 "WorldDisplacementMultiplier" |
| 22 |
OpName %FBasePassVSToDS "FBasePassVSToDS" |
| 23 |
OpMemberName %FBasePassVSToDS 0 "FactoryInterpolants" |
| 24 |
OpMemberName %FBasePassVSToDS 1 "BasePassInterpolants" |
| 25 |
OpMemberName %FBasePassVSToDS 2 "Position" |
| 26 |
OpName %FVertexFactoryInterpolantsVSToDS "FVertexFactoryInterpolantsVSToDS" |
| 27 |
OpMemberName %FVertexFactoryInterpolantsVSToDS 0 "InterpolantsVSToPS" |
| 28 |
OpName %FVertexFactoryInterpolantsVSToPS "FVertexFactoryInterpolantsVSToPS" |
| 29 |
OpMemberName %FVertexFactoryInterpolantsVSToPS 0 "TangentToWorld0" |
| 30 |
OpMemberName %FVertexFactoryInterpolantsVSToPS 1 "TangentToWorld2" |
| 31 |
OpName %FBasePassInterpolantsVSToDS "FBasePassInterpolantsVSToDS" |
| 32 |
OpName %FSharedBasePassInterpolants "FSharedBasePassInterpolants" |
| 33 |
OpName %type_Primitive "type.Primitive" |
| 34 |
OpMemberName %type_Primitive 0 "Primitive_LocalToWorld" |
| 35 |
OpMemberName %type_Primitive 1 "Primitive_InvNonUniformScaleAndDeterminantSign" |
| 36 |
OpMemberName %type_Primitive 2 "Primitive_ObjectWorldPositionAndRadius" |
| 37 |
OpMemberName %type_Primitive 3 "Primitive_WorldToLocal" |
| 38 |
OpMemberName %type_Primitive 4 "Primitive_PreviousLocalToWorld" |
| 39 |
OpMemberName %type_Primitive 5 "Primitive_PreviousWorldToLocal" |
| 40 |
OpMemberName %type_Primitive 6 "Primitive_ActorWorldPosition" |
| 41 |
OpMemberName %type_Primitive 7 "Primitive_UseSingleSampleShadowFromStationaryLights" |
| 42 |
OpMemberName %type_Primitive 8 "Primitive_ObjectBounds" |
| 43 |
OpMemberName %type_Primitive 9 "Primitive_LpvBiasMultiplier" |
| 44 |
OpMemberName %type_Primitive 10 "Primitive_DecalReceiverMask" |
| 45 |
OpMemberName %type_Primitive 11 "Primitive_PerObjectGBufferData" |
| 46 |
OpMemberName %type_Primitive 12 "Primitive_UseVolumetricLightmapShadowFromStationaryLights" |
| 47 |
OpMemberName %type_Primitive 13 "Primitive_DrawsVelocity" |
| 48 |
OpMemberName %type_Primitive 14 "Primitive_ObjectOrientation" |
| 49 |
OpMemberName %type_Primitive 15 "Primitive_NonUniformScale" |
| 50 |
OpMemberName %type_Primitive 16 "Primitive_LocalObjectBoundsMin" |
| 51 |
OpMemberName %type_Primitive 17 "Primitive_LightingChannelMask" |
| 52 |
OpMemberName %type_Primitive 18 "Primitive_LocalObjectBoundsMax" |
| 53 |
OpMemberName %type_Primitive 19 "Primitive_LightmapDataIndex" |
| 54 |
OpMemberName %type_Primitive 20 "Primitive_PreSkinnedLocalBounds" |
| 55 |
OpMemberName %type_Primitive 21 "Primitive_SingleCaptureIndex" |
| 56 |
OpMemberName %type_Primitive 22 "Primitive_OutputVelocity" |
| 57 |
OpMemberName %type_Primitive 23 "PrePadding_Primitive_420" |
| 58 |
OpMemberName %type_Primitive 24 "PrePadding_Primitive_424" |
| 59 |
OpMemberName %type_Primitive 25 "PrePadding_Primitive_428" |
| 60 |
OpMemberName %type_Primitive 26 "Primitive_CustomPrimitiveData" |
| 61 |
OpName %Primitive "Primitive" |
| 62 |
OpName %type_Material "type.Material" |
| 63 |
OpMemberName %type_Material 0 "Material_VectorExpressions" |
| 64 |
OpMemberName %type_Material 1 "Material_ScalarExpressions" |
| 65 |
OpName %Material "Material" |
| 66 |
OpName %in_var_TEXCOORD10_centroid "in.var.TEXCOORD10_centroid" |
| 67 |
OpName %in_var_TEXCOORD11_centroid "in.var.TEXCOORD11_centroid" |
| 68 |
OpName %in_var_VS_To_DS_Position "in.var.VS_To_DS_Position" |
| 69 |
OpName %out_var_TEXCOORD10_centroid "out.var.TEXCOORD10_centroid" |
| 70 |
OpName %out_var_TEXCOORD11_centroid "out.var.TEXCOORD11_centroid" |
| 71 |
OpName %out_var_VS_To_DS_Position "out.var.VS_To_DS_Position" |
| 72 |
OpName %out_var_Flat_DisplacementScales "out.var.Flat_DisplacementScales" |
| 73 |
OpName %out_var_Flat_TessellationMultiplier "out.var.Flat_TessellationMultiplier" |
| 74 |
OpName %out_var_Flat_WorldDisplacementMultiplier "out.var.Flat_WorldDisplacementMultiplier" |
| 75 |
OpName %MainHull "MainHull" |
| 76 |
OpName %param_var_I "param.var.I" |
| 77 |
OpName %temp_var_hullMainRetVal "temp.var.hullMainRetVal" |
| 78 |
OpName %if_merge "if.merge" |
| 79 |
OpDecorateString %in_var_TEXCOORD10_centroid UserSemantic "TEXCOORD10_centroid" |
| 80 |
OpDecorateString %in_var_TEXCOORD11_centroid UserSemantic "TEXCOORD11_centroid" |
| 81 |
OpDecorateString %in_var_VS_To_DS_Position UserSemantic "VS_To_DS_Position" |
| 82 |
OpDecorate %gl_InvocationID BuiltIn InvocationId |
| 83 |
OpDecorateString %gl_InvocationID UserSemantic "SV_OutputControlPointID" |
| 84 |
OpDecorateString %out_var_TEXCOORD10_centroid UserSemantic "TEXCOORD10_centroid" |
| 85 |
OpDecorateString %out_var_TEXCOORD11_centroid UserSemantic "TEXCOORD11_centroid" |
| 86 |
OpDecorateString %out_var_VS_To_DS_Position UserSemantic "VS_To_DS_Position" |
| 87 |
OpDecorateString %out_var_Flat_DisplacementScales UserSemantic "Flat_DisplacementScales" |
| 88 |
OpDecorateString %out_var_Flat_TessellationMultiplier UserSemantic "Flat_TessellationMultiplier" |
| 89 |
OpDecorateString %out_var_Flat_WorldDisplacementMultiplier UserSemantic "Flat_WorldDisplacementMultiplier" |
| 90 |
OpDecorate %gl_TessLevelOuter BuiltIn TessLevelOuter |
| 91 |
OpDecorateString %gl_TessLevelOuter UserSemantic "SV_TessFactor" |
| 92 |
OpDecorate %gl_TessLevelOuter Patch |
| 93 |
OpDecorate %gl_TessLevelInner BuiltIn TessLevelInner |
| 94 |
OpDecorateString %gl_TessLevelInner UserSemantic "SV_InsideTessFactor" |
| 95 |
OpDecorate %gl_TessLevelInner Patch |
| 96 |
OpDecorate %in_var_TEXCOORD10_centroid Location 0 |
| 97 |
OpDecorate %in_var_TEXCOORD11_centroid Location 1 |
| 98 |
OpDecorate %in_var_VS_To_DS_Position Location 2 |
| 99 |
OpDecorate %out_var_Flat_DisplacementScales Location 0 |
| 100 |
OpDecorate %out_var_Flat_TessellationMultiplier Location 1 |
| 101 |
OpDecorate %out_var_Flat_WorldDisplacementMultiplier Location 2 |
| 102 |
OpDecorate %out_var_TEXCOORD10_centroid Location 3 |
| 103 |
OpDecorate %out_var_TEXCOORD11_centroid Location 4 |
| 104 |
OpDecorate %out_var_VS_To_DS_Position Location 5 |
| 105 |
OpDecorate %Primitive DescriptorSet 0 |
| 106 |
OpDecorate %Primitive Binding 0 |
| 107 |
OpDecorate %Material DescriptorSet 0 |
| 108 |
OpDecorate %Material Binding 1 |
| 109 |
OpDecorate %_arr_v4float_uint_4 ArrayStride 16 |
| 110 |
OpMemberDecorate %type_Primitive 0 Offset 0 |
| 111 |
OpMemberDecorate %type_Primitive 0 MatrixStride 16 |
| 112 |
OpMemberDecorate %type_Primitive 0 ColMajor |
| 113 |
OpMemberDecorate %type_Primitive 1 Offset 64 |
| 114 |
OpMemberDecorate %type_Primitive 2 Offset 80 |
| 115 |
OpMemberDecorate %type_Primitive 3 Offset 96 |
| 116 |
OpMemberDecorate %type_Primitive 3 MatrixStride 16 |
| 117 |
OpMemberDecorate %type_Primitive 3 ColMajor |
| 118 |
OpMemberDecorate %type_Primitive 4 Offset 160 |
| 119 |
OpMemberDecorate %type_Primitive 4 MatrixStride 16 |
| 120 |
OpMemberDecorate %type_Primitive 4 ColMajor |
| 121 |
OpMemberDecorate %type_Primitive 5 Offset 224 |
| 122 |
OpMemberDecorate %type_Primitive 5 MatrixStride 16 |
| 123 |
OpMemberDecorate %type_Primitive 5 ColMajor |
| 124 |
OpMemberDecorate %type_Primitive 6 Offset 288 |
| 125 |
OpMemberDecorate %type_Primitive 7 Offset 300 |
| 126 |
OpMemberDecorate %type_Primitive 8 Offset 304 |
| 127 |
OpMemberDecorate %type_Primitive 9 Offset 316 |
| 128 |
OpMemberDecorate %type_Primitive 10 Offset 320 |
| 129 |
OpMemberDecorate %type_Primitive 11 Offset 324 |
| 130 |
OpMemberDecorate %type_Primitive 12 Offset 328 |
| 131 |
OpMemberDecorate %type_Primitive 13 Offset 332 |
| 132 |
OpMemberDecorate %type_Primitive 14 Offset 336 |
| 133 |
OpMemberDecorate %type_Primitive 15 Offset 352 |
| 134 |
OpMemberDecorate %type_Primitive 16 Offset 368 |
| 135 |
OpMemberDecorate %type_Primitive 17 Offset 380 |
| 136 |
OpMemberDecorate %type_Primitive 18 Offset 384 |
| 137 |
OpMemberDecorate %type_Primitive 19 Offset 396 |
| 138 |
OpMemberDecorate %type_Primitive 20 Offset 400 |
| 139 |
OpMemberDecorate %type_Primitive 21 Offset 412 |
| 140 |
OpMemberDecorate %type_Primitive 22 Offset 416 |
| 141 |
OpMemberDecorate %type_Primitive 23 Offset 420 |
| 142 |
OpMemberDecorate %type_Primitive 24 Offset 424 |
| 143 |
OpMemberDecorate %type_Primitive 25 Offset 428 |
| 144 |
OpMemberDecorate %type_Primitive 26 Offset 432 |
| 145 |
OpDecorate %type_Primitive Block |
| 146 |
OpDecorate %_arr_v4float_uint_3 ArrayStride 16 |
| 147 |
OpDecorate %_arr_v4float_uint_1 ArrayStride 16 |
| 148 |
OpMemberDecorate %type_Material 0 Offset 0 |
| 149 |
OpMemberDecorate %type_Material 1 Offset 48 |
| 150 |
OpDecorate %type_Material Block |
| 151 |
%float = OpTypeFloat 32 |
| 152 |
%v4float = OpTypeVector %float 4 |
| 153 |
%mat4v4float = OpTypeMatrix %v4float 4 |
| 154 |
%v3float = OpTypeVector %float 3 |
| 155 |
%int = OpTypeInt 32 1 |
| 156 |
%uint = OpTypeInt 32 0 |
| 157 |
%uint_2 = OpConstant %uint 2 |
| 158 |
%uint_4 = OpConstant %uint 4 |
| 159 |
%uint_0 = OpConstant %uint 0 |
| 160 |
%uint_1 = OpConstant %uint 1 |
| 161 |
%uint_3 = OpConstant %uint 3 |
| 162 |
%_arr_float_uint_3 = OpTypeArray %float %uint_3 |
| 163 |
%int_0 = OpConstant %int 0 |
| 164 |
%int_2 = OpConstant %int 2 |
| 165 |
%float_0_5 = OpConstant %float 0.5 |
| 166 |
%int_1 = OpConstant %int 1 |
| 167 |
%float_0_333000004 = OpConstant %float 0.333000004 |
| 168 |
%float_1 = OpConstant %float 1 |
| 169 |
%49 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 170 |
%float_15 = OpConstant %float 15 |
| 171 |
%51 = OpConstantComposite %v4float %float_15 %float_15 %float_15 %float_15 |
| 172 |
%FVertexFactoryInterpolantsVSToPS = OpTypeStruct %v4float %v4float |
| 173 |
%FVertexFactoryInterpolantsVSToDS = OpTypeStruct %FVertexFactoryInterpolantsVSToPS |
| 174 |
%FSharedBasePassInterpolants = OpTypeStruct |
| 175 |
%FBasePassInterpolantsVSToDS = OpTypeStruct %FSharedBasePassInterpolants |
| 176 |
%FBasePassVSToDS = OpTypeStruct %FVertexFactoryInterpolantsVSToDS %FBasePassInterpolantsVSToDS %v4float |
| 177 |
%FFlatTessellationHSToDS = OpTypeStruct %FBasePassVSToDS %v3float %float %float |
| 178 |
%int_15 = OpConstant %int 15 |
| 179 |
%_arr_v4float_uint_4 = OpTypeArray %v4float %uint_4 |
| 180 |
%type_Primitive = OpTypeStruct %mat4v4float %v4float %v4float %mat4v4float %mat4v4float %mat4v4float %v3float %float %v3float %float %float %float %float %float %v4float %v4float %v3float %uint %v3float %uint %v3float %int %uint %uint %uint %uint %_arr_v4float_uint_4 |
| 181 |
%_ptr_Uniform_type_Primitive = OpTypePointer Uniform %type_Primitive |
| 182 |
%_arr_v4float_uint_3 = OpTypeArray %v4float %uint_3 |
| 183 |
%_arr_v4float_uint_1 = OpTypeArray %v4float %uint_1 |
| 184 |
%type_Material = OpTypeStruct %_arr_v4float_uint_3 %_arr_v4float_uint_1 |
| 185 |
%_ptr_Uniform_type_Material = OpTypePointer Uniform %type_Material |
| 186 |
%_arr_v4float_uint_3_0 = OpTypeArray %v4float %uint_3 |
| 187 |
%_ptr_Input__arr_v4float_uint_3_0 = OpTypePointer Input %_arr_v4float_uint_3_0 |
| 188 |
%_ptr_Input_uint = OpTypePointer Input %uint |
| 189 |
%_ptr_Output__arr_v4float_uint_3_0 = OpTypePointer Output %_arr_v4float_uint_3_0 |
| 190 |
%_arr_v3float_uint_3 = OpTypeArray %v3float %uint_3 |
| 191 |
%_ptr_Output__arr_v3float_uint_3 = OpTypePointer Output %_arr_v3float_uint_3 |
| 192 |
%_ptr_Output__arr_float_uint_3 = OpTypePointer Output %_arr_float_uint_3 |
| 193 |
%_arr_float_uint_4 = OpTypeArray %float %uint_4 |
| 194 |
%_ptr_Output__arr_float_uint_4 = OpTypePointer Output %_arr_float_uint_4 |
| 195 |
%_arr_float_uint_2 = OpTypeArray %float %uint_2 |
| 196 |
%_ptr_Output__arr_float_uint_2 = OpTypePointer Output %_arr_float_uint_2 |
| 197 |
%void = OpTypeVoid |
| 198 |
%67 = OpTypeFunction %void |
| 199 |
%_arr_FBasePassVSToDS_uint_3 = OpTypeArray %FBasePassVSToDS %uint_3 |
| 200 |
%_ptr_Function__arr_FBasePassVSToDS_uint_3 = OpTypePointer Function %_arr_FBasePassVSToDS_uint_3 |
| 201 |
%_arr_FFlatTessellationHSToDS_uint_3 = OpTypeArray %FFlatTessellationHSToDS %uint_3 |
| 202 |
%_ptr_Function__arr_FFlatTessellationHSToDS_uint_3 = OpTypePointer Function %_arr_FFlatTessellationHSToDS_uint_3 |
| 203 |
%_ptr_Workgroup__arr_FFlatTessellationHSToDS_uint_3 = OpTypePointer Workgroup %_arr_FFlatTessellationHSToDS_uint_3 |
| 204 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 205 |
%_ptr_Output_v3float = OpTypePointer Output %v3float |
| 206 |
%_ptr_Output_float = OpTypePointer Output %float |
| 207 |
%_ptr_Function_FFlatTessellationHSToDS = OpTypePointer Function %FFlatTessellationHSToDS |
| 208 |
%_ptr_Workgroup_FFlatTessellationHSToDS = OpTypePointer Workgroup %FFlatTessellationHSToDS |
| 209 |
%bool = OpTypeBool |
| 210 |
%_ptr_Function_float = OpTypePointer Function %float |
| 211 |
%_ptr_Workgroup_float = OpTypePointer Workgroup %float |
| 212 |
%mat3v3float = OpTypeMatrix %v3float 3 |
| 213 |
%_ptr_Function_FVertexFactoryInterpolantsVSToDS = OpTypePointer Function %FVertexFactoryInterpolantsVSToDS |
| 214 |
%_ptr_Function_FBasePassVSToDS = OpTypePointer Function %FBasePassVSToDS |
| 215 |
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float |
| 216 |
%_ptr_Uniform_float = OpTypePointer Uniform %float |
| 217 |
%Primitive = OpVariable %_ptr_Uniform_type_Primitive Uniform |
| 218 |
%Material = OpVariable %_ptr_Uniform_type_Material Uniform |
| 219 |
%in_var_TEXCOORD10_centroid = OpVariable %_ptr_Input__arr_v4float_uint_3_0 Input |
| 220 |
%in_var_TEXCOORD11_centroid = OpVariable %_ptr_Input__arr_v4float_uint_3_0 Input |
| 221 |
%in_var_VS_To_DS_Position = OpVariable %_ptr_Input__arr_v4float_uint_3_0 Input |
| 222 |
%gl_InvocationID = OpVariable %_ptr_Input_uint Input |
| 223 |
%out_var_TEXCOORD10_centroid = OpVariable %_ptr_Output__arr_v4float_uint_3_0 Output |
| 224 |
%out_var_TEXCOORD11_centroid = OpVariable %_ptr_Output__arr_v4float_uint_3_0 Output |
| 225 |
%out_var_VS_To_DS_Position = OpVariable %_ptr_Output__arr_v4float_uint_3_0 Output |
| 226 |
%out_var_Flat_DisplacementScales = OpVariable %_ptr_Output__arr_v3float_uint_3 Output |
| 227 |
%out_var_Flat_TessellationMultiplier = OpVariable %_ptr_Output__arr_float_uint_3 Output |
| 228 |
%out_var_Flat_WorldDisplacementMultiplier = OpVariable %_ptr_Output__arr_float_uint_3 Output |
| 229 |
%gl_TessLevelOuter = OpVariable %_ptr_Output__arr_float_uint_4 Output |
| 230 |
%gl_TessLevelInner = OpVariable %_ptr_Output__arr_float_uint_2 Output |
| 231 |
%83 = OpConstantNull %FSharedBasePassInterpolants |
| 232 |
%84 = OpConstantComposite %FBasePassInterpolantsVSToDS %83 |
| 233 |
%85 = OpUndef %v4float |
| 234 |
|
| 235 |
; XXX: Original asm used Function here, which is wrong. |
| 236 |
; This patches the SPIR-V to be correct. |
| 237 |
%temp_var_hullMainRetVal = OpVariable %_ptr_Workgroup__arr_FFlatTessellationHSToDS_uint_3 Workgroup |
| 238 |
|
| 239 |
%MainHull = OpFunction %void None %67 |
| 240 |
%86 = OpLabel |
| 241 |
%param_var_I = OpVariable %_ptr_Function__arr_FBasePassVSToDS_uint_3 Function |
| 242 |
%87 = OpLoad %_arr_v4float_uint_3_0 %in_var_TEXCOORD10_centroid |
| 243 |
%88 = OpLoad %_arr_v4float_uint_3_0 %in_var_TEXCOORD11_centroid |
| 244 |
%89 = OpCompositeExtract %v4float %87 0 |
| 245 |
%90 = OpCompositeExtract %v4float %88 0 |
| 246 |
%91 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToPS %89 %90 |
| 247 |
%92 = OpCompositeExtract %v4float %87 1 |
| 248 |
%93 = OpCompositeExtract %v4float %88 1 |
| 249 |
%94 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToPS %92 %93 |
| 250 |
%95 = OpCompositeExtract %v4float %87 2 |
| 251 |
%96 = OpCompositeExtract %v4float %88 2 |
| 252 |
%97 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToPS %95 %96 |
| 253 |
%98 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToDS %91 |
| 254 |
%99 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToDS %94 |
| 255 |
%100 = OpCompositeConstruct %FVertexFactoryInterpolantsVSToDS %97 |
| 256 |
%101 = OpLoad %_arr_v4float_uint_3_0 %in_var_VS_To_DS_Position |
| 257 |
%102 = OpCompositeExtract %v4float %101 0 |
| 258 |
%103 = OpCompositeConstruct %FBasePassVSToDS %98 %84 %102 |
| 259 |
%104 = OpCompositeExtract %v4float %101 1 |
| 260 |
%105 = OpCompositeConstruct %FBasePassVSToDS %99 %84 %104 |
| 261 |
%106 = OpCompositeExtract %v4float %101 2 |
| 262 |
%107 = OpCompositeConstruct %FBasePassVSToDS %100 %84 %106 |
| 263 |
%108 = OpCompositeConstruct %_arr_FBasePassVSToDS_uint_3 %103 %105 %107 |
| 264 |
OpStore %param_var_I %108 |
| 265 |
%109 = OpLoad %uint %gl_InvocationID |
| 266 |
%110 = OpAccessChain %_ptr_Function_FVertexFactoryInterpolantsVSToDS %param_var_I %109 %int_0 |
| 267 |
%111 = OpLoad %FVertexFactoryInterpolantsVSToDS %110 |
| 268 |
%112 = OpCompositeExtract %FVertexFactoryInterpolantsVSToPS %111 0 |
| 269 |
%113 = OpCompositeExtract %v4float %112 0 |
| 270 |
%114 = OpCompositeExtract %v4float %112 1 |
| 271 |
%115 = OpVectorShuffle %v3float %113 %113 0 1 2 |
| 272 |
%116 = OpVectorShuffle %v3float %114 %114 0 1 2 |
| 273 |
%117 = OpExtInst %v3float %1 Cross %116 %115 |
| 274 |
%118 = OpCompositeExtract %float %114 3 |
| 275 |
%119 = OpCompositeConstruct %v3float %118 %118 %118 |
| 276 |
%120 = OpFMul %v3float %117 %119 |
| 277 |
%121 = OpCompositeConstruct %mat3v3float %115 %120 %116 |
| 278 |
%122 = OpAccessChain %_ptr_Uniform_v4float %Primitive %int_15 |
| 279 |
%123 = OpLoad %v4float %122 |
| 280 |
%124 = OpVectorShuffle %v3float %123 %123 0 1 2 |
| 281 |
%125 = OpVectorTimesMatrix %v3float %124 %121 |
| 282 |
%126 = OpAccessChain %_ptr_Function_FBasePassVSToDS %param_var_I %109 |
| 283 |
%127 = OpLoad %FBasePassVSToDS %126 |
| 284 |
%128 = OpAccessChain %_ptr_Uniform_float %Material %int_1 %int_0 %int_0 |
| 285 |
%129 = OpLoad %float %128 |
| 286 |
%130 = OpCompositeConstruct %FFlatTessellationHSToDS %127 %125 %129 %float_1 |
| 287 |
%131 = OpCompositeExtract %FVertexFactoryInterpolantsVSToDS %127 0 |
| 288 |
%132 = OpCompositeExtract %FVertexFactoryInterpolantsVSToPS %131 0 |
| 289 |
%133 = OpCompositeExtract %v4float %132 0 |
| 290 |
%134 = OpAccessChain %_ptr_Output_v4float %out_var_TEXCOORD10_centroid %109 |
| 291 |
OpStore %134 %133 |
| 292 |
%135 = OpCompositeExtract %v4float %132 1 |
| 293 |
%136 = OpAccessChain %_ptr_Output_v4float %out_var_TEXCOORD11_centroid %109 |
| 294 |
OpStore %136 %135 |
| 295 |
%137 = OpCompositeExtract %v4float %127 2 |
| 296 |
%138 = OpAccessChain %_ptr_Output_v4float %out_var_VS_To_DS_Position %109 |
| 297 |
OpStore %138 %137 |
| 298 |
%139 = OpAccessChain %_ptr_Output_v3float %out_var_Flat_DisplacementScales %109 |
| 299 |
OpStore %139 %125 |
| 300 |
%140 = OpAccessChain %_ptr_Output_float %out_var_Flat_TessellationMultiplier %109 |
| 301 |
OpStore %140 %129 |
| 302 |
%141 = OpAccessChain %_ptr_Output_float %out_var_Flat_WorldDisplacementMultiplier %109 |
| 303 |
OpStore %141 %float_1 |
| 304 |
%142 = OpAccessChain %_ptr_Workgroup_FFlatTessellationHSToDS %temp_var_hullMainRetVal %109 |
| 305 |
OpStore %142 %130 |
| 306 |
OpControlBarrier %uint_2 %uint_4 %uint_0 |
| 307 |
%143 = OpIEqual %bool %109 %uint_0 |
| 308 |
OpSelectionMerge %if_merge None |
| 309 |
OpBranchConditional %143 %144 %if_merge |
| 310 |
%144 = OpLabel |
| 311 |
%145 = OpAccessChain %_ptr_Workgroup_float %temp_var_hullMainRetVal %uint_1 %int_2 |
| 312 |
%146 = OpLoad %float %145 |
| 313 |
%147 = OpAccessChain %_ptr_Workgroup_float %temp_var_hullMainRetVal %uint_2 %int_2 |
| 314 |
%148 = OpLoad %float %147 |
| 315 |
%149 = OpFAdd %float %146 %148 |
| 316 |
%150 = OpFMul %float %float_0_5 %149 |
| 317 |
%151 = OpCompositeInsert %v4float %150 %85 0 |
| 318 |
%152 = OpLoad %float %147 |
| 319 |
%153 = OpAccessChain %_ptr_Workgroup_float %temp_var_hullMainRetVal %uint_0 %int_2 |
| 320 |
%154 = OpLoad %float %153 |
| 321 |
%155 = OpFAdd %float %152 %154 |
| 322 |
%156 = OpFMul %float %float_0_5 %155 |
| 323 |
%157 = OpCompositeInsert %v4float %156 %151 1 |
| 324 |
%158 = OpLoad %float %153 |
| 325 |
%159 = OpLoad %float %145 |
| 326 |
%160 = OpFAdd %float %158 %159 |
| 327 |
%161 = OpFMul %float %float_0_5 %160 |
| 328 |
%162 = OpCompositeInsert %v4float %161 %157 2 |
| 329 |
%163 = OpLoad %float %153 |
| 330 |
%164 = OpLoad %float %145 |
| 331 |
%165 = OpFAdd %float %163 %164 |
| 332 |
%166 = OpLoad %float %147 |
| 333 |
%167 = OpFAdd %float %165 %166 |
| 334 |
%168 = OpFMul %float %float_0_333000004 %167 |
| 335 |
%169 = OpCompositeInsert %v4float %168 %162 3 |
| 336 |
%170 = OpExtInst %v4float %1 FClamp %169 %49 %51 |
| 337 |
%171 = OpCompositeExtract %float %170 0 |
| 338 |
%172 = OpCompositeExtract %float %170 1 |
| 339 |
%173 = OpCompositeExtract %float %170 2 |
| 340 |
%174 = OpCompositeExtract %float %170 3 |
| 341 |
%175 = OpAccessChain %_ptr_Output_float %gl_TessLevelOuter %uint_0 |
| 342 |
OpStore %175 %171 |
| 343 |
%176 = OpAccessChain %_ptr_Output_float %gl_TessLevelOuter %uint_1 |
| 344 |
OpStore %176 %172 |
| 345 |
%177 = OpAccessChain %_ptr_Output_float %gl_TessLevelOuter %uint_2 |
| 346 |
OpStore %177 %173 |
| 347 |
%178 = OpAccessChain %_ptr_Output_float %gl_TessLevelInner %uint_0 |
| 348 |
OpStore %178 %174 |
| 349 |
OpBranch %if_merge |
| 350 |
%if_merge = OpLabel |
| 351 |
OpReturn |
| 352 |
OpFunctionEnd |