diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/paramuniform.cpp')
-rw-r--r-- | src/osd/modules/render/bgfx/paramuniform.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/osd/modules/render/bgfx/paramuniform.cpp b/src/osd/modules/render/bgfx/paramuniform.cpp new file mode 100644 index 00000000000..c318f2ff01c --- /dev/null +++ b/src/osd/modules/render/bgfx/paramuniform.cpp @@ -0,0 +1,23 @@ +// license:BSD-3-Clause +// copyright-holders:Ryan Holtz +//============================================================ +// +// paramuniform.cpp - BGFX shader chain parametric uniform +// +//============================================================ + +#include "paramuniform.h" + +#include "parameter.h" + +bgfx_param_uniform::bgfx_param_uniform(bgfx_uniform* uniform, bgfx_parameter* param) + : bgfx_entry_uniform(uniform) + , m_param(param) +{ +} + +void bgfx_param_uniform::bind() +{ + float value = m_param->value(); + m_uniform->set(&value, sizeof(float)); +} |