Added shader param buffer support
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user