summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/entryuniform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/entryuniform.h')
-rw-r--r--src/osd/modules/render/bgfx/entryuniform.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/entryuniform.h b/src/osd/modules/render/bgfx/entryuniform.h
new file mode 100644
index 00000000000..9cef6c86825
--- /dev/null
+++ b/src/osd/modules/render/bgfx/entryuniform.h
@@ -0,0 +1,33 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// entryuniform.h - BGFX shader chain uniform remapper
+//
+// Represents the mapping between a fixed value, a slider, or
+// other dynamic parameter and a chain effect shader uniform
+//
+//============================================================
+
+#pragma once
+
+#ifndef __DRAWBGFX_ENTRY_UNIFORM__
+#define __DRAWBGFX_ENTRY_UNIFORM__
+
+#include <bgfx/bgfx.h>
+
+#include "uniform.h"
+
+class bgfx_entry_uniform
+{
+public:
+ bgfx_entry_uniform(bgfx_uniform* uniform) : m_uniform(uniform) { }
+ virtual ~bgfx_entry_uniform() { }
+
+ virtual void bind() = 0;
+
+protected:
+ bgfx_uniform* m_uniform;
+};
+
+#endif // __DRAWBGFX_ENTRY_UNIFORM__