diff options
Diffstat (limited to 'src/osd/modules/render/bgfx/uniformreader.h')
-rw-r--r-- | src/osd/modules/render/bgfx/uniformreader.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/osd/modules/render/bgfx/uniformreader.h b/src/osd/modules/render/bgfx/uniformreader.h index 40bedf8b732..056feee04ba 100644 --- a/src/osd/modules/render/bgfx/uniformreader.h +++ b/src/osd/modules/render/bgfx/uniformreader.h @@ -17,24 +17,15 @@ class bgfx_uniform; -enum uniform_type -{ - TYPE_INT1 = bgfx::UniformType::Int1, - TYPE_VEC4 = bgfx::UniformType::Vec4, - TYPE_MAT3 = bgfx::UniformType::Mat3, - TYPE_MAT4 = bgfx::UniformType::Mat4, - TYPE_CAMERA, // Alias for the current ortho camera, used to auto-bind on material load - - TYPE_COUNT = 5 -}; - class uniform_reader : public state_reader { public: - static bgfx_uniform* read_from_value(const Value& value); + static bgfx_uniform* read_from_value(const Value& value, std::string prefix); private: - static const int TYPE_COUNT = uniform_type::TYPE_COUNT; + static bool validate_parameters(const Value& value, std::string prefix); + + static const int TYPE_COUNT = 4; static const string_to_enum TYPE_NAMES[TYPE_COUNT]; }; |