Advertisement
Guest User

Untitled

a guest
Mar 10th, 2022
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.77 KB | None | 0 0
  1. ; ------------------------------------------------------------------------------------------------------
  2. ; Additional configuration files
  3. ; ------------------------------------------------------------------------------------------------------
  4. [Include]
  5. ; If you were using 3DMigoto as a full modding platform for a given game
  6. ; instead of just a single stand-alone mod (e.g. facilitating mesh/texture
  7. ; replacements or other graphics mods), you can include an entire directory
  8. ; where users can extract third party mods created by others and 3DMigoto will
  9. ; include every .ini file and any external files referred to by CustomShader /
  10. ; Resource sections (Replaced shaders in these mods should still go in
  11. ; ShaderFixes for now, unless the modders want to use CustomShaders or
  12. ; ShaderRegex to keep them standalone).
  13. include_recursive = Mods
  14. exclude_recursive = DISABLED*
  15.  
  16. ; Uncomment to enable a custom shader that allows the stereo output mode to be
  17. ; upscaled. NOTE: uncomment only if 'upscaling' and resolution are not zero in
  18. ; the [Device] section.
  19. ;include = ShaderFixes\upscale.ini
  20.  
  21. ; Uncomment to enable a custom shader that implements a software mouse cursor.
  22. ; Use in games that use a hardware cursor if you want to be able to adjust the
  23. ; stereo depth of the mouse, or to work with the below 3DVision2SBS shader.
  24. ; Note that this shader has a higher latency than the hardware cursor!
  25. ;include = ShaderFixes\mouse.ini
  26.  
  27. ; Uncomment to enable a custom shader that allows the stereo output mode to be
  28. ; changed to Side-by-Side or Top-and-Bottom via the F11 key. If you are using
  29. ; SLI and this isn't working properly (partially blank or stuck image) you may
  30. ; need to also set StereoFlagsDX10 = 0x00000008 in the [Profile] section. You
  31. ; can set a default mode by altering $\ShaderFixes\3dvision2sbs.ini\mode in the
  32. ; [Constants] section:
  33. ;include = ShaderFixes\3dvision2sbs.ini
  34.  
  35.  
  36. ;------------------------------------------------------------------------------------------------------
  37. ; Logging options.
  38. ; Comment line or set value to 0 for no logging.
  39. ;------------------------------------------------------------------------------------------------------
  40. [Logging]
  41.  
  42. ; Log all API usage
  43. calls=1
  44.  
  45. ; Log Input key actions
  46. input=1
  47.  
  48. ; Super verbose massive log
  49. debug=0
  50.  
  51. ; Unbuffered logging to avoid missing anything at file end
  52. unbuffered=0
  53.  
  54. ; Force the CPU affinity to use only a single CPU for debugging multi-threaded
  55. force_cpu_affinity=0
  56.  
  57. ; Log NVAPI convergence modifications
  58. convergence=1
  59. ; Log NVAPI separation modifications
  60. separation=1
  61.  
  62. ; Enable 3DMigoto's deadlock detection algorithm. If you get hangs (not
  63. ; crashes) this might help find out why.
  64. debug_locks=0
  65.  
  66. ; ------------------------------------------------------------------------------------------------------
  67. ; Command list to run on launch / after config reload.
  68. ; ------------------------------------------------------------------------------------------------------
  69. [Constants]
  70. x20=0.5
  71.  
  72. [Key_CYF4]
  73. Key = VK_F4
  74. type = cycle
  75. x20 = 0.5, 1
  76.  
  77. ; Declare named global variables here to use them from other command lists,
  78. ; [Key] bindings and [Preset]s. Named variables are namespaced so that any
  79. ; included ini files can use their own without worrying about name clashes:
  80. ;global $my_named_variable = 0.0
  81.  
  82. ; Mark a variable as persist[ent] to automatically save it to the
  83. ; d3dx_user.ini on exit or F10 (config_reload). Use Ctrl+Alt+F10
  84. ; (wipe_user_config) to discard persistent values:
  85. ;global persist $some_persistent_variable = 1
  86.  
  87. ; Set the initial value of "IniParams" variables, which are accessible from
  88. ; within shaders, but they are not namespaced and too many can become unwieldy:
  89. ;x = 0.8
  90. ;y = 1.0
  91. ;z = 1.2
  92. ;w = 2.0
  93. ;y1 = 3
  94.  
  95. ; This is used by the 3DVision2SBS custom shader. To use, find the [Include]
  96. ; section above and uncomment the 'include = ShaderFixes\3dvision2sbs.ini'
  97. ; line. F11 will cycle between these modes while playing, and the current
  98. ; value will be automatically saved to the d3dx_user.ini on exit / F10:
  99. ; 0 = Regular 3D Vision
  100. ; 1 = Reversed 3D Vision
  101. ; 2 = Side by Side
  102. ; 3 = Reversed Side by Side
  103. ; 4 = Top and Bottom
  104. ; 5 = Reversed Top and Bottom
  105. ; 6 = Line interlacing
  106. ; 7 = Reversed Line interlacing
  107. ;$\ShaderFixes\3dvision2sbs.ini\mode = 0
  108.  
  109.  
  110. ;------------------------------------------------------------------------------------------------------
  111. ; Custom settings override for any of [convergence, separation, x, y, z, w]
  112. ;
  113. ; Four types are supported - by default the bindings will simply load the
  114. ; configured settings, but type=hold can be specified to have a preset
  115. ; active while the button is held, type=toggle can be used to make a simple
  116. ; on/off toggle, and type=cycle can be used to cycle forwards and/or backwards
  117. ; between several presets.
  118. ;
  119. ; Delays (type=hold only) and linear or cosine trasition periods (any key type)
  120. ; can be used to better synchonrise setting changes to the game's animations,
  121. ; or to smoothly adjust UI elements over a short period of time.
  122. ;
  123. ; Key bindings: For A-Z and 0-9 on the number row, just use that single
  124. ; character. For everything else (including mouse buttons), use the virtual key
  125. ; name (with or without the VK_ prefix) or hex code from this article:
  126. ; http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
  127. ;
  128. ; Key combinations can be specified by separating key names with spaces, e.g.
  129. ; "Shift Q". It is also possible to indicate that a key must *not* be held for
  130. ; the binding to activate, e.g. "NO_ALT F1" would prevent the binding from
  131. ; activating when taking a 3D Screenshot with Alt F1. "NO_MODIFIERS" may be
  132. ; used as a shorthand for excluding all standard modifiers (Ctrl, Alt, Shift,
  133. ; Windows).
  134. ;
  135. ; Keys can also be from XBox controllers using:
  136. ; XB_LEFT_TRIGGER, XB_RIGHT_TRIGGER,
  137. ; XB_LEFT_SHOULDER, XB_RIGHT_SHOULDER,
  138. ; XB_LEFT_THUMB, XB_RIGHT_THUMB,
  139. ; XB_DPAD_UP, XB_DPAD_DOWN, XB_DPAD_LEFT, XB_DPAD_RIGHT,
  140. ; XB_A, XB_B, XB_X, XB_Y, XB_START, XB_BACK, XB_GUIDE
  141. ; By default all attached controllers are used - to associate a binding with a
  142. ; specific controller add the controller number 1-4 to the prefix, like
  143. ; XB2_LEFT_TRIGGER, though this may be more useful for hunting than playing.
  144. ;
  145. ; Multiple keys may be set in a single [Key] section to allow keyboard and xbox
  146. ; controller toggles and cycles to share the same state as each other.
  147. ;------------------------------------------------------------------------------------------------------
  148.  
  149. ; Example for changing default settings
  150. ;[KeyBasicExample]
  151. ;Key = z
  152. ;separation = 100.0
  153. ;convergence = 4.0
  154. ;x = 0.98
  155. ; Named variables declared in [Constants] can be set here:
  156. ;$my_named_variable = 2
  157.  
  158. ; Example to support momentary hold type overrides, like aiming. Shows how to
  159. ; bind two separate buttons to the same action.
  160. ;[KeyMomentaryHoldExample]
  161. ;Key = RBUTTON
  162. ;Key = XB_LEFT_TRIGGER
  163. ;convergence = 0.1
  164. ;type = hold
  165.  
  166. ; Example for a toggle override that remembers the previous value and restores
  167. ; it automatically when pressed a second time.
  168. ;[KeyToggleExample]
  169. ;Key = q
  170. ;separation = 0.1
  171. ;type = toggle
  172. ;y = 0.0
  173.  
  174. ; Example for using a smart cycle type instead of a toggle. Smart is now the
  175. ; default for cycles, and when activated it will quickly check if the current
  176. ; values match its current cycle preset and resynchronise if necessary. This is
  177. ; better than type=toggle if you always want to toggle between exactly two
  178. ; values specified here, while type=toggle is better if you want to remember
  179. ; some arbitrary current value and return to it:
  180. ;[KeySmartCycleExample]
  181. ;Key = w
  182. ;type = cycle
  183. ;smart = true
  184. ;$some_variable = 0, 1
  185.  
  186. ; Example for a momentary hold, but with a delay followed by a smooth
  187. ; transition (ms) on hold and release to sync better with the game. Note that
  188. ; delay only works with type=hold (for now), while transitions will work with
  189. ; all types.
  190. ;[KeyDelayAndTransitionExample]
  191. ;Key = RBUTTON
  192. ;Key = XB_LEFT_TRIGGER
  193. ;type = hold
  194. ;y = 0.25
  195. ;delay = 100
  196. ;transition = 100
  197. ;transition_type = linear
  198. ;release_delay = 0
  199. ;release_transition = 500
  200. ;release_transition_type = cosine
  201.  
  202. ; Example of a cycle transition that might be used to provide several presets
  203. ; that set both convergence and UI depth to suit different scenes in a game.
  204. ; Cosine transitions are used to smooth the changes over 1/10 of a second.
  205. ; Both keyboard and Xbox controller buttons are bound to this same cycle, so
  206. ; that they can be used interchangeably and remember the same position in the
  207. ; preset list. A second key is used to cycle backwards through the presets, and
  208. ; wrapping from one end of the list to the other is disabled.
  209. ;[KeyCycleExample]
  210. ;Key = E
  211. ;Key = XB_RIGHT_SHOULDER
  212. ;Back = Q
  213. ;Back = XB_LEFT_SHOULDER
  214. ;type = cycle
  215. ;wrap = false
  216. ;convergence = 1.45, 1.13, 0.98
  217. ;z = 0.25, 0.5, 0.75
  218. ;transition = 100
  219. ;transition_type = cosine
  220.  
  221. ; Keys can only directly set variables to simple values. If you want to do
  222. ; something more advanced, you may need to call a command list from the key
  223. ; binding. type=hold/toggle keys will run the post phase of the command list on
  224. ; release.
  225. ;[KeyCommandListExample]
  226. ;key = f
  227. ;run = CommandListF
  228. ;[CommandListF]
  229. ;if $foo == 0 && cursor_showing
  230. ; $foo = $bar * 3.14 / rt_width
  231. ;else
  232. ; $foo = 0
  233. ;endif
  234.  
  235. ; Example of a preset override that can be referenced by one or more [ShaderOverride*]
  236. ; sections which can be activated / deactivated automatically when one of the shader
  237. ; overrides is activated / deactivated. This is useful for setting automatic
  238. ; convergence for specific scene.
  239. ;[PresetExample]
  240. ;convergence = 0
  241. ;$some_variable = 1
  242. ;transition = 100
  243. ;transition_type = linear
  244.  
  245.  
  246. ;------------------------------------------------------------------------------------------------------
  247. ; Shader hunting options.
  248. ; Default setup is to use keyboard similar to Helix presets
  249. ;------------------------------------------------------------------------------------------------------
  250. [Hunting]
  251.  
  252. ; 0: Release mode is with shader hunting disabled, optimized for speed.
  253. ; 1: Hunting mode enabled
  254. ; 2: Hunting mode "soft disabled" - can be turned on via the toggle_hunting key
  255. hunting=1
  256.  
  257. ; Highlight mode of currently selected shader / rendertarget.
  258. ; "skip" = skip shader. don't render anything using the currently selected shader.
  259. ; "original" = fall back to original shader if the currently selected shader was patched.
  260. ; "pink" = make the output hot pink to make it standout.
  261. ; "mono" = disable stereo for the selected shader / rendertarget.
  262. marking_mode=skip
  263.  
  264. ; Cycle through available marking modes. VK_DECIMAL VK_NUMPAD0
  265. ; means hold the dot on the number pad while pressing numpad 0:
  266. next_marking_mode = no_modifiers VK_DECIMAL VK_NUMPAD0
  267.  
  268. ; What action(s) to take when marking a selected shader/buffer
  269. ; "hlsl" = decompile shader to HLSL and copy to ShaderFixes
  270. ; "asm" = disassemble shader and copy to ShaderFixes (if hlsl is disabled or failed)
  271. ; "regex" = output ShaderRegex patched shader if applicable (NOTE: Will lose associated command list)
  272. ; "clipboard" = copy shader/buffer hash to clipboard
  273. ; "mono_snapshot" = take mono screenshot (previously called mark_snapshot=1)
  274. ; "stereo_snapshot" = take stereo screenshot (previously called mark_snapshot=2)
  275. ; "snapshot_if_pink" = limit mono/stereo_snapshot to when marking_mode=pink
  276. marking_actions = clipboard regex hlsl asm stereo_snapshot snapshot_if_pink
  277.  
  278. ; Key bindings: For A-Z and 0-9 on the number row, just use that single
  279. ; character. For everything else (including mouse buttons), use the virtual key
  280. ; name (with or without the VK_ prefix) or hex code from this article:
  281. ; http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
  282. ;
  283. ; XBox controllers are supported using the same bindings as the [Key] sections
  284. ; (see above). If the game already uses the first controller you might try
  285. ; using the second controller for hunting with e.g. XB2_LEFT_SHOULDER
  286.  
  287. ; rotate through all VISIBLE pixel shaders at the current scene.
  288. previous_pixelshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD1
  289. next_pixelshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD2
  290. mark_pixelshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD3
  291.  
  292. ; rotate through all VISIBLE vertex shaders at the current scene.
  293. previous_vertexshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD4
  294. next_vertexshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD5
  295. mark_vertexshader = no_modifiers NO_VK_DECIMAL VK_NUMPAD6
  296.  
  297. ; rotate through all USED index buffers at the current scene.
  298. previous_indexbuffer = no_modifiers NO_VK_DECIMAL VK_NUMPAD7
  299. next_indexbuffer = no_modifiers NO_VK_DECIMAL VK_NUMPAD8
  300. mark_indexbuffer = no_modifiers NO_VK_DECIMAL VK_NUMPAD9
  301.  
  302. ; rotate through all USED vertex buffers at the current scene.
  303. previous_vertexbuffer = no_modifiers NO_VK_DECIMAL VK_DIVIDE
  304. next_vertexbuffer = no_modifiers NO_VK_DECIMAL VK_MULTIPLY
  305. mark_vertexbuffer = no_modifiers NO_VK_DECIMAL VK_SUBTRACT
  306.  
  307. ; rotate through all USED render targets at the current scene.
  308. ;previous_rendertarget = no_modifiers VK_INSERT
  309. ;next_rendertarget = no_modifiers VK_HOME
  310. ;mark_rendertarget = no_modifiers VK_PAGEUP
  311.  
  312. ; rotate through all USED compute shaders at the current scene.
  313. previous_computeshader = no_modifiers VK_DECIMAL VK_NUMPAD1
  314. next_computeshader = no_modifiers VK_DECIMAL VK_NUMPAD2
  315. mark_computeshader = no_modifiers VK_DECIMAL VK_NUMPAD3
  316.  
  317. ; rotate through all VISIBLE geometry shaders at the current scene.
  318. previous_geometryshader = no_modifiers VK_DECIMAL VK_NUMPAD4
  319. next_geometryshader = no_modifiers VK_DECIMAL VK_NUMPAD5
  320. mark_geometryshader = no_modifiers VK_DECIMAL VK_NUMPAD6
  321.  
  322. ; rotate through all VISIBLE domain shaders at the current scene.
  323. previous_domainshader = no_modifiers VK_DECIMAL VK_NUMPAD7
  324. next_domainshader = no_modifiers VK_DECIMAL VK_NUMPAD8
  325. mark_domainshader = no_modifiers VK_DECIMAL VK_NUMPAD9
  326.  
  327. ; rotate through all VISIBLE hull shaders at the current scene.
  328. previous_hullshader = no_modifiers VK_DECIMAL VK_DIVIDE
  329. next_hullshader = no_modifiers VK_DECIMAL VK_MULTIPLY
  330. mark_hullshader = no_modifiers VK_DECIMAL VK_SUBTRACT
  331.  
  332. ; Re-enable shaders once done with hunting:
  333. done_hunting = NO_MODIFIERS NO_VK_DECIMAL VK_ADD
  334.  
  335. ; Screenshot as pns
  336. take_screenshot = no_modifiers VK_SNAPSHOT
  337.  
  338. ; reload all fixes from ShaderFixes folder
  339. reload_fixes = no_modifiers VK_F10
  340.  
  341. ; Key to turn hunting itself on/off. This will also show/hide overlay.
  342. ; Hunting must be set to either 1 or 2 to enable this toggle.
  343. toggle_hunting = no_modifiers NO_VK_DECIMAL VK_NUMPAD0
  344.  
  345. ; Key to reload the settings from the d3dx.ini without restarting. This can
  346. ; be the same key as reload_fixes for convenience, or a different key may be
  347. ; used to avoid resetting the ini parameters every time the shaders are
  348. ; reloaded. Note that not all settings can be reloaded, so if something doesn't
  349. ; work as expected you may still have to restart the game:
  350. reload_config = no_modifiers VK_F10
  351.  
  352. ; Deletes the d3dx_user.ini file and reloads settings to get a "clean slate"
  353. wipe_user_config = ctrl alt no_shift VK_F10
  354.  
  355. ; Hold this key to temporarily disable the fix - useful to quickly check what
  356. ; an effect looked like in the original game.
  357. show_original = no_modifiers VK_F9
  358.  
  359. ; Shows the CPU utilisation and performance impact of every active command list
  360. monitor_performance = ctrl no_shift no_alt F9
  361.  
  362. ; Freeze the current performance monitor display and log to the d3d11_log.txt
  363. freeze_performance_monitor = no_ctrl shift no_alt F9
  364.  
  365. ; Sets how often the performance monitor updates
  366. monitor_performance_interval = 2.0
  367.  
  368. ; Auto-repeat key rate in events per second.
  369. repeat_rate=6
  370.  
  371. ; Enabling this makes the overlay show the hashes of the currently selected
  372. ; shaders and index buffer during hunting. We don't actually recommend this,
  373. ; because writing down the hash from the screen is a bad habbit that tends to
  374. ; be very error prone - the recommended workflow is to dump the shaders to disk
  375. ; and check the most recently modified file in ShaderFixes, but advanced users
  376. ; can enable this if they want it:
  377. verbose_overlay = 0
  378.  
  379. ; tunable parameter to use in modified shaders as variable (StereoParams.Load(int3(1,0,0)).xyzw)
  380. ; enabling tuning results in a small performance hit because the parameter texture
  381. ;tune_enable=1
  382. ;tune_step=0.1
  383. ;tune1_up=VK_INSERT
  384. ;tune1_down=VK_DELETE
  385. ;tune2_up=X
  386. ;tune2_down=Z
  387.  
  388.  
  389. ; Dumps out a flight log of DirectX state changes and the contents of each
  390. ; render target after every immediate draw call for the next frame. Takes up a
  391. ; large amount of space, so disabled by default.
  392. ;analyse_frame = no_modifiers VK_F8
  393.  
  394. ; analyse_options specifies options for the frame analysis feature. Options can
  395. ; be combined by separating them with a space.
  396. ;
  397. ; Dumping selection (also refer to the "dump" command described below):
  398. ; dump_rt: Dumps render targets and UAVs
  399. ; dump_depth: Dumps depth/stencil targets
  400. ; dump_tex: Dumps shader resources (textures)
  401. ; dump_cb: Dumps constant buffers
  402. ; dump_vb: Dumps vertex buffers
  403. ; dump_ib: Dumps index buffers
  404. ;
  405. ; Texture2D format selection:
  406. ; jpg/jps: Dumps out 2D/stereo resources as .jps files. These are the easiest
  407. ; to work with and don't take up as much space as DDS files, but
  408. ; they are not dumped for every resource and are missing some data.
  409. ; dds: Dumps out 2D/stereo resources as .dds files. WARNING: This option
  410. ; may require hundreds of gigabytes and a long time! Only use it if
  411. ; you absolutely need more information than you can get otherwise.
  412. ; jps_dds: Dumps out .jps when possible, .dds otherwise (default).
  413. ; desc: Dumps out DirectX resource descriptions to .dsc files.
  414. ;
  415. ; Buffer format selection:
  416. ; buf: Dumps out buffers as binary .buf files
  417. ; txt: Decodes buffers as text, and includes some extra metadata not
  418. ; found in the .buf files. May not correctly decode all buffers.
  419. ; Default if dump_cb/vb/ib was specified.
  420. ; desc: Dumps out DirectX resource descriptions to .dsc files.
  421. ;
  422. ; Misc options:
  423. ; hold: Continue analysing subsequent frames while the key is held
  424. ; clear_rt: Clears each render target the first time they are used in the
  425. ; frame. Makes it easier to see what is being drawn if the game
  426. ; doesn't clear them, but might cause some effects not to render.
  427. ; filename_reg: Normally the draw number is the first part of the filename so
  428. ; that the files will be sorted in the order they were used in
  429. ; the game. Sometimes it is more desirable to examine how a
  430. ; specific output changed through the frame and this option will
  431. ; place the register number first in the filename to allow that.
  432. ; mono: Dump out mono textures instead of stereo. To dump both, specify
  433. ; 'mono stereo'. If neither are specified, defaults to stereo.
  434. ; dump_on_unmap: Dumps buffers/textures whenever the game maps them to the CPU
  435. ; with the Map() / Unmap() calls. Typically used to update
  436. ; constant buffers.
  437. ; dump_on_update: Dumps buffers/textures whenever the game updates them with
  438. ; the UpdateSubresource() call. Alternative method used to
  439. ; update constant buffers.
  440. ; share_dupes: Use a folder that is shared with subsequent frame analysis
  441. ; dumps for de-duplicating dumped resources. Makes future frame
  442. ; analysis dumps faster and use less disk space if there are a
  443. ; lot of identical textures, but less trivial to delete
  444. ; individual dump folders to reclaim disk space (i.e. all or
  445. ; nothing). Individual frame analysis folders are still
  446. ; de-duplicated regardless of this setting.
  447. ; symlink: Try to use symbolic links when de-duplicating files in a
  448. ; frame analysis dump. Requires developer mode to be enabled in
  449. ; Windows 10, and will fall back to hard links or shortcuts
  450. ; when not possible. Useful to see the relationship between
  451. ; deduplicated files, especially when working with cygwin, but
  452. ; some Windows applications may behave worse when using these.
  453. ;
  454. ; Experimental Deferred Context (multi-threaded rendering) Frame Analyis Support:
  455. ; deferred_ctx_immediate: Dumps resources from deferred contexts using the
  456. ; immediate context. Not suitable for dump_rt or other
  457. ; resources altered during the frame (by the GPU or CPU). May
  458. ; be ok for static unchanging resources, such as collecting HUD
  459. ; textures for filtering. Not thread safe - potential to crash.
  460. ; Recommended (not enforced) to use in conjunction with 'mono'.
  461. ; deferred_ctx_accurate: Delays dumping resources from deferred contexts
  462. ; until after the GPU has updated them. Copies of *all*
  463. ; resources being dumped are held in memory, so it may run out
  464. ; - try to restrict using this option to specific resources
  465. ; where it is needed - preferably via the "dump" command rather
  466. ; than the global analyse_options. Works with 'stereo'.
  467. ;
  468. ; analyse_options can also be specified in [ShaderOverride*] sections (or other
  469. ; command lists) to set up triggers to change the options mid-way through a
  470. ; frame analysis, either for a single draw call (default), or permanently (by
  471. ; adding the 'persist' keyword).
  472. ;
  473. ; Alternatively, "dump" can be specified in a [ShaderOverride*] section (or
  474. ; any other command list) to dump specific resources with per-resource options
  475. ; (e.g. "dump = dump_tex dds share_dupes mono ps-t0"), dump resources at a
  476. ; specific point in time (e.g. "pre dump = o0") or dump a custom resource that
  477. ; frame analysis cannot otherwise see (e.g. "dump = ResourceDepthBuffer"). Use
  478. ; additional "dump" commands to dump multiple resources.
  479. ;
  480. ;analyse_options = dump_rt jps clear_rt
  481.  
  482.  
  483.  
  484. ;------------------------------------------------------------------------------------------------------
  485. ; Chain load other wrapper DLLs instead of system DLLs.
  486. ;------------------------------------------------------------------------------------------------------
  487. [System]
  488.  
  489. ;proxy_d3d9=d3d9_helix.dll
  490. ;proxy_d3d11=d3d11_helix.dll
  491.  
  492. ; We force all LoadLibrary calls back to the game folder, because games
  493. ; and nvidia both break the loading chain by going directly to System32.
  494. ; load_library_redirect=0 for off, allowing all through unchanged.
  495. ; load_library_redirect=1 for nvapi.dll override only, forced to game folder.
  496. ; load_library_redirect=2 for both d3d11.dll and nvapi.dll forced to game folder.
  497. load_library_redirect=2
  498.  
  499. ; Only enable key input processing when the game is in the foreground:
  500. check_foreground_window=1
  501.  
  502. ; Options to use hooking instead of wrapping. Used in MGSV. Possible objects to hook include:
  503. ; deferred_contexts
  504. ; immediate_context
  505. ; device
  506. ; all - all of the above
  507. ; recommended - settings currently recommended by the 3DMigoto developers
  508. ;hook=recommended
  509.  
  510. ; Options to allow ID3D11Device to be created and wrapped. We have typically had good
  511. ; luck with returning an error for all non-dx11 requests, but some games error out
  512. ; with these checks in place.
  513. ; The allow_create_device allows D3D10 Device creation and is needed for some games.
  514. ; It has two options, allow_create_device=1, which will allow anything to go through
  515. ; without returning an error, and allow_create_device=2, which will force all requests
  516. ; to become D3D11 Devices, no matter what was passed in.
  517. ; The allow_platform_update option allows the D3D11Device1 and D3D11Context1
  518. ; interfaces introduced in Windows 8 and the platform update of Windows 7.
  519. ;
  520. ; Start with allow_check_interfaces, if that doesn't work
  521. ; then try allow_create_device=2, lastly try allow_create_device=1
  522. ;
  523. allow_check_interface=1
  524. allow_create_device=1
  525. allow_platform_update=1
  526.  
  527. ;------------------------------------------------------------------------------------------------------
  528. ; Settings used by the external 3DMigoto Loader
  529. ;------------------------------------------------------------------------------------------------------
  530. [Loader]
  531. ; Target process to load into. You can optionally include part of the directory
  532. ; structure in case the game's executable name is generic.
  533. ;target = \Dead or Alive 6\DOA6.exe
  534.  
  535. ; This tells the loader where to find 3DMigoto. This DLL must be located
  536. ; in the same directory as 3DMigoto Loader.exe and will be loaded in the target
  537. ; process under the same name. If d3d11.dll doesn't work try 3dmigoto.dll
  538. ;module = d3d11.dll
  539.  
  540. ; Uncomment to always elevate the loader to support games that run as admin.
  541. ; This will display a UAC prompt so only enable it if you actually need it.
  542. ;require_admin = true
  543.  
  544. ; Automatically launch the game from the loader. If you put the executable name
  545. ; here than the loader will need to be located in the game directory. You can
  546. ; use the full path, but that is not recommended to ship any fixes with since
  547. ; it will vary on a user's system. If the game is on Steam you can use the
  548. ; steam browser protocol to launch it, optionally passing it any command line
  549. ; arguments you need (unfortunately Steam pops a dialog to confirm command line
  550. ; parameters, which tends to end up behind other windows):
  551. ;launch = DOA6.exe
  552. ;launch = steam://run/838380/
  553. ;launch = steam://run/237850//-window-mode exclusive/
  554.  
  555. ; Delay this many extra seconds after confirming that 3DMigoto was loaded in
  556. ; the target process. For games that respawn themselves or have multiple
  557. ; executables of the same name when the first process we see may not be the
  558. ; actual one we need. Set to -1 to disable automatic shut down.
  559. ;delay = 20
  560.  
  561. ;------------------------------------------------------------------------------------------------------
  562. ; Settings to force display device to a specific mode.
  563. ; Uncomment a value to force the specific setting.
  564. ;------------------------------------------------------------------------------------------------------
  565. [Device]
  566.  
  567. ; (0) - disable upscaling
  568. ; (1) - enable upscaling and allows the game to disable and enable fullscreen mode
  569. ; (2) - enable upscaling and don't allow the game to switch fullscreen mode
  570. ; (always force fullscreen). Try this if you get issues with the mouse cursor.
  571. ; Note if you enable upscaling please do not forget to:
  572. ; 1) Uncomment "run = CustomShaderUpscale" in the [Present] section,
  573. ; otherwise you will see only a black window (with game sound).
  574. ; 2) Set a custom resolution here for width and height that the game will see.
  575. ; 3) Uncomment upscale_mode here.
  576. upscaling = 0
  577.  
  578. ; Force override the screen resolution.
  579. ; If upscaling is on, the resizing functionality is disabled.
  580. ; If upscaling is on, then you MUST specify the resolution the game will be upscaled to.
  581. ; To achieve the best visual result use the native resolution of your tv or monitor.
  582. ;width=1280
  583. ;height=720
  584.  
  585. ; upscale_mode = 0: 3Dmigoto creates a texture and pushes it as the back buffer for the game.
  586. ; Seems to work with only few games but everything seems to run a bit smoother.
  587. ; upscale_mode = 1: 3Dmigoto creates a second swap chain and pushes the game to use it.
  588. ; Seems to work with most games. dont forget to activate upscaling shader in [present] section
  589. ;upscale_mode = 1
  590.  
  591.  
  592. ; overrides refresh rate set by game.
  593. ;refresh_rate=60
  594.  
  595. ; filters available video modes to those providing given refresh rates.
  596. ; some games don't explicitely set the refresh rate, but use the video mode.
  597. ; use this if setting refresh_rate doesn't work.
  598. ;filter_refresh_rate=24,59,60
  599.  
  600. ; full_screen=1 forces creation of full screen devices and swap chains.
  601. ; use this for 3dtvplay if game won't active stereo mode.
  602. ; full_screen=2 will also disable SetWindowPos which might help in some games.
  603. full_screen=0
  604.  
  605. ; This attempts to force exclusive full screen when this key is pressed, and
  606. ; may be useful in games where full_screen doesn't work or has undesirable side
  607. ; effects:
  608. ;force_full_screen_on_key = no_modifiers VK_F7
  609.  
  610. ; This toggles forcing the full screen mode on and off. It will not take effect
  611. ; immediately, but will change what happens the next time the game tries to
  612. ; change the fullscreen mode. This is a specific hack to workaround a bug in
  613. ; Unity games, which crash when alt+tabbing out from exclusive mode fullscreen.
  614. ;
  615. ; To switch out of a Unity game without it crashing:
  616. ; Enable this option, Press F7, Alt+Enter, Alt+Tab
  617. ;toggle_full_screen = no_modifiers VK_F7
  618.  
  619. ; some games explicitely disable stereo, prohibiting any stereo attempts.
  620. ; Setting this to 1 ignores all stereo disabling calls and also calls
  621. ; NvAPI_Stereo_Enable to force stereo on.
  622. ; Setting this to 2 sets 3Dmigoto to use 3D Vision Direct Mode
  623. force_stereo=0
  624.  
  625. ; almost all DX11 games deactivate window message handling.
  626. ; setting this to 1 reenables print screen handling, alt-tab key handling etc.
  627. ;allow_windowcommands=1
  628.  
  629. ; Indicates where the resolution is obtained for texture hashes. Comment this
  630. ; out to never special case hashes that match the resolution or a multiple.
  631. ; Possible values are swap_chain and depth_stencil. Recommended to test which
  632. ; works for a given game (e.g. CryEngine always creates a swap chain that
  633. ; matches the native resolution so has to use depth_stencil).
  634. get_resolution_from = swap_chain
  635.  
  636. ; This will hide the hardware mouse cursor, and will be automatically enabled
  637. ; if the software mouse configuration file is included at the top of this file.
  638. ; The hardware mouse cursor cannot be moved to depth and cannot be used in
  639. ; conjunction with the side-by-side or top-and-bottom output modes, so using a
  640. ; software mouse cursor is recommended in those cases.
  641. ; NOTE: IT IS RECOMMENDED TO RESTART THE GAME AFTER CHANGING THIS SETTING!
  642. hide_cursor = 0
  643.  
  644.  
  645. ;------------------------------------------------------------------------------------------------------
  646. ; Settings for NVidia stereo driver.
  647. ;------------------------------------------------------------------------------------------------------
  648. [Stereo]
  649.  
  650. ; games which have their own stereo renderer disable the NVidia automatic
  651. ; stereo mode and render themselves into stereo buffers (Crysis 3 for example).
  652. ; Setting this to 1 disables the game stereo renderer and enables NVidia auto stereo mechanism.
  653. ; This also forces 'false' as a return for any request for NvAPI_Stereo_IsEnabled.
  654. automatic_mode=0
  655.  
  656. ; Some games (CryEngine games, for example) lock the separation & convergence
  657. ; to a specific value, which can be undesirable. Set this to 1 to ignore these
  658. ; requests from the game to unlock the separation:
  659. unlock_separation=0
  660. unlock_convergence=0
  661.  
  662. ; games without predefined profiles can't save stereo settings.
  663. ; enabling this options automatically creates a profile for unknown games.
  664. ; Note that there is now a more flexible means to alter the game's profile -
  665. ; refer to the [Profile] section.
  666. create_profile=0
  667.  
  668. ; sets the global surface creation heuristic for NVidia stero driver.
  669. ; 0 = NVAPI_STEREO_SURFACECREATEMODE_AUTO - use driver registry profile settings for surface creation mode.
  670. ; 1 = NVAPI_STEREO_SURFACECREATEMODE_FORCESTEREO - Always create stereo surfaces.
  671. ; 2 = NVAPI_STEREO_SURFACECREATEMODE_FORCEMONO - Always create mono surfaces.
  672. ;surface_createmode=1
  673.  
  674. ; overrides surface creation mode for square surfaces.
  675. ;surface_square_createmode=1
  676.  
  677. ; Force the NvAPI_Initialize to return an error so that games think stereo and NVidia is unavailable.
  678. force_no_nvapi=0
  679.  
  680.  
  681. ;------------------------------------------------------------------------------------------------------
  682. ; Settings for GPU manipulations.
  683. ; Render settings override
  684. ;------------------------------------------------------------------------------------------------------
  685. [Rendering]
  686.  
  687. ; GPU program manipulations.
  688.  
  689. ; Type of shader hashes in use:
  690. ; 3dmigoto = Traditional hash used by 3DMigoto (unseeded software FNV-1)
  691. ; embedded = Use the first half of the MD5-like hash embedded within the
  692. ; shaders to skip the hash calculation altogether.
  693. ; bytecode = Only hash bytecode and signatures with hardware accelerated
  694. ; CRC32C. Used to minimise duplicate shaders in certain games, but
  695. ; potentially carries a higher risk of hash collisions between
  696. ; unrelated shaders in some games (e.g. that only differ in
  697. ; variable names). May occasionally avoid hash changes on game
  698. ; updates due to changes in the game developer's build environment
  699. ; (shader compiler version, build path embedded in debug info,
  700. ; constants renamed, etc). Will not avoid hash changes if the
  701. ; shader code, constant values, etc are changed.
  702. shader_hash = 3dmigoto
  703.  
  704. ; Switch to newer texture hashes that are less susceptible to corruption and
  705. ; don't have collisions if part of the image matches. May have a slight
  706. ; performance penalty since more of the image is hashes. Do not enable if
  707. ; upgrading an existing fix!
  708. ;texture_hash = 1
  709.  
  710. ; Shaders in game will be replaced by these custom shaders.
  711. override_directory=ShaderFixes
  712.  
  713. ; Automatically patched shaders will be written here if caching is enabled.
  714. cache_directory=ShaderCache
  715.  
  716. ; Shaders that are directly compiled by the game, instead of binary, go here.
  717. storage_directory=ShaderFromGame
  718.  
  719. ; cache all compiled .txt shaders into .bin. this removes loading stalls.
  720. cache_shaders=0
  721.  
  722. ; Indicates whether scissor clipping should be disabled by default. A restart
  723. ; is required for this to take effect. If you need to do this on a per shader
  724. ; basis, you can use "run = BuiltInCustomShaderEnableScissorClipping" or "run =
  725. ; BuiltInCustomShaderDisableScissorClipping" from a [ShaderOverride], or define
  726. ; your own [CustomShader] section to change whatever render state you need and
  727. ; use "handling = skip" and "draw = from_caller" to transfer the draw call to
  728. ; them.
  729. rasterizer_disable_scissor=0
  730.  
  731. ; Tracks copies and updates to textures which may cause their hash to become
  732. ; out of sync with their contents - enable if texture hashes seem unreliable.
  733. ; You can also set this to 2 to disable hash contamination detection for better
  734. ; performance in hunting mode, but only do that if you are certain you won't
  735. ; be needing this in the game in question.
  736. ;track_texture_updates=1
  737.  
  738. ; Registers where the StereoParams and IniParams textures will be assigned -
  739. ; change if the game already uses these registers. Newly decompiled shaders
  740. ; will use the new registers, but existing shaders will not be updated - best
  741. ; workflow is to remove ShaderCache after changing these and run a search and
  742. ; replace on all shaders in ShaderFixes. Set to -1 to disable if not required.
  743. stereo_params = 125
  744. ini_params = 120
  745.  
  746. ; Set to 1 to assemble the Input / Output / Patch Constant signature comments
  747. ; in shader assembly to allow them to be changed for passing new values between
  748. ; pipeline stages. Be careful with these comments if this is enabled - treat
  749. ; them like code! If set to 0 the assembler will use the old behaviour and
  750. ; re-use the sections from the unmodified shaders.
  751. assemble_signature_comments = 1
  752.  
  753. ; Include raw "undecipherable custom data" when disassembling shaders for
  754. ; ShaderRegex - leaving this out is for backwards compatibility with patterns
  755. ; that may not expect to see it since we didn't used to include it. Shaders
  756. ; dumped via export or hunting always include any undecipherable data.
  757. disassemble_undecipherable_custom_data = 1
  758.  
  759. ; Replace constant buffer offsets with indices & components in the comment
  760. ; blocks when disassembling shaders so they match up with how they are accessed
  761. ; in the code, making things easier to follow and simplifying ShaderRegex.
  762. patch_assembly_cb_offsets = 1
  763.  
  764. ;------------------------------------------------------------------------------------------------------
  765. ; Analyzation options.
  766. ;
  767. ; save all autofixed shaders as HLSL
  768. export_fixed=0
  769.  
  770. ; save all shaders sent to DX11 as ASM, or as HLSL text files if compiled by game.
  771. export_shaders=0
  772.  
  773. ; save all shaders seen as HLSL code, autofixed or not. 1= HLSL only, 2=HLSL+OriginalASM, 3=HLSL+OriginalASM+RecompiledASM
  774. export_hlsl=0
  775.  
  776. ; stores a ShaderUsage.txt file on any marking button press.
  777. dump_usage=1
  778.  
  779. ;------------------------------------------------------------------------------------------------------
  780. ; Automatic shader fixes. Those settings here apply only on newly read shaders.
  781. ; All existing *_replace.txt or *_replace.bin files are not tampered with.
  782. ; If you change settings here, the best workflow is to delete all shaders in
  783. ; the shader cache directory and let them be fixed again.
  784.  
  785. ; Stereoize all shader parameters with position semantic.
  786. fix_sv_position=0
  787.  
  788. ; Pixel depth evaluation.
  789. ;fix_ZRepair_DepthTexture1=SceneDepthTexture.x
  790. ;fix_ZRepair_Dependencies1=MinZ_MaxZRatio
  791. ;fix_ZRepair_ZPosCalc1=zTex * MinZ_MaxZRatio.z - MinZ_MaxZRatio.w
  792. ;fix_ZRepair_DepthTexture2=SceneDepthTexture.x
  793. ;fix_ZRepair_Dependencies2=
  794. ;fix_ZRepair_ZPosCalc2=zTex
  795. ;fix_ZRepair_PositionTexture=PositionTexture
  796. ;fix_ZRepair_PositionCalc=1024 * %s
  797.  
  798. ; Inject depth texture if other depth sources are unavailable.
  799. ;fix_ZRepair_DepthTextureHash=8a19f087b004598f
  800.  
  801. ; Correct inverse transformations in pixel shaders using evaluated depth.
  802. ;fix_InvTransform=ScreenToLight,InverseTranslatedViewProjectionMatrix
  803.  
  804. ; Back projection coordinate fix.
  805. ;
  806. ; Available variables in expressions:
  807. ; stereoParams.x = Separation value in range [0..1] or [-0..-1] dependent on active eye
  808. ; stereoParams.y = Convergence value in w coordinates (1/z)
  809. ; stereoParams.z = -1/1 for left/right eye
  810. ; stereoParams.w = Separation value without eye separation
  811. ; stereoTune.x = tune value 1 (default is 1)
  812. ; stereoTune.y = tune value 2 (default is 1)
  813. ; stereoTune.z = tune value 3 (default is 1)
  814. ; stereoTune.w = tune value 4 (default is 1)
  815. ; stereoScreenRes.x = Primary swap chain backbuffer horizontal resolution
  816. ; stereoScreenRes.y = Primary swap chain backbuffer vertical resolution
  817. ; zpos = current pixel z position in pixel shader
  818. ; wpos = current pixel w position in pixel shader
  819.  
  820. ; Send inverse transformations from vertex shaders to pixel shaders.
  821. ;fix_BackProjectionTransform1=ScreenToTranslatedWorldMatrix._m00,ScreenToTranslatedWorldMatrix._m02,ScreenToTranslatedWorldMatrix._m01
  822. ;fix_BackProjectionTransform2=ScreenToWorld._m00,ScreenToWorld._m02,ScreenToWorld._m01
  823.  
  824. ; Position variables to correct in pixel shaders.
  825. ;fix_ObjectPosition1=PointPositionAndInverseRadius
  826. ;fix_ObjectPosition1Multiplier=1, (stereoScreenRes.x/stereoScreenRes.y)*0.5, -0.5
  827. ;fix_ObjectPosition2=SpotPositionAndInverseRadius
  828. ;fix_ObjectPosition2Multiplier=1, (stereoScreenRes.x/stereoScreenRes.y)*0.5, -0.5
  829.  
  830. ; Matrix multiplications to correct in pixel shaders.
  831. ;fix_MatrixOperand1=TranslatedWorldToShadowMatrix
  832. ;fix_MatrixOperand1Multiplier=1, (stereoScreenRes.x/stereoScreenRes.y)*0.5 - viewDirection.z*0.05 + (0.02791946-stereoParams.x/stereoParams.w), 0
  833.  
  834. ; autofix shader option: recompiles all vertex shaders. fixes minor differences in deferred rendering.
  835. ;recompile_all_vs=0
  836.  
  837. ;------------------------------------------------------------------------------------------------------
  838. ; Shader manipulations without patches + shader filtering.
  839. ;------------------------------------------------------------------------------------------------------
  840. ;[ShaderOverride1]
  841. ;Hash=69732c4f23cb6c48
  842. ; Custom stereo separation value while rendering objects using this shader.
  843. ;Separation=0
  844. ; Custom stereo convergence value while rendering objects using this
  845. ; shader (e.g. convergence=0 will move an object to infinity).
  846. ;Convergence=0
  847. ; don't draw anything using this shader.
  848. ;Handling=skip
  849. ; Use replaced shader only when there is/is not an active depth buffer (for UI filtering)
  850. ; Deprecated: use 'x = oD' instead, and test for negative zero in the shader with
  851. ; if (asint(IniParams[0].x) == asint(-0.0)) { /* depth inactive */ } else { /* depth active */ }
  852. ;depth_filter = depth_inactive
  853. ;depth_filter = depth_active
  854. ; Override a value from [Constants] when this shader is used:
  855. ;x=2.0
  856. ; Pass the dimensions of the active render target and resolution (obtained with
  857. ; get_resolution_from) into the shader:
  858. ;x1=rt_width
  859. ;y1=rt_height
  860. ;z1=res_width
  861. ;w1=res_height
  862. ; Use t0 from active pixel shader for texture filtering. Will be 0 if no
  863. ; [TextureOverride*] section exists for the texture or 1 if one does. For
  864. ; advanced filtering, set a value for filter_index in the [TextureOverride]
  865. ; section. This also works with other slot types (like o0, oD, ib, etc). Will
  866. ; be -0.0 (needs a special test) if no resource bound in this slot:
  867. ;x2 = ps-t0
  868. ; Match the partner shader (any of vs/hs/ds/gs/ps/cs). Works in much the same
  869. ; way as texture filtering - set a filter_index in the [ShaderOverride] or
  870. ; [ShaderRegex] for the partner shader you want to match and it will be set in
  871. ; this variable, or 1 = ShaderOverride/Regex matched with no filter_index, 0 =
  872. ; No ShaderOverride/Regex matched, -0.0 = No shader bound. The filter_index
  873. ; from a ShaderOverride always takes priority over any matching ShaderRegex.
  874. ;local $partner = vs
  875. ; Override the shader model to allow using newer features like Texture2DMS:
  876. ;model=vs_5_0
  877. ; Activate a preset section when this shader override is in use.
  878. ;preset = PresetExample
  879. ; Enable/disable scissor clipping for this specific shader. This is an alias
  880. ; for "run = BuiltInCustomShaderDisableScissorClipping"
  881. ; or "run = BuiltInCustomShaderEnableScissorClipping"
  882. ;disable_scissor = 1
  883. ; There's also support for copying textures, constant buffers, depth buffers,
  884. ; etc. from one shader to another. This is a complex topic - see this page:
  885. ; https://github.com/bo3b/3Dmigoto/wiki/Resource-Copying
  886.  
  887.  
  888. ;------------------------------------------------------------------------------------------------------
  889. ; On the fly regular expression shader patching engine
  890. ;------------------------------------------------------------------------------------------------------
  891. ;
  892. ; These sections define regular expressions to match against shaders and apply
  893. ; certain classes of fixes on the fly. Only assembly shaders are supported by
  894. ; this method for reliability and performance reasons.
  895. ;
  896. ; Every pattern must have a main section prefixed with ShaderRegex:
  897. ;
  898. ;[ShaderRegex1]
  899. ; shader_model is required and must be set to the types of shaders that this
  900. ; pattern will be applied against. Multiple shader models can be specified to
  901. ; match the pattern against multiple types. There are some differences in
  902. ; instructions between shader model 4 and 5 (such as in resource load
  903. ; instructions), so in some cases you may need separate patterns for each.
  904. ;shader_model = ps_4_0 ps_5_0
  905. ;
  906. ; temps is used to give names to temporary registers that you will use in the
  907. ; pattern. 3DMigoto will identify free register numbers and automatically
  908. ; adjust dcl_temps as required.
  909. ;temps = stereo tmp1
  910. ;
  911. ; This main section also acts as a command list so that you can define actions
  912. ; that will be applied on every matching shader, just as you would on any other
  913. ; command list enabled section, such as ShaderOverride, Present, etc.
  914. ;
  915. ;
  916. ; The next section of interest is the regular expression pattern. If this
  917. ; section is omitted than every shader of with matching shader_model will be
  918. ; matched (and have the command lists and InsertDeclarations processed). The
  919. ; first part of the section name must match the main ShaderRegex section you
  920. ; defined above, and it ends with ".Pattern". The regular expression grammar
  921. ; that we support is PCRE2, which is largely compatible with the powerful Perl
  922. ; and Python grammars. You can find the syntax reference here, but generally
  923. ; speaking any regular expression tutorial will give you a good primer:
  924. ;
  925. ; http://www.pcre.org/current/doc/html/pcre2syntax.html
  926. ;
  927. ; Note that since this is parsed in an ini file that blank lines and ini
  928. ; comments are ignored, and preceding and trailing whitespace from each line
  929. ; will be stripped, so if you need to match an indented line you will need to
  930. ; explicitly match the whitespace at the start of the line with \s*
  931. ; You should also use \n to match the newline character at the end of each
  932. ; line. This should not be confused with extended mode activated by the (?x)
  933. ; switch, which will ignore *all* whitespace to allow complex patterns to be
  934. ; broken up for clarity.
  935. ;
  936. ; Multiline matching is enabled by default, as is case insensitivity (due to
  937. ; differences in the capitalisation produced by different versions of the
  938. ; disassembler), but PCRE2 provides switches for most of these options if you
  939. ; need something else.
  940. ;
  941. ; This is an example of how you might match a matrix multiply in a shader, and
  942. ; uses Python style named capture groups to pull out the registers and swizzles
  943. ; of the X and Z coordinates, and another named capture group to verify that
  944. ; the register used in the div instruction matches the one used in the multiply:
  945. ;
  946. ;[ShaderRegex1.Pattern]
  947. ;mul r\d+\.xyzw, r\d+\.yyyy, cb0\[28\]\.xyzw\n
  948. ;mad r\d+\.xyzw, (?P<pos_x>r\d+)\.(?P<swizzle_x>[xyzw])[xyzw]{3}, cb0\[27\]\.xyzw, r\d+\.xyzw\n
  949. ;mad r\d+\.xyzw, (?P<pos_z>r\d+)\.(?P<swizzle_z>[xyzw])[xyzw]{3}, cb0\[29\]\.xyzw, r\d+\.xyzw\n
  950. ;add (?P<result>r\d+)\.xyzw, r\d+\.xyzw, cb0\[30\]\.xyzw\n
  951. ;div r\d+\.[xyzw]{2}, (?P=result)\.[xyzw]{4}, r\d+\.wwww\n
  952. ;
  953. ;
  954. ; The next section specifies how to modify the matched pattern. Again the name
  955. ; must begin with the same name as the main section, and end in
  956. ; ".Pattern.Replace" (there is a reason the replacement is associated with the
  957. ; pattern, but that's coming soon). You can (and I highly encourage that you
  958. ; do) use named capture groups in the above pattern and substitute them in
  959. ; here. Temporary registers that you defined in the main ShaderRegex section
  960. ; are also available here with the same syntax as named capture groups. Use
  961. ; ${0} to indicate where the matched pattern goes, allowing you to insert code
  962. ; before and/or after it, or use additonal capture groups to insert code in the
  963. ; middle. Extended substitution is enabled in PCRE2, which among other things
  964. ; makes \n insert a newline.
  965. ;
  966. ;[ShaderRegex1.Pattern.Replace]
  967. ;\n
  968. ;// UE4 shadow correction:\n
  969. ;ld_indexable(texture2d)(float,float,float,float) ${stereo}.xyzw, l(0, 0, 0, 0), t125.xyzw\n
  970. ;add ${tmp1}.x, ${pos_z}.${swizzle_z}, -${stereo}.y\n
  971. ;mad ${pos_x}.${swizzle_x}, -${tmp1}.x, ${stereo}.x, ${pos_x}.${swizzle_x}\n
  972. ;\n
  973. ;${0}
  974. ;
  975. ;
  976. ; The final section allows you to insert new declarations into the shader, and
  977. ; 3DMigoto will check that this declaration has not already been inserted
  978. ; first. Typically this is used to get access to StereoParams in t125:
  979. ;
  980. ;[ShaderRegex1.InsertDeclarations]
  981. ;dcl_resource_texture2d (float,float,float,float) t125
  982.  
  983.  
  984. ;------------------------------------------------------------------------------------------------------
  985. ; texture / render target manipulations
  986. ;------------------------------------------------------------------------------------------------------
  987. ;
  988. ; NOTE: If you are trying to match a texture the same size as the resolution (or
  989. ; a /2, x2, x4 or x8 multiple), you should confirm that the same hash is used
  990. ; on different resolutions, and adjust get_resolution_from if necessary.
  991. ;
  992. ; NOTE: If you find a texture hash seems to change inconsistently, try enabling
  993. ; track_texture_updates in the [Rendering] section.
  994. ;
  995. ;[TextureOverride1]
  996. ;Hash=c3e55ebd
  997. ; NVidia stores surface creation mode heuristics in the game profile. setting
  998. ; this option overrides the creation mode for a given texture / buffer.
  999. ; 0 = NVAPI_STEREO_SURFACECREATEMODE_AUTO - use driver registry profile settings.
  1000. ; 1 = NVAPI_STEREO_SURFACECREATEMODE_FORCESTEREO - create stereo surface.
  1001. ; 2 = NVAPI_STEREO_SURFACECREATEMODE_FORCEMONO - create mono surface.
  1002. ;StereoMode=2
  1003.  
  1004. ;[TextureOverride2]
  1005. ;Hash = e27b9d07
  1006. ; Prevent the game reading from this texture - will give the game a blank
  1007. ; buffer instead. Used to prevent CryEngine games falsely culling objects. Use
  1008. ; the frame analysis log and look for MapType:1 to identify possible hashes.
  1009. ;deny_cpu_read=1
  1010. ; Expand the region copied to this texture with CopySubresourceRegion (similar
  1011. ; issue to rasterizer_disable_scissor). Used to solve issues with transparent
  1012. ; refraction effects (like glass) in CryEngine games.
  1013. ;expand_region_copy=1
  1014.  
  1015. ;[TextureOverrideUAVNotRT]
  1016. ; Example of fuzzy matching based on attributes instead of hash. Provides an
  1017. ; alternative to driver heuristics that we have more precise control over.
  1018. ;match_type = Texture2D
  1019. ;match_width = height * 16 / 9
  1020. ;match_height = !res_height
  1021. ;match_msaa = >1
  1022. ;match_bind_flags = +unordered_access -render_target
  1023. ;match_priority = -1
  1024. ;StereoMode = 2
  1025.  
  1026. ;------------------------------------------------------------------------------------------------------
  1027. ; Example of settings override by mouse button configuration
  1028. ; Mapping of from game provided hard coded convergence values to custom values
  1029. ; Those are values for L.A. Noir
  1030. ; Example of settings override by mouse button configuration
  1031. ;------------------------------------------------------------------------------------------------------
  1032. ;[ConvergenceMap]
  1033.  
  1034. ;Map1=from 3e99999a to 0.3
  1035. ;Map2=from 3f800000 to 1.0
  1036. ;Map3=from 3f666666 to 0.9
  1037.  
  1038.  
  1039. ;------------------------------------------------------------------------------------------------------
  1040. ; Updates the game's driver profile on launch.
  1041. ;
  1042. ; Any changes here will require the user to OK a UAC prompt the first time they
  1043. ; run the game, but the DLL tries to only do that if it is actually required.
  1044. ;------------------------------------------------------------------------------------------------------
  1045. [Profile]
  1046. ; This setting should always be added to a profile - it is required for a
  1047. ; number of other settings to work, as well as allowing the convergence to be
  1048. ; saved. If you are customising a profile you should **always uncomment this**:
  1049. ;StereoProfile = 1
  1050. ;
  1051. ; This setting enables stereo compute shaders (0x00004000), which is required
  1052. ; to fix a lot of "one eye" type rendering issues in many DX11 games, and
  1053. ; allows stereo2mono and the side-by-side / top-and-bottom output modes to work
  1054. ; in SLI (0x00000008):
  1055. ;StereoFlagsDX10 = 0x00004008
  1056. ;
  1057. ; This sets the default convergence in the profile. Note that 3DMigoto will
  1058. ; happily override the default value from the driver, but will only override
  1059. ; the user's custom convergence if it has another reason to update the profile,
  1060. ; such as a change to another setting (adding a version tag to the Comments
  1061. ; setting would be one way to force an update):
  1062. ;StereoConvergence = 0.5
  1063. ;
  1064. ; This changes the green text that the driver displays, and is a good place to
  1065. ; put any reminders to display to the user or just take some credit:
  1066. ;Comments = "Such and such 3D fix by an awesome modder. Disable motion blur!"
  1067. ;
  1068. ; Change the rating: "0": 3D Vision Ready, "1": Excellent, "2": Good,
  1069. ; "3": Fair, "4": Not Recommended
  1070. ;Compat = "0"
  1071. ;
  1072. ; If you have added some comments, you probably want to force the green text to
  1073. ; show up when the game is next run. Note that like convergence, 3DMigoto will
  1074. ; only override a user setting here if something else has also been updated
  1075. ; (such as Comments), so this will usually only show up the first time a user
  1076. ; runs the game after installing the fix (be sure to enable StereoProfile).
  1077. ;StereoMemoEnabled = 1
  1078. ;
  1079. ; Disable compatibility mode to make sure users are seeing the real deal. Like
  1080. ; convergence, 3DMigoto will respect the users custom settings here:
  1081. ;Disable2DD = 1
  1082. ;
  1083. ; Put a reminder in the green text of compatibility mode that they are not
  1084. ; seeing the real deal:
  1085. ;2DD_Notes = "Compatibility mode is enabled. To use the fix, please disable it with Ctrl+Alt+F11"
  1086. ;
  1087. ; These two options change which constant buffers the driver uses to pass the
  1088. ; separation and convergence to any Vertex and Domain shaders it has modified.
  1089. ; The default value is 12, and you may need to change it if the game already
  1090. ; uses that constant buffer for any purpose, which should be apparent as you
  1091. ; will see 2D geometry on any shader that uses this. You should avoid using
  1092. ; these constant buffers yourself unless you understand the nuances involved.
  1093. ;DX10VSCBNumber = 12
  1094. ;DX10DSCBNumber = 12
  1095. ;
  1096. ; Workaround crashes and hangs in games that violate DirectX threading
  1097. ; constraints (e.g. Resident Evil 2/7, Devil May Cry 5). Set to 1 to always
  1098. ; enable workaround or 2 to only enable workaround with 3D Vision:
  1099. ;APP_COMPAT_SHIM = 2
  1100. ;
  1101. ; If a setting doesn't have a name or you don't know what it is (check the
  1102. ; d3d11_log.txt for the names of all settings in this profile, or use the name
  1103. ; from Nvidia Profile Inspector), you can use the hex ID (in fact, you can even
  1104. ; paste a complete profile from Geforce Profile Manager - just be sure to
  1105. ; delete any corrupt string settings if you do):
  1106. ;0x1033cec2 = 0x00000002
  1107. ;
  1108. ; There are many more options, and we have tried to document them here -
  1109. ; *please* edit this page if you figure out anything new:
  1110. ; http://wiki.bo3b.net/index.php?title=Driver_Profile_Settings
  1111.  
  1112.  
  1113. ;------------------------------------------------------------------------------------------------------
  1114. ; This section defines a shortcut for unbinding all render and depth targets,
  1115. ; which is commonly needed in [CustomShader] sections since all bound render
  1116. ; and depth targets *must* be the same size, and leaving something else bound
  1117. ; is a sure way for things to go weirdly wrong. Call it from any section that
  1118. ; supports a command list with 'run = CommandListUnbindAllRenderTargets' after
  1119. ; you have copied any state you need from these and before binding your own.
  1120. ;------------------------------------------------------------------------------------------------------
  1121. [CommandListUnbindAllRenderTargets]
  1122. run = BuiltInCommandListUnbindAllRenderTargets
  1123.  
  1124. ;------------------------------------------------------------------------------------------------------
  1125. ; Commands to run from the Present call at the start/end of each frame
  1126. ;
  1127. ; Useful to clear custom resources or ini params at the start of each frame, or
  1128. ; to run a custom shader to do whatever you can dream up. The post keyword will
  1129. ; make an action run at the start of a frame instead of the end - as general
  1130. ; guideline you want overlays drawn at the end of a frame and resources cleared
  1131. ; at the start of a new frame.
  1132. ;------------------------------------------------------------------------------------------------------
  1133. [Present]
  1134. ; Example: Clear an ini param at the start of each frame:
  1135. ;post x = 0
  1136. ; Example: Undefine a custom resource until something is copied into it:
  1137. ;post ResourceDepthBuffer = null
  1138. ; Example: Clear a custom resource with black/zero at the start of each frame
  1139. ; (beware that driver bugs may mean only one eye is cleared in some cases):
  1140. ;post clear = ResourceFoo
  1141.  
  1142. ; If you are looking for CustomShader3DVision2SBS, CustomShaderSoftwareMouse or
  1143. ; CustomShaderUpscale, these are now enabled in the [Include] section at the
  1144. ; top of this file instead. The other options related to these are still in
  1145. ; the same place.
  1146.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement