Guest User

95ff31849035569a-vs_replace.txt

a guest
Nov 26th, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. // ---- Created with 3Dmigoto v1.3.16 on Sat Nov 06 23:21:07 2021
  2.  
  3. cbuffer _Globals : register(b0)
  4. {
  5. float4 g_vPosOffset : packoffset(c0) = {0,0,0,0};
  6. float4 g_vTexParam : packoffset(c1) = {1,1,0,0};
  7. }
  8.  
  9.  
  10.  
  11. // 3Dmigoto declarations
  12. #define cmp -
  13. Texture1D<float4> IniParams : register(t120);
  14. Texture2D<float4> StereoParams : register(t125);
  15.  
  16.  
  17. void main(
  18. float4 v0 : POSITION0,
  19. float2 v1 : TEXCOORD0,
  20. out float4 o0 : SV_Position0,
  21. out float2 o1 : TEXCOORD0)
  22. {
  23. float4 r0;
  24. uint4 bitmask, uiDest;
  25. float4 fDest;
  26.  
  27. r0.xy = g_vPosOffset.xy + v0.xy;
  28. r0.xy = r0.xy * float2(2,2) + float2(-1,-1);
  29. o0.xy = float2(1,-1) * r0.xy;
  30. o0.zw = v0.zw;
  31. o1.xy = v1.xy * g_vTexParam.xy + g_vTexParam.zw;
  32.  
  33. float4 CYF5 = IniParams.Load(int2(21,0));
  34. if(CYF5.x > 0) {o0.x *= 0.5;}
  35. return;
  36. }
  37.  
  38. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. //
  40. // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
  41. //
  42. // using 3Dmigoto v1.3.16 on Sat Nov 06 23:21:07 2021
  43. //
  44. //
  45. // Buffer Definitions:
  46. //
  47. // cbuffer $Globals
  48. // {
  49. //
  50. // float4 g_vPosOffset; // Offset: 0 Size: 16
  51. // = 0x00000000 0x00000000 0x00000000 0x00000000
  52. // float4 g_vTexParam; // Offset: 16 Size: 16
  53. // = 0x3f800000 0x3f800000 0x00000000 0x00000000
  54. //
  55. // }
  56. //
  57. //
  58. // Resource Bindings:
  59. //
  60. // Name Type Format Dim Slot Elements
  61. // ------------------------------ ---------- ------- ----------- ---- --------
  62. // $Globals cbuffer NA NA 0 1
  63. //
  64. //
  65. //
  66. // Input signature:
  67. //
  68. // Name Index Mask Register SysValue Format Used
  69. // -------------------- ----- ------ -------- -------- ------- ------
  70. // POSITION 0 xyzw 0 NONE float xyzw
  71. // TEXCOORD 0 xy 1 NONE float xy
  72. //
  73. //
  74. // Output signature:
  75. //
  76. // Name Index Mask Register SysValue Format Used
  77. // -------------------- ----- ------ -------- -------- ------- ------
  78. // SV_Position 0 xyzw 0 POS float xyzw
  79. // TEXCOORD 0 xy 1 NONE float xy
  80. //
  81. vs_5_0
  82. dcl_globalFlags refactoringAllowed
  83. dcl_constantbuffer cb0[2], immediateIndexed
  84. dcl_input v0.xyzw
  85. dcl_input v1.xy
  86. dcl_output_siv o0.xyzw, position
  87. dcl_output o1.xy
  88. dcl_temps 1
  89. add r0.xy, v0.xyxx, cb0[0].xyxx
  90. mad r0.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
  91. mul o0.xy, r0.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000)
  92. mov o0.zw, v0.zzzw
  93. mad o1.xy, v1.xyxx, cb0[1].xyxx, cb0[1].zwzz
  94. ret
  95. // Approximately 6 instruction slots used
  96.  
  97. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  98.  
Add Comment
Please, Sign In to add comment