Commit graph

33 commits

Author SHA1 Message Date
MooglyGuy
5671484fc8
Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz]
* render/bgfx: Improved clearing and blending. Added prescale support. Fixes MT07586, MT07587, MT08084.
* render/bgfx: Fixed blend and tint handling. (Fixes Github #1953).
* render/bgfx/blendreader.cpp: Support non-separated blend mode specification for BGFX effects.
* render/bgfx: Reworked how horizontally-padded screen textures are handled. Likely fixes MT08512 and MT08505.
* render/bgfx: Ensure that a texture's width margin is updated in all cases.
* render/d3d/d3dhlsl.cpp: Fixed tinting in HLSL post-processing mode.
* render/d3d/d3dhlsl.cpp: Avoid most redundant state-setting calls. Reduces D3D API calls by about 90% on fruit machine drivers.
* render/d3d/d3dhlsl.cpp: Assign SourceDims and QuadDims uniforms to only those effects that use them.
* machine/laserdsc.cpp: Always add video quad to screen container, adjust tint based on m_videoenable instead.
2023-01-29 03:59:25 +11:00
benrg
4b33449a76
Improve NTSC parameter descriptions and ranges in OSD (#10782)
Correct units of some parameters (they are MHz, not Hz) and correct one
default (color carrier should be 3.57 MHz, not 35.7). Use a step size of
1/8800 MHz for the color carrier so that the NTSC value of 315/88 MHz
can be exactly represented (to float precision).
2023-01-21 18:56:05 -05:00
Vas Crabb
0c49c74ada srcclean: Added JSON cleaning support, and some cleanup.
Made pbobble parent of bublbust, as it seems to be more widespread and
more complete.  Also fixed some ROM labels for bublbust.

Made tbyahhoo parent of mtwinbee as the latter has substantial content
removed rather than being localised, making it less complete.

Applied srcclean to JSON files in bgfx subtree.
2021-08-20 05:52:27 +10:00
Ryan Holtz
3fa3969c9b -bgfx: Corrected hlsl.json to apply the intended screen tint. [Ryan Holtz] 2020-06-20 15:42:50 +02:00
arbee
b575f0d00a This wasn't supposed to go in (nw) 2020-02-18 22:54:13 -05:00
arbee
e95e2a743d apple2: figured out C800 banking on the Applesurance card, it now works 100% (nw) 2020-02-18 22:51:46 -05:00
Westley M. Martinez
b5a54b761c HLSL Color Transforms and 3D LUT (#4043)
* Remove broken scanline uniform from post_pass

* Add 3D LUT to HLSL

* Allow individual LUTs for screen and UI

* WIP: Port 3D LUT to BGFX

* Finish porting LUT to BGFX

* Add individual phosphor color conversion for HLSL
	new file:   hlsl/chroma.fx
		Shader for converting xyY3 to sRGB
	modified:   hlsl/phosphor.fx
		Minor changes to emphasize idea that phosphors are color
agnostic
	modified:   hlsl/post.fx
		Conversion from signal RGB to xyY3
	modified:   src/osd/modules/render/d3d/d3dhlsl.cpp
	modified:   src/osd/modules/render/d3d/d3dhlsl.h
	modified:   src/osd/windows/winmain.cpp
	modified:   src/osd/windows/winmain.h

* Add phosphor examples and update presets

* Port phosphor color shaders to BGFX

* Fix missing newlines at EOF
2018-10-07 11:42:30 -04:00
W. M. Martinez
b4888aabc0 Port scanline modification to BGFX 2018-09-14 19:00:52 -07:00
Jezze
d9ae40b9fe Reduced defocus effect to one pass (HLSL/BGFX)
- removed second defocus pass
- limited defocus stength to a maximum of 2.0
2016-10-22 22:56:16 +02:00
therealmogminer@gmail.com
1f1ccd9b7d Fix debug crash with bgfx screen chains 2016-05-26 21:54:03 +02:00
ImJezze
b4b6543929 Equalized options of HLSL and BGFX HLSL chain
- removed POT texture size from shadow mask in HLSL, U/V size is now simply the percentage of the actual texture size
- adjusted display names of options
2016-05-05 20:59:33 +02:00
therealmogminer@gmail.com
ff56527f39 More bgfx settings refinement, nw 2016-04-29 10:34:53 +02:00
therealmogminer@gmail.com
223a955d0b Fix up bgfx NTSC shader, nw 2016-04-29 06:58:20 +02:00
ImJezze
07d8b25571 Added "selection" parameter to chain input sampler
- if specified all textures (.png) within the same directoy of the given texture will be selectable via slider in the UI
- also added slider for "shadow mask tile mode" to HLSL chain
2016-04-24 20:36:42 +02:00
ImJezze
b681e5dc2b Simplified min, max, default and step value handling for chain configuration
- min, max, default and step are now floating points without an addition scale factor
2016-04-22 19:32:35 +02:00
therealmogminer@gmail.com
f5aa86dfc6 Checkpoint 1, nw 2016-04-21 15:48:29 +02:00
ImJezze
b1c06acb61 Implemented handling for u_screen_scale and u_screen_offset (nw) 2016-04-21 07:52:29 +02:00
ImJezze
cd4dfca43e Refactored BGFX distortion pass (nw)
- also removed vector hack
2016-04-19 21:18:16 +02:00
therealmogminer@gmail.com
99aa7eacd7 bgfx: Add data-driven render target clearing [Ryan Holtz] 2016-04-14 17:22:24 +02:00
therealmogminer@gmail.com
59e129f599 Reinstate scale param for bgfx texture, nw 2016-03-30 03:28:03 +02:00
therealmogminer@gmail.com
d9153eb306 Get bgfx post-processing working with laserdisc games, nw 2016-03-29 11:28:24 +02:00
therealmogminer@gmail.com
a4f615a14d Get NTSC working in both bgfx and d3d, nw 2016-03-29 01:56:37 +02:00
therealmogminer@gmail.com
c0b1182712 Final bgfx fixups for release 2016-03-28 22:58:32 +02:00
therealmogminer@gmail.com
523a552f5c Adjust some minor things in bgfx, nw 2016-03-27 19:56:49 +02:00
therealmogminer@gmail.com
ad7f0e260e Minor bgfx fixups, nw 2016-03-26 00:15:27 +01:00
therealmogminer@gmail.com
93e5a03b89 Huge cleanup of render target handling, nw 2016-03-25 16:20:12 +01:00
therealmogminer@gmail.com
825d575195 Fix lots of issues with bgfx 2016-03-21 03:43:02 +01:00
therealmogminer@gmail.com
1226b243a2 Make JSON error checking a lot more verbose 2016-03-19 05:44:38 +01:00
therealmogminer@gmail.com
ea9e591a0c Polishing up BGFX shader system, nw 2016-03-18 03:21:34 +01:00
therealmogminer@gmail.com
493cf7289b More bgfx HLSL fixups, nw 2016-03-16 18:52:07 +01:00
therealmogminer@gmail.com
b212e5dc2e Add most of the rest of the D3D HLSL chain, nw 2016-03-15 05:17:38 +01:00
therealmogminer@gmail.com
9c33c40b82 Fix up NTSC shaders, nw 2016-03-13 15:51:20 +01:00
therealmogminer@gmail.com
cd8f796df6 Add bgfx command line options, major shakeup of organization, nw 2016-03-13 15:51:19 +01:00