Guest User

Untitled

a guest
Mar 10th, 2022
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. // ---- Created with 3Dmigoto v1.3.16 on Sat Mar 05 20:08:05 2022
  2.  
  3. cbuffer _Globals : register(b0)
  4. {
  5. float4 ktglViewport : 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. float3 v0 : POSITION0,
  18. float4 v1 : COLOR0,
  19. float2 v2 : TEXCOORD0,
  20. out float4 o0 : SV_Position0,
  21. out float4 o1 : COLOR0,
  22. out float2 o2 : TEXCOORD0)
  23. {
  24. o0.xy = v0.xy * ktglViewport.xy + ktglViewport.zw;
  25. o0.z = v0.z;
  26. o0.w = 1;
  27. o1.xyzw = v1.xyzw;
  28. o2.xy = v2.xy;
  29. o0.x *= IniParams.Load(int2(20,0)).x;
  30. return;
  31. }
  32.  
  33. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. //
  35. // Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
  36. //
  37. // using 3Dmigoto v1.3.16 on Sat Mar 05 20:08:05 2022
  38. //
  39. //
  40. // Buffer Definitions:
  41. //
  42. // cbuffer $Globals
  43. // {
  44. //
  45. // float4 ktglViewport; // Offset: 0 Size: 16
  46. //
  47. // }
  48. //
  49. //
  50. // Resource Bindings:
  51. //
  52. // Name Type Format Dim Slot Elements
  53. // ------------------------------ ---------- ------- ----------- ---- --------
  54. // $Globals cbuffer NA NA 0 1
  55. //
  56. //
  57. //
  58. // Input signature:
  59. //
  60. // Name Index Mask Register SysValue Format Used
  61. // -------------------- ----- ------ -------- -------- ------- ------
  62. // POSITION 0 xyz 0 NONE float xyz
  63. // COLOR 0 xyzw 1 NONE float xyzw
  64. // TEXCOORD 0 xy 2 NONE float xy
  65. //
  66. //
  67. // Output signature:
  68. //
  69. // Name Index Mask Register SysValue Format Used
  70. // -------------------- ----- ------ -------- -------- ------- ------
  71. // SV_Position 0 xyzw 0 POS float xyzw
  72. // COLOR 0 xyzw 1 NONE float xyzw
  73. // TEXCOORD 0 xy 2 NONE float xy
  74. //
  75. vs_4_0
  76. dcl_constantbuffer cb0[1], immediateIndexed
  77. dcl_input v0.xyz
  78. dcl_input v1.xyzw
  79. dcl_input v2.xy
  80. dcl_output_siv o0.xyzw, position
  81. dcl_output o1.xyzw
  82. dcl_output o2.xy
  83. mad o0.xy, v0.xyxx, cb0[0].xyxx, cb0[0].zwzz
  84. mov o0.z, v0.z
  85. mov o0.w, l(1.000000)
  86. mov o1.xyzw, v1.xyzw
  87. mov o2.xy, v2.xyxx
  88. ret
  89. // Approximately 6 instruction slots used
  90.  
  91. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  92.  
Add Comment
Please, Sign In to add comment