Guest User

e395a8df038f3d89-vs_replace.txt

a guest
Nov 26th, 2021
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. // ---- Created with 3Dmigoto v1.3.16 on Tue Nov 16 19:13:56 2021
  2.  
  3. cbuffer _Params : register(b0)
  4. {
  5. float4x4 ModelViewProj : packoffset(c0);
  6. }
  7.  
  8.  
  9.  
  10. // 3Dmigoto declarations
  11. #define cmp -
  12. Texture1D<float4> IniParams : register(t120);
  13. Texture2D<float4> StereoParams : register(t125);
  14.  
  15.  
  16. void main(
  17. float4 v0 : POSITION0,
  18. float2 v1 : TEXCOORD0,
  19. out float4 o0 : SV_Position0,
  20. out float2 o1 : TEXCOORD0)
  21. {
  22. o0.x = dot(v0.xyzw, ModelViewProj._m00_m10_m20_m30);
  23. o0.y = dot(v0.xyzw, ModelViewProj._m01_m11_m21_m31);
  24. o0.z = dot(v0.xyzw, ModelViewProj._m02_m12_m22_m32);
  25. o0.w = dot(v0.xyzw, ModelViewProj._m03_m13_m23_m33);
  26. o1.xy = v1.xy;
  27. o0.x *= 0.5;
  28. return;
  29. }
  30.  
  31. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. //
  33. // Generated by Microsoft (R) HLSL Shader Compiler 10.1
  34. //
  35. // using 3Dmigoto v1.3.16 on Tue Nov 16 19:13:56 2021
  36. //
  37. //
  38. // Buffer Definitions:
  39. //
  40. // cbuffer $Params
  41. // {
  42. //
  43. // float4x4 ModelViewProj; // Offset: 0 Size: 64
  44. //
  45. // }
  46. //
  47. //
  48. // Resource Bindings:
  49. //
  50. // Name Type Format Dim Slot Elements
  51. // ------------------------------ ---------- ------- ----------- ---- --------
  52. // $Params cbuffer NA NA 0 1
  53. //
  54. //
  55. //
  56. // Input signature:
  57. //
  58. // Name Index Mask Register SysValue Format Used
  59. // -------------------- ----- ------ -------- -------- ------- ------
  60. // POSITION 0 xyzw 0 NONE float xyzw
  61. // TEXCOORD 0 xy 1 NONE float xy
  62. //
  63. //
  64. // Output signature:
  65. //
  66. // Name Index Mask Register SysValue Format Used
  67. // -------------------- ----- ------ -------- -------- ------- ------
  68. // SV_Position 0 xyzw 0 POS float xyzw
  69. // TEXCOORD 0 xy 1 NONE float xy
  70. //
  71. vs_5_0
  72. dcl_globalFlags refactoringAllowed
  73. dcl_constantbuffer cb0[4], immediateIndexed
  74. dcl_input v0.xyzw
  75. dcl_input v1.xy
  76. dcl_output_siv o0.xyzw, position
  77. dcl_output o1.xy
  78. dp4 o0.x, v0.xyzw, cb0[0].xyzw
  79. dp4 o0.y, v0.xyzw, cb0[1].xyzw
  80. dp4 o0.z, v0.xyzw, cb0[2].xyzw
  81. dp4 o0.w, v0.xyzw, cb0[3].xyzw
  82. mov o1.xy, v1.xyxx
  83. ret
  84. // Approximately 6 instruction slots used
  85.  
  86. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  87.  
Add Comment
Please, Sign In to add comment