diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/inputpair.h')
-rw-r--r-- | src/osd/modules/render/bgfx/inputpair.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/inputpair.h b/src/osd/modules/render/bgfx/inputpair.h new file mode 100644 index 00000000000..2cab7ff2363 --- /dev/null +++ b/src/osd/modules/render/bgfx/inputpair.h @@ -0,0 +1,37 @@ +// license:BSD-3-Clause +// copyright-holders:Ryan Holtz +//============================================================ +// +// inputpair.h - BGFX sampler-and-texture pair +// +// Keeps track of the texture which is bound to the sampler +// which is bound to the specified stage index. +// +//============================================================ + +#pragma once + +#ifndef __DRAWBGFX_INPUT_PAIR__ +#define __DRAWBGFX_INPUT_PAIR__ + +#include <bgfx/bgfx.h> + +#include <string> + +class bgfx_effect; +class bgfx_texture; + +class bgfx_input_pair +{ +public: + bgfx_input_pair(int index, std::string sampler, bgfx_texture* texture); + + void bind(bgfx_effect *effect); + +private: + int m_index; + std::string m_sampler; + bgfx_texture* m_texture; +}; + +#endif // __DRAWBGFX_INPUT_PAIR__
\ No newline at end of file |