Add compute ShaderStage;

This commit is contained in:
bjorn
2021-06-04 22:05:43 -06:00
committed by bjorn
parent a1c79c45d8
commit 085ba2cb6e
11 changed files with 67 additions and 26 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ public:
// Pointer to the default Shader.
static Shader *standardShaders[STANDARD_MAX_ENUM];
Shader(ShaderStage *vertex, ShaderStage *pixel);
Shader(StrongRef<ShaderStage> stages[]);
virtual ~Shader();
/**
@@ -219,7 +219,7 @@ public:
static SourceInfo getSourceInfo(const std::string &src);
static std::string createShaderStageCode(Graphics *gfx, ShaderStageType stage, const std::string &code, const SourceInfo &info);
static bool validate(ShaderStage *vertex, ShaderStage *pixel, std::string &err);
static bool validate(StrongRef<ShaderStage> stages[], std::string &err);
static bool initialize();
static void deinitialize();
@@ -246,7 +246,7 @@ protected:
bool usesPointSize;
};
static bool validateInternal(ShaderStage* vertex, ShaderStage* pixel, std::string& err, ValidationReflection &reflection);
static bool validateInternal(StrongRef<ShaderStage> stages[], std::string& err, ValidationReflection &reflection);
StrongRef<ShaderStage> stages[SHADERSTAGE_MAX_ENUM];