// 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 #include 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__