blob: c318f2ff01cf3be69b8b644ef88291f86f00f959 (
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
|
// 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));
}
|