mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
32 lines
719 B
C++
32 lines
719 B
C++
// 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__
|