summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/effectreader.cpp
Commit message (Collapse)AuthorAgeFilesLines
* osd: Turned video modules into actual modules, fixed various issues. Vas Crabb2023-02-011-44/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't ignore the return status of OSD module initialisation. Attempt to fall back to an alternate module if the selected module fails to initialise. Log more useful diagnostic information at verbose level. Fixed BGFX crash on exit after toggling fullscreen. Also persist more settings than just the selected chains across toggling fullscreen. Turned video modules into OSD modules in the same sense as all the other OSD modules. They now use the same selection/fallback mechanism as all the other modules without special extra code in the OSD implementations. Untangled some object ownership mess. Windows own renderers, OSD objects own windows. Fixed a refrence loop that caused the first window object to always leak. Don't create renderer object until after underlying window has been created. Fixed issues with order of creation/destruction when toggling fullscreen or changing prescale in fullscreen with -switchres in SDL builds. Use more smart pointers in BGFX and Direct3D render modules. Most of the code now reutrns a smart pointer when handing over ownership or a naked pointer when retaining ownership. Fixed a few leaks and simplified cleanup code. Encapsulated various OSD modules better.
* render/bgfx: Got rid of a lot of unnecessary object copying during setup. Vas Crabb2023-01-291-14/+14
|
* Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz] MooglyGuy2023-01-291-2/+2
| | | | | | | | | | | * 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.
* Clean up #includes in src/osd (#10029) ajrhacker2022-07-041-7/+1
| | | | | * Clean up #includes in src/osd * render/bgfx/view.cpp: Add license header
* Updated BGFX fixes; verified as working on Linux and Windows. (#9420) MooglyGuy2022-03-151-30/+99
| | | | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz] * -bgfx: Fixed issues from the previous batch of changes. [Ryan Holtz] * -osdwindow: Remove no-longer-needed addition of post_create(). [Ryan Holtz]
* Revert "More BGFX stability improvements (missing files + multi-window) (#9410)" Vas Crabb2022-03-161-124/+29
| | | | This reverts commit f5b75b74393646d1dc082ec807279451dc481854.
* More BGFX stability improvements (missing files + multi-window) (#9410) MooglyGuy2022-03-141-29/+124
| | | | | * -bgfx: Improved stability when encountering missing files, and improved multi-window stability. [Ryan Holtz] * -osd: Added video-init fallback functionality to other OSDs. [Ryan Holtz]
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-1/+1
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* bgfx: Add data-driven render target clearing [Ryan Holtz] therealmogminer@gmail.com2016-04-141-0/+23
|
* Revert "Fix SDL compile on linux. Took the opportunity to remove a number of" Miodrag Milanovic2016-04-081-0/+2
| | | | | Partial revert only, some changes still in This reverts commit 632b10cd0ec304c0367321a5be62164d00b18ff1.
* Fix SDL compile on linux. Took the opportunity to remove a number of couriersud2016-04-081-2/+0
| | | | | "emu.h" includes from src/osd/modules/render/bgfx code. There is still a conflict between mame memory.h and bgfx memory.h to be resolved.
* Cleanups and version bump Miodrag Milanovic2016-03-301-16/+16
|
* Add screen-specific shader chain support, nw therealmogminer@gmail.com2016-03-231-1/+6
|
* Fix lots of issues with bgfx therealmogminer@gmail.com2016-03-211-14/+18
|
* Make JSON error checking a lot more verbose therealmogminer@gmail.com2016-03-191-19/+13
|
* More work on bgfx data-driven shaders, nw therealmogminer@gmail.com2016-03-131-2/+5
|
* Cleanups and version bump Miodrag Milanovic2016-02-241-31/+31
|
* Fix some compile errors, not sure if all(nw) therealmogminer@gmail.com2016-02-211-0/+8
|
* More work on targets, nw therealmogminer@gmail.com2016-02-211-2/+2
|
* First take on render API reorg, nw therealmogminer@gmail.com2016-02-211-0/+69