summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/render/bgfx/pass.cpp')
-rw-r--r--src/osd/modules/render/bgfx/pass.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/osd/modules/render/bgfx/pass.cpp b/src/osd/modules/render/bgfx/pass.cpp
deleted file mode 100644
index 246399eeebd..00000000000
--- a/src/osd/modules/render/bgfx/pass.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "emu.h"
-
-#include <bgfx/bgfx.h>
-
-#include "effect.h"
-#include "texture.h"
-#include "target.h"
-#include "pass.h"
-
-bgfx_pass::bgfx_pass(std::string name, bgfx_effect* effect, std::vector<bgfx_texture*>& inputs, bgfx_target* output)
- : m_name(name)
- , m_effect(effect)
- , m_output(output)
-{
- for (bgfx_texture* input : inputs)
- {
- m_inputs.push_back(input);
- }
-}
-
-bgfx_pass::~bgfx_pass()
-{
-}
-
-void bgfx_pass::submit(render_primitive* prim, int view)
-{
- for (int index = 0; index < m_inputs.size(); index++)
- {
- bgfx::setTexture(index, m_effect->uniform(m_inputs[index]->name())->handle(), m_inputs[index]->handle());
- }
- bgfx::setViewFrameBuffer(view, m_output->target());
- m_effect->submit(view);
-}