summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/pass.h
blob: 30c0b88a991045d1930b507516699f82000a91a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once

#ifndef __DRAWBGFX_PASS__
#define __DRAWBGFX_PASS__

#include <string>
#include <vector>

class render_primitive;
class bgfx_effect;
class bgfx_texture;
class bgfx_target;

class bgfx_pass
{
public:
    bgfx_pass(std::string name, bgfx_effect* effect, std::vector<bgfx_texture*>& inputs, bgfx_target* output);
    ~bgfx_pass();

    void submit(render_primitive* prim, int view);

    // Getters
    std::string name() const { return m_name; }

private:
	std::string					m_name;
    bgfx_effect*				m_effect;
    std::vector<bgfx_texture*>	m_inputs;
    bgfx_target*				m_output;
};

#endif // __DRAWBGFX_PASS__