【目标】

编译UNREALPORJECT2工程

【思路】

1

2

3

一件衣服23932个面

vs:

  1. //
  2. // Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
  3. //
  4. //
  5. // Buffer Definitions:
  6. //
  7. // cbuffer WorldBuffer
  8. // {
  9. //
  10. // struct WorldStruct
  11. // {
  12. //
  13. // row_major float4x4 ViewProject;// Offset: 0
  14. //
  15. // struct WorldStruct_PerInstanceData
  16. // {
  17. //
  18. // row_major float4x4 World; // Offset: 64
  19. // row_major float4x4 WorldViewProject;// Offset: 128
  20. //
  21. // } PerInstance[256]; // Offset: 64
  22. //
  23. // } WorldParameters; // Offset: 0 Size: 32832
  24. //
  25. // }
  26. //
  27. // cbuffer SkinningBuffer
  28. // {
  29. //
  30. // struct SkinningStruct
  31. // {
  32. //
  33. // float NumSkinMatricesPerInstance;// Offset: 0
  34. // row_major float4x4 SkinMatrices[1023];// Offset: 16
  35. //
  36. // } SkinningParameters; // Offset: 0 Size: 65488
  37. //
  38. // }
  39. //
  40. // cbuffer SceneBuffer
  41. // {
  42. //
  43. // row_major float4x4 View; // Offset: 0 Size: 64 [unused]
  44. // row_major float4x4 ScreenMatrix; // Offset: 64 Size: 64 [unused]
  45. // float2 DepthExportScale; // Offset: 128 Size: 8 [unused]
  46. // float2 __padding0; // Offset: 136 Size: 8 [unused]
  47. // float4 FogParams; // Offset: 144 Size: 16 [unused]
  48. // float3 __CameraPosition; // Offset: 160 Size: 12 [unused]
  49. // float __padding12; // Offset: 172 Size: 4 [unused]
  50. // float3 CameraDirection; // Offset: 176 Size: 12 [unused]
  51. // float __padding9; // Offset: 188 Size: 4 [unused]
  52. // float3 DepthFactors; // Offset: 192 Size: 12 [unused]
  53. // float __padding10; // Offset: 204 Size: 4 [unused]
  54. // float3 ShadowDepthBiasAndLightType;// Offset: 208 Size: 12 [unused]
  55. // float __padding11; // Offset: 220 Size: 4 [unused]
  56. // float4 SubframeViewport; // Offset: 224 Size: 16 [unused]
  57. // row_major float3x4 DepthToWorld; // Offset: 240 Size: 48 [unused]
  58. // float4 DepthToView; // Offset: 288 Size: 16 [unused]
  59. // float4 OneOverDepthToView; // Offset: 304 Size: 16 [unused]
  60. // float4 DepthToW; // Offset: 320 Size: 16 [unused]
  61. // float4 ClipPlane; // Offset: 336 Size: 16 [unused]
  62. // float2 ViewportDepthScaleOffset; // Offset: 352 Size: 8 [unused]
  63. // float2 __padding1; // Offset: 360 Size: 8 [unused]
  64. // float2 ColorDOFDepthScaleOffset; // Offset: 368 Size: 8 [unused]
  65. // float2 __padding2; // Offset: 376 Size: 8 [unused]
  66. // float4 TimeVector; // Offset: 384 Size: 16
  67. // float4 FogParams2; // Offset: 400 Size: 16 [unused]
  68. // float4 FogParams3; // Offset: 416 Size: 16 [unused]
  69. // float3 GlobalAmbient; // Offset: 432 Size: 12 [unused]
  70. // float __padding8; // Offset: 444 Size: 4 [unused]
  71. // float4 GlobalParams[16]; // Offset: 448 Size: 256 [unused]
  72. // float4 ViewToFogH; // Offset: 704 Size: 16 [unused]
  73. // float4 ScreenExtents; // Offset: 720 Size: 16 [unused]
  74. // float2 ScreenResolution; // Offset: 736 Size: 8 [unused]
  75. // float2 __padding3; // Offset: 744 Size: 8 [unused]
  76. // float4 PSSMToMap1Lin; // Offset: 752 Size: 16 [unused]
  77. // float4 PSSMToMap1Const; // Offset: 768 Size: 16 [unused]
  78. // float4 PSSMToMap2Lin; // Offset: 784 Size: 16 [unused]
  79. // float4 PSSMToMap2Const; // Offset: 800 Size: 16 [unused]
  80. // float4 PSSMToMap3Lin; // Offset: 816 Size: 16 [unused]
  81. // float4 PSSMToMap3Const; // Offset: 832 Size: 16 [unused]
  82. // float4 PSSMDistances; // Offset: 848 Size: 16 [unused]
  83. // row_major float4x4 WorldToPSSM0; // Offset: 864 Size: 64 [unused]
  84. // row_major float4x4 PrevViewProject;// Offset: 928 Size: 64 [unused]
  85. // row_major float4x4 PrevWorld; // Offset: 992 Size: 64 [unused]
  86. // row_major float4x4 ViewT; // Offset: 1056 Size: 64 [unused]
  87. // float4 PSSMExtents; // Offset: 1120 Size: 16 [unused]
  88. // float4 ShadowAtlasResolution; // Offset: 1136 Size: 16 [unused]
  89. // float4 UnitRimData[3]; // Offset: 1152 Size: 48 [unused]
  90. // float3 __CameraPositionForCorrection;// Offset: 1200 Size: 12
  91. // float __padding7; // Offset: 1212 Size: 4 [unused]
  92. // row_major float4x4 CameraViewProject;// Offset: 1216 Size: 64 [unused]
  93. // float4 BackBufferResolution; // Offset: 1280 Size: 16 [unused]
  94. // row_major float4x4 InverseProjection;// Offset: 1296 Size: 64 [unused]
  95. // float4 StereoOffset; // Offset: 1360 Size: 16 [unused]
  96. // row_major float4x4 Projection; // Offset: 1376 Size: 64 [unused]
  97. // row_major float4x4 ViewInv; // Offset: 1440 Size: 64 [unused]
  98. // float4 ColorSSAO; // Offset: 1504 Size: 16 [unused]
  99. // float4 GlobalFogColor; // Offset: 1520 Size: 16 [unused]
  100. // float4 VolumetricLightGlobalParams;// Offset: 1536 Size: 16 [unused]
  101. // float4 SnowParams01; // Offset: 1552 Size: 16 [unused]
  102. // float4 SnowParams02; // Offset: 1568 Size: 16 [unused]
  103. // float4 SnowParams03; // Offset: 1584 Size: 16 [unused]
  104. // int SSREnabled; // Offset: 1600 Size: 4 [unused]
  105. // int __padding4; // Offset: 1604 Size: 4 [unused]
  106. // int __padding5; // Offset: 1608 Size: 4 [unused]
  107. // int __padding6; // Offset: 1612 Size: 4 [unused]
  108. //
  109. // }
  110. //
  111. // cbuffer StreamDeclBuffer
  112. // {
  113. //
  114. // float4 NormalScaleOffset; // Offset: 0 Size: 16
  115. // float4 TexcoordScales; // Offset: 16 Size: 16
  116. //
  117. // }
  118. //
  119. // cbuffer MaterialBuffer
  120. // {
  121. //
  122. // float4 MaterialParams[512]; // Offset: 0 Size: 8192
  123. //
  124. // }
  125. //
  126. // cbuffer InstanceBuffer
  127. // {
  128. //
  129. // struct InstanceStruct
  130. // {
  131. //
  132. // float4 InstanceParams[8]; // Offset: 0
  133. //
  134. // } InstanceParameters[256]; // Offset: 0 Size: 32768
  135. //
  136. // }
  137. //
  138. //
  139. // Resource Bindings:
  140. //
  141. // Name Type Format Dim Slot Elements
  142. // ------------------------------ ---------- ------- ----------- ---- --------
  143. // WorldBuffer cbuffer NA NA 0 1
  144. // SkinningBuffer cbuffer NA NA 1 1
  145. // SceneBuffer cbuffer NA NA 2 1
  146. // StreamDeclBuffer cbuffer NA NA 3 1
  147. // MaterialBuffer cbuffer NA NA 4 1
  148. // InstanceBuffer cbuffer NA NA 5 1
  149. //
  150. //
  151. //
  152. // Input signature:
  153. //
  154. // Name Index Mask Register SysValue Format Used
  155. // -------------------- ----- ------ -------- -------- ------- ------
  156. // NORMAL 0 xyz 0 NONE float xyz
  157. // BLENDWEIGHT 0 xyzw 1 NONE float xyzw
  158. // BLENDINDICES 0 xyzw 2 NONE float xyzw
  159. // COLOR 0 xyzw 3 NONE float x
  160. // TEXCOORD 0 xyzw 4 NONE float xy
  161. // POSITION 0 xyz 5 NONE float xyz
  162. // SV_InstanceID 0 x 6 INSTID uint x
  163. // SV_VertexID 0 x 7 VERTID uint
  164. //
  165. //
  166. // Output signature:
  167. //
  168. // Name Index Mask Register SysValue Format Used
  169. // -------------------- ----- ------ -------- -------- ------- ------
  170. // SV_POSITION 0 xyzw 0 POS float xyzw
  171. // COLOR 1 xyzw 1 NONE float xyzw
  172. // TEXCOORD 0 xyzw 2 NONE float xyzw
  173. // TEXCOORD 2 xyz 3 NONE float xyz
  174. // PSIZE 0 x 4 NONE uint x
  175. //
  176. vs_5_0
  177. dcl_globalFlags refactoringAllowed
  178. dcl_constantbuffer cb0[4], immediateIndexed
  179. dcl_constantbuffer cb1[4093], dynamicIndexed
  180. dcl_constantbuffer cb2[76], immediateIndexed
  181. dcl_constantbuffer cb3[2], immediateIndexed
  182. dcl_constantbuffer cb4[1], immediateIndexed
  183. dcl_constantbuffer cb5[2046], dynamicIndexed
  184. dcl_input v0.xyz
  185. dcl_input v1.xyzw
  186. dcl_input v2.xyzw
  187. dcl_input v3.x
  188. dcl_input v4.xy
  189. dcl_input v5.xyz
  190. dcl_input_sgv v6.x, instance_id
  191. dcl_output_siv o0.xyzw, position
  192. dcl_output o1.xyzw
  193. dcl_output o2.xyzw
  194. dcl_output o3.xyz
  195. dcl_output o4.x
  196. dcl_temps 7
  197. ishl r0.x, v6.x, l(3)
  198. mul r0.xyz, cb2[24].xxxx, cb5[r0.x + 5].xyzx
  199. mul r0.xyz, r0.xyzx, cb4[0].yyyy
  200. mul r0.xyz, r0.xyzx, v5.xyzx
  201. mul r0.xyz, r0.xyzx, l(0.005000, 0.005000, 0.005000, 0.000000)
  202. sincos r0.xyz, null, r0.xyzx
  203. mul r0.xyz, r0.xyzx, cb4[0].xxxx
  204. utof r0.w, v6.x
  205. mul r0.w, r0.w, cb1[0].x
  206. round_z r0.w, r0.w
  207. mul r1.xyzw, v2.xyzw, l(255.000000, 255.000000, 255.000000, 255.000000)
  208. round_ne r1.xyzw, r1.xyzw
  209. add r1.xyzw, r0.wwww, r1.xyzw
  210. ftou r1.xyzw, r1.xyzw
  211. ishl r1.xyzw, r1.xyzw, l(2, 2, 2, 2)
  212. mul r2.xyzw, v1.yyyy, cb1[r1.y + 1].xyzw
  213. mad r2.xyzw, cb1[r1.x + 1].xyzw, v1.xxxx, r2.xyzw
  214. mad r2.xyzw, cb1[r1.z + 1].xyzw, v1.zzzz, r2.xyzw
  215. mad r2.xyzw, cb1[r1.w + 1].xyzw, v1.wwww, r2.xyzw
  216. mov r3.xyz, v5.xyzx
  217. mov r3.w, l(1.000000)
  218. dp4 r4.x, r2.xyzw, r3.xyzw
  219. mul r5.xyzw, v1.yyyy, cb1[r1.y + 2].xyzw
  220. mad r5.xyzw, cb1[r1.x + 2].xyzw, v1.xxxx, r5.xyzw
  221. mad r5.xyzw, cb1[r1.z + 2].xyzw, v1.zzzz, r5.xyzw
  222. mad r5.xyzw, cb1[r1.w + 2].xyzw, v1.wwww, r5.xyzw
  223. dp4 r4.y, r5.xyzw, r3.xyzw
  224. mul r6.xyzw, v1.yyyy, cb1[r1.y + 3].xyzw
  225. mad r6.xyzw, cb1[r1.x + 3].xyzw, v1.xxxx, r6.xyzw
  226. mad r6.xyzw, cb1[r1.z + 3].xyzw, v1.zzzz, r6.xyzw
  227. mad r6.xyzw, cb1[r1.w + 3].xyzw, v1.wwww, r6.xyzw
  228. dp4 r4.z, r6.xyzw, r3.xyzw
  229. mad r0.xyz, r0.xyzx, v3.xxxx, r4.xyzx
  230. add r0.xyz, r0.xyzx, -cb2[75].xyzx
  231. mul r3.xyzw, r0.yyyy, cb0[1].xyzw
  232. mad r3.xyzw, r0.xxxx, cb0[0].xyzw, r3.xyzw
  233. mad r0.xyzw, r0.zzzz, cb0[2].xyzw, r3.xyzw
  234. add o0.xyzw, r0.xyzw, cb0[3].xyzw
  235. mul r0.xyzw, v1.yyyy, cb1[r1.y + 4].xyzw
  236. mad r0.xyzw, cb1[r1.x + 4].xyzw, v1.xxxx, r0.xyzw
  237. mad r0.xyzw, cb1[r1.z + 4].xyzw, v1.zzzz, r0.xyzw
  238. mad r0.xyzw, cb1[r1.w + 4].xyzw, v1.wwww, r0.xyzw
  239. and r1.xyzw, r0.xyzw, l(0x7f800000, 0x7f800000, 0x7f800000, 0x7f800000)
  240. ine r1.xyzw, r1.xyzw, l(0x7f800000, 0x7f800000, 0x7f800000, 0x7f800000)
  241. and o1.xyzw, r0.xyzw, r1.xyzw
  242. mul o2.xy, v4.xyxx, cb3[1].xxxx
  243. mov o2.zw, l(0,0,0,0)
  244. mad r0.xyz, cb3[0].xxxx, v0.xyzx, cb3[0].yyyy
  245. dp3 o3.x, r2.xyzx, r0.xyzx
  246. dp3 o3.y, r5.xyzx, r0.xyzx
  247. dp3 o3.z, r6.xyzx, r0.xyzx
  248. mov o4.x, v6.x
  249. ret
  250. // Approximately 53 instruction slots used

