summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.h
diff options
context:
space:
mode:
author MooglyGuy <MooglyGuy@users.noreply.github.com>2023-01-28 17:59:25 +0100
committer GitHub <noreply@github.com>2023-01-29 03:59:25 +1100
commit5671484fc87fc11b536a0b0f6cb0efb1e680d489 (patch)
tree57d713a7d5ed6936a691473ade2962569849ecfa /src/emu/render.h
parentcc7ad69ddd6d0fdb515db586ff1345e1eeaf38f4 (diff)
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.
Diffstat (limited to 'src/emu/render.h')
-rw-r--r--src/emu/render.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/render.h b/src/emu/render.h
index 1229aef4869..2faa5f46394 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -157,6 +157,7 @@ struct render_texinfo
void * base; // base of the data
u32 rowpixels; // pixels per row
u32 width; // width of the image
+ u32 width_margin; // left margin of the scaled bounds, if applicable
u32 height; // height of the image
u32 seqid; // sequence ID
u64 unique_id; // unique identifier to pass to osd