summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/shaders
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Updated bgfx, bx and bimg to current upstream versions. (#11493)" Vas Crabb2023-09-0893-0/+0
| | | | This reverts commit 1c61ccfe840cdae7a9f92292946a45f3b47e2412.
* Updated bgfx, bx and bimg to current upstream versions. (#11493) Julian Sikorski2023-09-0693-0/+0
| | | | | | * Reverted "macOS, iOS: Removed OpenGL/OpenGLES support. (commit 4693983242a698eaafed87faf4ffef1789adc8f9). * Reverted "Fix macOS build" (commit ce2c2c13eda7d699051f75f598e740a447343a88). * Reverted "macOS: Fixed deprecated warnings." (commit 10a8cb61f882ebc9bb376ee2341d003880b7037f). * Added bgfx/README.mame explaining deviations from upstream.
* Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz] MooglyGuy2023-01-29279-0/+0
| | | | | | | | | | | * 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.
* Update BGFX, BX and BIMG (#10789) Miodrag Milanović2023-01-05455-0/+0
| | | | * Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
* Revert "Update BGFX, BX and BIMG (#10750)" (#10787) R. Belmont2023-01-04455-0/+0
| | | This reverts commit 5581eaa50a42256242f32569f59ce10d70ddd8c2 due to link failure on macOS.
* Update BGFX, BX and BIMG (#10750) Miodrag Milanović2023-01-04455-0/+0
| | | | * Update to bgfx a93a714632b79b5ddbf5c86ac323fa9b76ed3433 Co-authored-by: Бранимир Караџић <branimirkaradzic@gmail.com>
* bgfx: Re-built shaders for crt-geom update. Vas Crabb2022-07-0716-0/+0
|
* bgfx: crt-geom and crt-geom-deluxe improvements: (#8653) cgwg2022-07-0724-0/+0
| | | | | * crt-geom-deluxe: Increased number of taps for halation and increased maximum width. * crt-geom*: Moved repeated crt-geom/crt-geom-deluxe functions into their own file. * crt-geom and crt-geom-deluxe: added support for sRGB output gamma ramp and made it the default.
* -bgfx: Fixed YUV shader to have better brightness balance. [Ryan Holtz] (#9425) MooglyGuy2022-03-176-0/+0
|
* -bgfx: Added default LUT PNG, fixes LUT-effect crash. Fixed external texture ↵ MooglyGuy2022-03-126-0/+0
| | | | loading, restoring HQx filters. [Ryan Holtz] (#9401)
* -bgfx: Switched fs_blit_palette16 to expand bitmap_ind16 contents to R8. ↵ MooglyGuy2021-09-046-0/+0
| | | | Fixes vertical off-by-one shift in games with an odd pixel count along X. [Ryan Holtz] (#8528)
* -bgfx: Fixed UV rounding errors in fs_blit_palette16; Switched back to ↵ MooglyGuy2021-08-306-0/+0
| | | | direct texture upload rather than CPU copy. (#8505) [Ryan Holtz]
* -bgfx: Revised fs_blit_palette16 to not use pixel rounding. Fixes issues in ↵ MooglyGuy2021-08-246-0/+0
| | | | carpolo, kncljoe, and others. [Ryan Holtz] (#8488)
* BGFX fixes for various backends (#8469) [Ryan Holtz] MooglyGuy2021-08-2012-0/+0
| | | | * Fixed palette and UYVY conversion in all backends. Fixes MT07760. * Fixed a typo in targetmanager.cpp, thanks LN for the heads-up.
* bgfx shaders recompile Miodrag Milanovic2021-08-131116-0/+0
|
* bgfx: Fixed crt-geom{,-deluxe} shader compilation and recompiled shaders. Vas Crabb2021-03-2020-0/+0
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7872) cgwg2021-03-2024-0/+0
| | | | | | * Made spot size parameters adjustable also increased samples from 2 to 3 scanlines for crt-geom-deluxe. * Made horizontal interpolation adjustable. * bgfx crt-geom-deluxe: Made phosphor decay smoothly to zero at specified cutoff time. * bgfx crt-geom-deluxe: Added lowpass filter.
* bgfx: Compiled new shaders for Direct3D, ESSL, Metal and SPIR-V. Vas Crabb2021-02-2120-0/+0
|
* bgfx: crt-geom and crt-geom-deluxe enhancements (#7766) cgwg2021-02-214-0/+0
| | | | | | | Added a "brightness boost" feature for the shadow mask that works by making the brightness ratio between bright and dark mask pixels closer to 1 for the brighter parts of the image. Added clamping to zero so that underscanning produces a black border. Added a "raster bloom" effect to crt-geom-deluxe that makes the image grow slightly when the average brightness of the screen is high, mimicking a common defect in CRTs.
* bgfx: Fixed overlapping register in lcd-grid shaders and compiled for ↵ Vas Crabb2021-01-2320-0/+0
| | | | Direct3D, SPIR-V, Metal, etc.
* bgfx: Added lcd-grid shader. (#7691) cgwg2021-01-234-0/+0
| | | Note that this is currently only compiled for GLSL.
* -bgfx: Shader recompile after cgwg's changes. [Ryan Holtz] Ryan Holtz2020-12-23861-0/+0
|
* Modified crt-geom-deluxe to track the power-law fall-off for longer (up to ↵ cgwg2020-12-2311-0/+0
| | | | | | 1024 frames). Ensured that the intensity falls to zero afterward. Note that this is currently only compiled for GLSL.
* -bgfx: Fixed Github issue #5961. [Ryan Holtz] MooglyGuy2019-11-245-0/+0
|
* -bgfx: Fixed Github issues #5830 and #5956. [Ryan Holtz] MooglyGuy2019-11-2426-0/+0
|
* Sync bgfx, bx and bimg with upstream; fix the hlsl fs_chroma.sc matrix ↵ Julian Sikorski2019-11-1289-0/+0
| | | | | | | | | | | | | | transposition properly (#5875) * Sync bgfx with upstream revision 280420d * Sync bx with upstream revision 267727d * Sync bimg with upstream revision c1bab10 * Use bgfx helper functions to ensure correct matrix orientation * Rebuild hlsl chain
* -bgfx: Fixed opengl backend, nw MooglyGuy2019-10-2167-0/+0
|
* Add missing spirv shaders (nw) Olivier Galibert2019-10-143-0/+0
|
* -bgfx: Do texture format conversion via a full-screen GPU pass. [Ryan Holtz] MooglyGuy2019-10-1315-0/+0
|
* WIP: sync bgfx, bx and bimg with latest upstream (#5723) Julian Sikorski2019-10-13174-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Sync with bgfx upstream revision b91d0b6 * Sync with bx upstream revision d60912b * Sync with bimg upstream revision bd81f60 * Add astc-codec decoder * Rename VertexDecl to VertexLayout * Rename UniformType enum Int1 to Sampler. * Add NVN stub * Fix unused-const-variable error on macOS * Drop redundant explicit language parameters buildoptions_cpp are only applied to c++ files and buildoptions_objcpp are only applied to objective c++ files. As such, hardcoding -x offers no benefit while preventing overrides (such as one needed by 3rdparty/bgfx/src/renderer_vk.cpp on macOS) from working. * Re-introduce -x c++ in places where C code is compiled as C++ to prevent clang from throwing a warning * Build bgfx as Objective-C++ on macOS It is needed due to included headers * Enable Direct3D12 and Vulkan bgfx rendering backends * Enable building of spirv shaders * Properly escape /c in cmd call * Comment out dx12 bgfx renderer * Honor VERBOSE setting during shaders build * Only invert hlsl shader XYZ_TO_sRGB matrix for opengl * Add spirv shaders * OpenGL ES needs transposed matrix too * Metal needs transposed matrix as well
* (nw) Clean up the mess on master Vas Crabb2019-03-2666-0/+0
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-2566-0/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* Transposed transformation matrix to fix bgfx colors (nw) Henrik Algestam2019-01-0866-0/+0
|
* HLSL Color Transforms and 3D LUT (#4043) Westley M. Martinez2018-10-0725-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Port scanline modification to BGFX W. M. Martinez2018-09-1415-0/+0
|
* Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all ↵ Miodrag Milanovic2017-12-01840-0/+0
| | | | shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic]
* -bgfx: Fixed xBR-lv2-multipass shader. [Ryan Holtz] MooglyGuy2017-06-1110-0/+0
|
* -bgfx: Fixed the following xBR shaders: xBR-lv2-fast, xBR-lv2-noblend, ↵ MooglyGuy2017-06-1035-0/+0
| | | | xBR-lv2, xBR-lv3-noblend, and xBR-lv3. [Ryan Holtz]
* Fixed HQx shaders with BGFX OpenGL backend. Fixes for more shaders seem to ↵ MooglyGuy2017-05-189-0/+0
| | | | be a bit more involved. Will have proper commit message later. (nw)
* update shaders (nw) Miodrag Milanovic2017-03-2984-0/+0
|
* Rebuild shaders, only metal is affected (nw) Miodrag Milanovic2017-02-05153-0/+0
|
* Fix for glsl (nw) Miodrag Milanovic2016-10-29227-0/+0
|
* Updated BGFX and BX and recompiled shaders (nw) Branimir Karadžić2016-10-29395-0/+0
|
* Reduced defocus effect to one pass (HLSL/BGFX) Jezze2016-10-225-0/+0
| | | | | - removed second defocus pass - limited defocus stength to a maximum of 2.0
* Fixed aspect ratio of rounded corners (nw) Jezze2016-09-295-0/+0
|
* Fixed several small issues in HLSL/BGFX Jezze2016-09-2810-0/+0
| | | | | | * fixed target texture dimension when -intoverscan is used (this fixes the appereance of scanline and shadow mask) * added target_scale and screen_count uniforms * rounded corners now remain aligned with screen bounds when -intoverscan is used (single screen only)
* Update BGFX and BX packages and update MAME code to support new API (nw) Miodrag Milanovic2016-09-0310-0/+0
| | | | Generated missing shaders (nw)
* - already fixed scanline issue also applied for swapped orientation (nw) Jezze2016-08-135-0/+0
|
* - updated shader binaries which have changed after the last BGFX update (nw) Jezze2016-08-13166-0/+0
|
* Added crt-geom and crt-geom-deluxe shaders for bgfx. Jeremy Green2016-07-0355-0/+0
| | | | This includes several aperture grille / shadow mask patterns. Note that these are all designed to be used on a display with RGB subpixel order, and may thus suffer if rotated or used with a BGR display.