PS:

  1. //
  2. // Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
  3. //
  4. //
  5. // Buffer Definitions:
  6. //
  7. // cbuffer VoxelizationCB
  8. // {
  9. //
  10. // struct VxgiVoxelizationConstants
  11. // {
  12. //
  13. // float4 GridCenter; // Offset: 0
  14. // float4 GridCenterPrevious; // Offset: 16
  15. // int4 ToroidalOffset; // Offset: 32
  16. //
  17. // struct VxgiBox4f
  18. // {
  19. //
  20. // float4 lower; // Offset: 48
  21. // float4 upper; // Offset: 64
  22. //
  23. // } ScissorRegionsClipSpace[5]; // Offset: 48
  24. // int4 TextureToAmapTranslation[5];// Offset: 208
  25. // float IrradianceMapSize; // Offset: 288
  26. // uint ClipLevelSize; // Offset: 292
  27. // uint PackingStride; // Offset: 296
  28. // uint AllocationMapSize; // Offset: 300
  29. // uint ClipLevelMask; // Offset: 304
  30. // uint MaxClipLevel; // Offset: 308
  31. // int FirstLevelToDiscard; // Offset: 312
  32. // float DiscardLower; // Offset: 316
  33. // float DiscardUpper; // Offset: 320
  34. // float DiscardClipSpace; // Offset: 324
  35. // uint UseCullFunction; // Offset: 328
  36. // float EmittanceStorageScale; // Offset: 332
  37. // uint UseIrradianceMap; // Offset: 336
  38. // uint Use6DOpacity; // Offset: 340
  39. // uint UseFP32Emittance; // Offset: 344
  40. // uint PersistentVoxelData; // Offset: 348
  41. // uint UseInvalidateBitmap; // Offset: 352
  42. //
  43. // } g_VxgiVoxelizationCB; // Offset: 0 Size: 356
  44. //
  45. // }
  46. //
  47. // cbuffer VoxelizationMaterialCB
  48. // {
  49. //
  50. // struct VxgiVoxelizationMaterialConstants
  51. // {
  52. //
  53. // float4 ResolutionFactors[5]; // Offset: 0
  54. // float NoiseScale; // Offset: 80
  55. // float NoiseBias; // Offset: 84
  56. // int TwoSided; // Offset: 88
  57. // int ProportionalEmittance; // Offset: 92
  58. // int DepthSamples; // Offset: 96
  59. // int FrontCCW; // Offset: 100
  60. // int OmnidirectionalLight; // Offset: 104
  61. //
  62. // } g_VxgiVoxelizationMaterialCB; // Offset: 0 Size: 108
  63. //
  64. // }
  65. //
  66. // Resource bind info for t_VoxelizationCoverageMasks
  67. // {
  68. //
  69. // uint4 $Element; // Offset: 0 Size: 16
  70. //
  71. // }
  72. //
  73. //
  74. // Resource Bindings:
  75. //
  76. // Name Type Format Dim Slot Elements
  77. // ------------------------------ ---------- ------- ----------- ---- --------
  78. // t_VoxelizationCoverageMasks texture struct r/o 1 1
  79. // u_AllocationMap UAV uint 3d 1 1
  80. // u_CoverageTextureXYZ_Pos UAV uint 3d 2 1
  81. // u_CoverageTextureXYZ_Neg UAV uint 3d 3 1
  82. // VoxelizationCB cbuffer NA NA 1 1
  83. // VoxelizationMaterialCB cbuffer NA NA 2 1
  84. //
  85. //
  86. //
  87. // Input signature:
  88. //
  89. // Name Index Mask Register SysValue Format Used
  90. // -------------------- ----- ------ -------- -------- ------- ------
  91. // SV_Position 0 xyzw 0 POS float xyz
  92. // SV_ViewportArrayIndex 0 x 1 VPINDEX uint x
  93. // SV_IsFrontFace 0 x 2 FFACE uint x
  94. //
  95. //
  96. // Output signature:
  97. //
  98. // Name Index Mask Register SysValue Format Used
  99. // -------------------- ----- ------ -------- -------- ------- ------
  100. // no Output
  101. ps_5_0
  102. dcl_globalFlags refactoringAllowed
  103. dcl_constantbuffer cb1[23], dynamicIndexed
  104. dcl_constantbuffer cb2[7], immediateIndexed
  105. dcl_resource_structured t1, 16
  106. dcl_uav_typed_texture3d (uint,uint,uint,uint) u1
  107. dcl_uav_typed_texture3d (uint,uint,uint,uint) u2
  108. dcl_uav_typed_texture3d (uint,uint,uint,uint) u3
  109. dcl_input_ps_siv linear noperspective v0.xyz, position
  110. dcl_input_ps_siv constant v1.x, viewport_array_index
  111. dcl_input_ps_sgv v2.x, is_front_face
  112. dcl_input vCoverage
  113. dcl_temps 12
  114. utof r0.x, v1.x
  115. mul r0.x, r0.x, l(0.334000)
  116. frc r0.y, r0.x
  117. mul r0.y, r0.y, l(3.000000)
  118. round_ni r0.xy, r0.xyxx
  119. ftoi r0.xy, r0.xyxx
  120. iadd r0.z, -r0.x, cb1[19].y
  121. ishl r0.z, l(1), r0.z
  122. itof r0.z, r0.z
  123. mul r0.z, r0.z, v0.z
  124. mad r0.z, r0.z, l(0.500000), l(0.500000)
  125. utof r0.w, cb1[18].y
  126. mul r1.x, r0.w, r0.z
  127. round_ne r1.y, r1.x
  128. mad r1.y, r0.z, r0.w, -r1.y
  129. lt r1.y, |r1.y|, l(0.007813)
  130. mad r0.z, r0.z, r0.w, l(0.015625)
  131. movc r1.y, r1.y, r0.z, r1.x
  132. add r1.x, r0.w, -v0.y
  133. if_z r0.y
  134. ishl r0.z, r0.x, l(1)
  135. lt r0.w, v0.z, cb1[r0.z + 3].z
  136. lt r0.z, cb1[r0.z + 4].z, v0.z
  137. or r0.z, r0.z, r0.w
  138. mov r2.x, v0.x
  139. mov r2.yz, r1.xxyx
  140. mov r3.xyz, l(0,0,1,0)
  141. else
  142. ieq r0.w, r0.y, l(1)
  143. if_nz r0.w
  144. ishl r0.w, r0.x, l(1)
  145. lt r2.w, v0.z, cb1[r0.w + 3].y
  146. lt r0.w, cb1[r0.w + 4].y, v0.z
  147. or r0.z, r0.w, r2.w
  148. mov r1.z, v0.x
  149. mov r2.xyz, r1.xyzx
  150. mov r3.xy, l(0,1,0,0)
  151. else
  152. ishl r0.w, r0.x, l(1)
  153. lt r1.z, v0.z, cb1[r0.w + 3].x
  154. lt r0.w, cb1[r0.w + 4].x, v0.z
  155. or r0.z, r0.w, r1.z
  156. mov r1.w, v0.x
  157. mov r2.xyz, r1.ywxy
  158. mov r3.xy, l(1,0,0,0)
  159. endif
  160. mov r3.z, l(0)
  161. endif
  162. discard_nz r0.z
  163. if_z r0.z
  164. not r0.z, v2.x
  165. movc r0.z, cb2[6].y, r0.z, v2.x
  166. round_ni r1.xzw, r2.xxyz
  167. ftoi r1.xzw, r1.xxzw
  168. movc r0.w, r0.z, l(0.334000), l(-0.334000)
  169. iadd r4.xyz, -r3.xyzx, r1.xzwx
  170. movc r1.xzw, r0.zzzz, r1.xxzw, r4.xxyz
  171. deriv_rtx_coarse r4.x, r1.y
  172. deriv_rty_coarse r4.y, r1.y
  173. frc r1.y, r1.y
  174. itof r2.w, cb2[6].x
  175. mad r0.w, r0.w, r2.w, l(2.000000)
  176. add r0.w, r0.w, -cb2[5].x
  177. add r0.w, r0.w, -cb2[5].y
  178. add r0.w, r0.w, r1.y
  179. add r1.y, r1.y, cb2[5].y
  180. add r1.y, r1.y, l(1.000000)
  181. movc r0.w, r0.z, r1.y, r0.w
  182. imad r0.y, cb2[6].x, l(3), r0.y
  183. imul null, r0.y, r0.y, l(9)
  184. ishl r0.y, r0.y, l(3)
  185. and r5.xyzw, vCoverage.xxxx, l(1, 2, 4, 8)
  186. dp2 r1.y, r4.xyxx, l(0.062500, -0.187500, 0.000000, 0.000000)
  187. add r1.y, r0.w, r1.y
  188. mad r1.y, cb2[5].x, l(0.900000), r1.y
  189. mul r1.y, r1.y, l(3.000000)
  190. ftoi r1.y, r1.y
  191. imin r1.y, r1.y, l(8)
  192. imax r1.y, r1.y, l(0)
  193. ishl r1.y, r1.y, l(3)
  194. iadd r1.y, r0.y, r1.y
  195. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r6.xyzw, r1.y, l(0), t1.xyzw
  196. movc r6.xyzw, r5.xxxx, r6.xyzw, l(0,0,0,0)
  197. dp2 r1.y, r4.xyxx, l(-0.062500, 0.187500, 0.000000, 0.000000)
  198. add r1.y, r0.w, r1.y
  199. mad r1.y, cb2[5].x, l(0.400000), r1.y
  200. mul r1.y, r1.y, l(3.000000)
  201. ftoi r1.y, r1.y
  202. imin r1.y, r1.y, l(8)
  203. imax r1.y, r1.y, l(0)
  204. ishl r1.y, r1.y, l(3)
  205. iadd r1.y, r0.y, r1.y
  206. iadd r1.y, r1.y, l(1)
  207. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  208. or r7.xyzw, r6.xyzw, r7.xyzw
  209. movc r6.xyzw, r5.yyyy, r7.xyzw, r6.xyzw
  210. dp2 r1.y, r4.xyxx, l(0.312500, 0.062500, 0.000000, 0.000000)
  211. add r1.y, r0.w, r1.y
  212. mad r1.y, cb2[5].x, l(0.500000), r1.y
  213. mul r1.y, r1.y, l(3.000000)
  214. ftoi r1.y, r1.y
  215. imin r1.y, r1.y, l(8)
  216. imax r1.y, r1.y, l(0)
  217. ishl r1.y, r1.y, l(3)
  218. iadd r1.y, r0.y, r1.y
  219. iadd r1.y, r1.y, l(2)
  220. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  221. or r7.xyzw, r6.xyzw, r7.xyzw
  222. movc r6.xyzw, r5.zzzz, r7.xyzw, r6.xyzw
  223. dp2 r1.y, r4.xyxx, l(-0.187500, -0.312500, 0.000000, 0.000000)
  224. add r1.y, r0.w, r1.y
  225. mad r1.y, cb2[5].x, l(0.600000), r1.y
  226. mul r1.y, r1.y, l(3.000000)
  227. ftoi r1.y, r1.y
  228. imin r1.y, r1.y, l(8)
  229. imax r1.y, r1.y, l(0)
  230. ishl r1.y, r1.y, l(3)
  231. iadd r1.y, r0.y, r1.y
  232. iadd r1.y, r1.y, l(3)
  233. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  234. or r7.xyzw, r6.xyzw, r7.xyzw
  235. movc r5.xyzw, r5.wwww, r7.xyzw, r6.xyzw
  236. and r6.xyzw, vCoverage.xxxx, l(16, 32, 64, 128)
  237. dp2 r1.y, r4.xyxx, l(-0.312500, 0.312500, 0.000000, 0.000000)
  238. add r1.y, r0.w, r1.y
  239. mad r1.y, cb2[5].x, l(0.100000), r1.y
  240. mul r1.y, r1.y, l(3.000000)
  241. ftoi r1.y, r1.y
  242. imin r1.y, r1.y, l(8)
  243. imax r1.y, r1.y, l(0)
  244. ishl r1.y, r1.y, l(3)
  245. iadd r1.y, r0.y, r1.y
  246. iadd r1.y, r1.y, l(4)
  247. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  248. or r7.xyzw, r5.xyzw, r7.xyzw
  249. movc r5.xyzw, r6.xxxx, r7.xyzw, r5.xyzw
  250. dp2 r1.y, r4.xyxx, l(-0.437500, 0.062500, 0.000000, 0.000000)
  251. add r1.y, r0.w, r1.y
  252. mad r1.y, cb2[5].x, l(0.800000), r1.y
  253. mul r1.y, r1.y, l(3.000000)
  254. ftoi r1.y, r1.y
  255. imin r1.y, r1.y, l(8)
  256. imax r1.y, r1.y, l(0)
  257. ishl r1.y, r1.y, l(3)
  258. iadd r1.y, r0.y, r1.y
  259. iadd r1.y, r1.y, l(5)
  260. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  261. or r7.xyzw, r5.xyzw, r7.xyzw
  262. movc r5.xyzw, r6.yyyy, r7.xyzw, r5.xyzw
  263. dp2 r1.y, r4.xyxx, l(0.187500, 0.437500, 0.000000, 0.000000)
  264. add r1.y, r0.w, r1.y
  265. mad r1.y, cb2[5].x, l(0.700000), r1.y
  266. mul r1.y, r1.y, l(3.000000)
  267. ftoi r1.y, r1.y
  268. imin r1.y, r1.y, l(8)
  269. imax r1.y, r1.y, l(0)
  270. ishl r1.y, r1.y, l(3)
  271. iadd r1.y, r0.y, r1.y
  272. iadd r1.y, r1.y, l(6)
  273. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r1.y, l(0), t1.xyzw
  274. or r7.xyzw, r5.xyzw, r7.xyzw
  275. movc r5.xyzw, r6.zzzz, r7.xyzw, r5.xyzw
  276. dp2 r1.y, r4.xyxx, l(0.437500, -0.437500, 0.000000, 0.000000)
  277. add r0.w, r0.w, r1.y
  278. mad r0.w, cb2[5].x, l(0.300000), r0.w
  279. mul r0.w, r0.w, l(3.000000)
  280. ftoi r0.w, r0.w
  281. imin r0.w, r0.w, l(8)
  282. imax r0.w, r0.w, l(0)
  283. ishl r0.w, r0.w, l(3)
  284. iadd r0.y, r0.w, r0.y
  285. iadd r0.y, r0.y, l(7)
  286. ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r4.xyzw, r0.y, l(0), t1.xyzw
  287. or r4.xyzw, r4.xyzw, r5.xyzw
  288. movc r4.xyzw, r6.wwww, r4.xyzw, r5.xyzw
  289. ine r0.y, cb2[5].z, l(0)
  290. ine r0.w, l(0), cb1[21].y
  291. not r1.y, r0.w
  292. or r0.y, r0.y, r1.y
  293. deriv_rtx_coarse r5.xyz, r2.zxyz
  294. deriv_rty_coarse r2.xyz, r2.yzxy
  295. mul r6.xyz, r2.xyzx, r5.xyzx
  296. mad r2.xyz, r5.zxyz, r2.yzxy, -r6.xyzx
  297. dp3 r1.y, r2.xyzx, r2.xyzx
  298. rsq r1.y, r1.y
  299. mul r2.xyz, r1.yyyy, r2.xyzx
  300. movc r2.xyz, r0.zzzz, r2.xyzx, -r2.xyzx
  301. lt r5.xyz, l(-0.010000, -0.010000, -0.010000, 0.000000), r2.xyzx
  302. and r5.yz, r5.yyzy, l(0, 0x000ffc00, 0x3ff00000, 0)
  303. bfi r0.z, l(10), l(0), r5.x, r5.y
  304. iadd r5.x, r5.z, r0.z
  305. lt r2.xyz, r2.xyzx, l(0.010000, 0.010000, 0.010000, 0.000000)
  306. and r2.yz, r2.yyzy, l(0, 0x000ffc00, 0x3ff00000, 0)
  307. bfi r0.z, l(10), l(0), r2.x, r2.y
  308. iadd r5.y, r2.z, r0.z
  309. movc r0.yz, r0.yyyy, l(0,2.000000,2.000000,0), r5.xxyx
  310. iadd r1.xyz, -r3.xyzx, r1.xzwx
  311. or r1.w, r0.z, r0.y
  312. iadd r2.xy, l(-1, -1, 0, 0), cb1[18].ywyy
  313. not r2.z, r2.x
  314. ishr r5.xyz, cb1[2].xyzx, r0.xxxx
  315. imad r6.z, cb1[18].z, r0.x, l(1)
  316. mov r6.xy, l(0,0,0,0)
  317. mov r7.xyz, r1.xyzx
  318. mov r8.xy, r4.yzyy
  319. mov r8.zw, l(0,0,-1,0)
  320. mov r2.w, r4.x
  321. mov r3.w, l(0)
  322. loop
  323. uge r5.w, r3.w, l(4)
  324. breakc_nz r5.w
  325. and r5.w, r1.w, r2.w
  326. if_nz r5.w
  327. or r5.w, r7.y, r7.x
  328. or r5.w, r7.z, r5.w
  329. and r5.w, r2.z, r5.w
  330. if_z r5.w
  331. ishr r9.xyzw, r7.xyzz, cb1[r0.x + 13].wwww
  332. iadd r9.xyzw, r9.xyzw, cb1[r0.x + 13].xyzz
  333. and r9.xyzw, r2.yyyy, r9.xyzw
  334. iadd r5.w, r9.y, r9.x
  335. iadd r10.x, r9.w, r5.w
  336. ine r5.w, r8.z, r10.x
  337. ld_uav_typed_indexable(texture3d)(uint,uint,uint,uint) r6.w, r9.xyww, u1.yzwx
  338. movc r10.y, r5.w, r6.w, r8.w
  339. and r5.w, r10.y, l(4)
  340. if_nz r5.w
  341. and r5.w, r10.y, l(1)
  342. if_z r5.w
  343. or r10.y, r10.y, l(1)
  344. store_uav_typed u1.xyzw, r9.xyzw, r10.yyyy
  345. endif
  346. and r9.xy, r0.yzyy, r2.wwww
  347. iadd r11.xyz, r5.xyzx, r7.xyzx
  348. and r11.xyz, r2.xxxx, r11.xyzx
  349. iadd r11.xyz, r6.xyzx, r11.xyzx
  350. if_nz r9.x
  351. atomic_or u2, r11.xyzx, r9.x
  352. endif
  353. ine r5.w, r9.y, l(0)
  354. and r5.w, r0.w, r5.w
  355. if_nz r5.w
  356. atomic_or u3, r11.xyzx, r9.y
  357. endif
  358. endif
  359. mov r8.zw, r10.xxxy
  360. endif
  361. endif
  362. iadd r7.xyz, r3.xyzx, r7.xyzx
  363. iadd r3.w, r3.w, l(1)
  364. mov r9.x, r8.y
  365. mov r9.y, r4.w
  366. mov r2.w, r8.x
  367. mov r8.xy, r9.xyxx
  368. endloop
  369. discard_nz l(-1)
  370. endif
  371. ret
  372. // Approximately 258 instruction slots used

