summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.h
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-15 17:57:16 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-15 17:57:28 +0100
commitb0a7bcd3468fa309d3761742be7f69c671d7a1fc (patch)
treebb75aac1faac0b980ddcf9d0de2599478cc504e4 /src/emu/render.h
parenta95323026cceddedb09eac64eedf8daef1dfd580 (diff)
Significant speed improvements to the BGFX renderer. [MooglyGuy]
Diffstat (limited to 'src/emu/render.h')
-rw-r--r--src/emu/render.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/emu/render.h b/src/emu/render.h
index e40c86b1c3c..0fda591381a 100644
--- a/src/emu/render.h
+++ b/src/emu/render.h
@@ -62,7 +62,9 @@ enum
BLENDMODE_NONE = 0, // no blending
BLENDMODE_ALPHA, // standard alpha blend
BLENDMODE_RGB_MULTIPLY, // apply source alpha to source pix, then multiply RGB values
- BLENDMODE_ADD // apply source alpha to source pix, then add to destination
+ BLENDMODE_ADD, // apply source alpha to source pix, then add to destination
+
+ BLENDMODE_COUNT
};
@@ -105,6 +107,9 @@ const UINT32 PRIMFLAG_TYPE_MASK = 3 << PRIMFLAG_TYPE_SHIFT;
const UINT32 PRIMFLAG_TYPE_LINE = 0 << PRIMFLAG_TYPE_SHIFT;
const UINT32 PRIMFLAG_TYPE_QUAD = 1 << PRIMFLAG_TYPE_SHIFT;
+const int PRIMFLAG_PACKABLE_SHIFT = 1;
+const UINT32 PRIMFLAG_PACKABLE = 1 << PRIMFLAG_PACKABLE_SHIFT;
+
//**************************************************************************
// MACROS
//**************************************************************************
@@ -206,6 +211,7 @@ struct render_texinfo
UINT32 height; // height of the image
UINT32 seqid; // sequence ID
UINT64 osddata; // aux data to pass to osd
+ UINT32 hash; // hash (where applicable)
const rgb_t * palette; // palette for PALETTE16 textures, bcg lookup table for RGB32/YUY16
};
@@ -430,7 +436,7 @@ public:
private:
// internal helpers
- void get_scaled(UINT32 dwidth, UINT32 dheight, render_texinfo &texinfo, render_primitive_list &primlist);
+ void get_scaled(UINT32 dwidth, UINT32 dheight, render_texinfo &texinfo, render_primitive_list &primlist, bool packable = false);
const rgb_t *get_adjusted_palette(render_container &container);
static const int MAX_TEXTURE_SCALES = 16;