summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/pass.cpp
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-18 18:11:42 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-21 03:03:24 +0100
commit09f03905fd7400f90b79e346f2f2d94d7c4ce789 (patch)
tree4451d4b77648975fdc835e391d7dfd49cdac6d3b /src/osd/modules/render/bgfx/pass.cpp
parent9a47a870df619656e9092f2f77622e84e640307a (diff)
More reshuffling, nw
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);
-}