4

头部:21006





每个部件贴图都一样,合并到一起?






【步骤】

1 先编译【!BuildAll】

【注】先把SYSTEM文件夹该为非只读属性,编译生成的dll等文件要覆盖,

16083001(古墓丽影GPA)的更多相关文章

  1. 古墓丽影:崛起 PC版今日发售

    之前xbox one的独占游戏 古墓丽影: 崛起(Rise of the Tomb Raider™), 今天正式在steam发售了, 之前就可以预购.简单看了一下, 画风跟前代类似, 但是画面更好, ...

  2. DirectX11与DirectX12在古墓丽影暗影中的表现

    最近在关注这两个图形API,因为感兴趣,也算是初学者. 以下内容仅供参考. 使用古墓丽影暗影游戏,分别对这两个进行比较,得出的结论如下图(此笔记本散热很差,更改散热应该比下图结果好些): 首先看可以很 ...

  3. hack游戏攻略(黑吧安全吧的黑客闯关游戏)古墓探秘

    2019.2.11 这个是找到的一个黑客游戏,就是一关一关,挺像ctf的,玩玩也挺有意思,还能涨知识. 地址:http://hkyx.myhack58.com/ 入口: 入口就是这样的.提示是 图内有 ...

  4. 【CityHunter】基于LBS的AR体感游戏设计理念

    本人目前还不是游戏行业的圈内人士,并不懂得,游戏行业的生态圈,也不懂得,所谓的什么“中国市场环境”.所以不敢发表关于这方面的见解,不过我在这里想要插一句话,就是我认为啊,行业内,人与人之间还是有分层次 ...

  5. 好莱坞电影公司&系列电影

    - 好莱坞6大发行公司: - Warner Bros(WB): <哈利·波特>, 黑客帝国, 蝙蝠侠, - New Line cinema新线(2008): 魔戒, 霍比特人, 尖峰时刻, ...

  6. MMORPG大型游戏设计与开发(UI SYSTEM SHOW)

    接下来一段时间,这些文件可能不再更新,期间我会学习和掌握一些前端知识.虽然我非常欣赏剑侠网络版叁和九阴真经的画面,但是那是一个庞大的游戏引擎,一般人是无法窥伺的,除非你是天才而且要拥有机器毫无中断的毅 ...

  7. [ZZ] Maxwell 架构

    http://digi.163.com/14/0218/23/9LDCTFON00162DSP.html [IT168 评测]随着一句“娘娘,封神啦(宝鸡口音)”,中国的观众迅速认识到了两个极其出彩的 ...

  8. [ZZ] GTX760首测

    再一次让AMD难做!NVIDIA新主力GTX760首测 1又见短板高端显卡,GTX760外观对比回顶部 [PConline评测]NVIDIA迅速的步伐真让人吃惊,短时间内拿出GTX780.GTX770 ...

  9. GTX 770 (GK 104)

    上周的这个时候,NVIDIA GeForce 700系列的旗舰产品GTX 780正式发布,传闻已久的GTX 700家族终于来了!虽然没有任何新架构.新特性的旗舰卡发布总让人觉得少点什么.但从性能上来说 ...

