Added shader param buffer support

This commit is contained in:
2023-05-24 23:07:09 -07:00
parent 66c4755ac5
commit a2669f6eb9
9 changed files with 213 additions and 10 deletions

View File

@ -6,10 +6,22 @@
#pragma once
#include "display/shader/ShaderManager.hpp"
#include "scene/components/display/material/SimpleTexturedMaterial.hpp"
#include "display/shader/ShaderParameterBuffer.hpp"
namespace Dawn {
struct Test123 {
float_t r;
float_t g;
float_t b;
};
class SimpleTexturedShaderTest : public ShaderParameterBuffer<struct Test123> {
};
class SimpleTexturedShaderProgram : public ShaderProgram {
public:
SimpleTexturedShaderTest test;
shaderparameter_t paramProjection;
shaderparameter_t paramView;
shaderparameter_t paramModel;