diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/valueuniform.h')
-rw-r--r-- | src/osd/modules/render/bgfx/valueuniform.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/valueuniform.h b/src/osd/modules/render/bgfx/valueuniform.h new file mode 100644 index 00000000000..2cce6970958 --- /dev/null +++ b/src/osd/modules/render/bgfx/valueuniform.h @@ -0,0 +1,31 @@ +// license:BSD-3-Clause +// copyright-holders:Ryan Holtz +//============================================================ +// +// valueuniform.cpp - BGFX shader chain fixed uniform +// +// Represents the mapping between a fixed value and a chain +// shader uniform for a given entry +// +//============================================================ + +#pragma once + +#ifndef __DRAWBGFX_VALUE_UNIFORM__ +#define __DRAWBGFX_VALUE_UNIFORM__ + +#include "entryuniform.h" + +class bgfx_value_uniform : public bgfx_entry_uniform +{ +public: + bgfx_value_uniform(bgfx_uniform* uniform, float* values, const int count); + + virtual void bind() override; + +private: + float m_values[4]; + const int m_count; +}; + +#endif // __DRAWBGFX_VALUE_UNIFORM__ |