随机推荐

  1. JAVA中用堆和栈的概念来理解equals() "=="和hashcode()

    在学习java基本数据类型和复杂数据类型的时候,特别是equals()"=="和hashcode()部分时,不是很懂,也停留了很长时间,最后终于有点眉目了. 要理解equals() ...

  2. msql 实现sequence功能增强

    create table sequence (      seq_name        VARCHAR(50)  NOT NULL COMMENT '序列名称',    min_val        ...

  3. 2016年12月28日 星期三 --出埃及记 Exodus 21:23

    2016年12月28日 星期三 --出埃及记 Exodus 21:23 But if there is serious injury, you are to take life for life,若有 ...

  4. 如何运用CSS写小三角

    <html> <div class="con"></div> </html> <style> .con{width:0; ...

  5. iOS上传文件代码,自定义组装body

    以下代码为上传文件所用代码,简单方便,搞了好久,终于知道这么简单的方式来上传. 其它类库也就是把这几句代码封装的乱七八糟得,让你老久搞不懂原理.不就是在body上面加点字符串,body下面加点字符串, ...

  6. GOLANG SDK下载

    如果没有FQ的话是不能访问国外网站的,但是golang提供了中国站点,要下载sdk可以在中国站点下载 中国站点: http://www.golangtc.com/download

  7. Android studio Gradle 教程

    一 . Gradle基础:https://segmentfault.com/a/1190000002439306 module下的gradle文件: // 声明是Android程序 apply plu ...

  8. UTF-8 ->GBK

    /** * GBK->UTF8 */ //方法一 旧方法 //NSString *encode1 = [@"%E6%88%91" stringByReplacingPerce ...

  9. Android微信智能心跳方案 (转)

    原创 2015-08-17 phoenix WeMobileDev 前言:在13年11月中旬时,因为基础组件组人手紧张,Leo安排我和春哥去广州轮岗支援.刚到广州的时候,Ray让我和春哥对Line和W ...

  10. 让PHP开发者事半功倍的十大技巧

    如果你使用一面大镜子作为冲浪板会发生什么?或许你会在较短的时间内征服海浪,但是你肯定从内心深处明白,这不是冲浪的正确选择.同样的道理也适用于PHP编程,尽管这样的类比听起来有一些古怪.我们经常听到有人 ...