summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/bgfx/valueuniform.h
blob: 40d207aa0bb1e330d1ca67f50b0109cb99ccd7c3 (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
24
25
26
27
28
29
30
31
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
//  valueuniform.h - 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__