16083001(古墓丽影GPA)

【目标】

编译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等文件要覆盖,

来自为知笔记(Wiz)

时间: 2024-11-08 22:18:30

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

《古墓丽影10》PC版重磅更新:DX12画质惊艳!

<古墓丽影10>PC版重磅更新:DX12画质惊艳! <古墓丽影>系列的最新作品<古墓丽影:崛起>已经上市一周有余,相信不少玩家都已经通关.但现在,官方给了PC版玩家一个再度通关的绝佳理由--画质大幅提升. 今天,<古墓丽影:崛起>开发商面向PC版推送了重磅更新,主要加入对于DX12和VXAO技术支持,从而使游戏光影.细节纹理表现获得全面增强,而且画面流畅性也有所改善. 官方公布的数据显示,测试机型配置为I7-2600,GTX970显卡.在DX11的环境下,游

检查单 2015-08-30-01

上文: http://my.oschina.net/typhoon/blog/415294 下文: http://typhoon.gotoip4.com 分类: 技能相关项: 基础项: TFW-BASE .TFW-WEB-BASE 和 TFW-WEB-LPM 相关项: [完成] TFW-WEB-LPM .TFW-WEB-LPM "基类集中化"改造.W3C 化及敏感字符替换方式优化. [完成] 基本数据管理恢复 AJAX . [完成] TFW-WEB-LPM 增加"用户功能树&

构建之法第十、十一章

一. 动作类游戏(ACT) 玩家控制游戏人物以各种方式技巧.利用各种武器工具等消灭敌人或保全自己或完成游戏任务来过关的游戏.动作类游戏大体分为 2D.2.5D.3D三类. 特点: 1. 这类游戏讲究打击的爽快感和流畅的游戏感,不刻意追求故事情节. 2. 操作简单,易于上手,紧张刺激. 3. 早期这类游戏有明显的关卡设置. 二. 冒险类游戏(AVG) 冒险类游戏一般会提供一个固定情节或故事背景下的场景给玩家.同时要求玩家必须随着故事的发展安排进行解谜,再利用解迷和冒险来进行下面的游戏,最终完成游戏

引擎设计跟踪(九.14.2 final) Inverse Kinematics: CCD 在Blade中的应用

因为工作忙, 好久没有记笔记了, 但是有时候发现还得翻以前的笔记去看, 所以还是尽量记下来备忘. 关于IK, 读了一些paper, 觉得之前翻译的那篇, welman的paper (http://graphics.ucsd.edu/courses/cse169_w04/welman.pdf  摘译:http://www.cnblogs.com/crazii/p/4662199.html) 非常有用, 入门必读. 入门了以后就可以结合工程来拓展了. 先贴一下CCD里面一个关节的分析: 当Pic的方

PCB走线角度选择 — PCB Layout 跳坑指南

PCB走线角度选择 - PCB Layout 跳坑指南 PCB设计技巧 by xfire PCB Layout 跳坑指南 现在但凡打开SoC原厂的PCB Layout Guide,都会提及到高速信号的走线的拐角角度问题,都会说高速信号不要以直角走线,要以45度角走线,并且会说走圆弧会比45度拐角更好.狮屎是不是这样?PCB走线角度该怎样设置,是走45度好还是走圆弧好?90度直角走线到底行不行?这是老wu经常看见广大 PCB Layout 拉线菌热议的话题. 大家开始纠结于pcb走线的拐角角度,也

卡通头发的做法

总体发现的方法有三种: Idolmaster 最简单,看上去就是在头发上画一个特殊的Reflect mask map https://youtu.be/l5i4vC-uUIk?t=25 Dream Club https://youtu.be/EjFBHfoGeNw?t=206 猜测用的是这个Paper中的做法 MMD 很讨巧的一种做法,根据视空间顶点法线转算UV,连Rim Light都顺便实现了... 我已经把Shader做出来了,范例资源和Shader如下(Unity 5.0.1) 最后架出经

游戏编程与游戏种类

游戏编程指利用计算机编程语言,如C编程语言.C++.java等,编写计算机.手机或游戏机上的游戏. 目前流行的游戏编程语言为C++编程语言,目前流行的游戏编程接口为DirectX9.0,还有OpenGL.SDL(Simple DirectMedia Layer)等.现在手机上玩的游戏分为Android与IOS两种不同平台,分别是用eclipse/MyEclipse和xcode.现在也流行一些跨平台的编程引擎,例如cocos2d-x.unity 3D等. 简介 游戏编程指利用计算机编程语言,如C编

《写在开始之前》

2016年9月,我的双学位学习开始了. 在同龄人之中我大概算是比较早接触PC的吧,在幼儿园时也就是9几年的时候家里就买了PC,那时候的PC还是windows 95,巨大的显示器占了快三分之一个桌子.那时候妈妈还在世,家里环境稍微好些,所以妈妈对电脑学习还是比较重视的.我学习电脑基本操作基本是靠自己折腾,尤其好笑的是我那时候认为在菜单里选了关机后,还需要再按一下电源键(其它电器带来的惯性思维,后来电脑烧坏了应该不是我的错吧哈哈),这样关机了几次才发现其实不需要--那时候连桌上弹珠都没有,只有红心大

微笑之旅

----记柬埔寨4日游 东南亚的土地因为浓郁的宗教气息,总给人无限的遐想空间.作为世界奇迹之一的吴哥窟更可谓其中楚翘,让人神往.多年前在构筑自己爱巢的时候,曾对东南亚风情情有独钟的我,在友人的一再邀约下,这次终于一尝夙愿,开启这次异国之旅.高棉的微笑到底是谁在微笑?金色吴哥之"金色"是指遍地黄金吗?在这个世界上最贫穷之一的过度里人们的脸上还会有微笑吗?--带着这一连串的问题,我们出发了. 经过四个小时的机程,我们来到了这个把吴哥窟绣在国旗上的有近两千年历史的国度.第一站是首都金边,因为