some descriptor functions in vkutil - wip
[demo] / src / shader.cc
index b39401f..2e530ec 100644 (file)
@@ -1,5 +1,6 @@
 #include <assert.h>
 #include <stdio.h>
+
 #include "shader.h"
 
 Shader::Shader() {}
@@ -8,7 +9,7 @@ Shader::~Shader()
        type = SDR_UNKNOWN;
 }
 
-bool Shader::load(const char *fname, SType type)
+bool Shader::load(const char *fname, ShaderType type)
 {
        switch(type) {
        case SDR_VERTEX:
@@ -46,7 +47,7 @@ bool Shader::load(const char *fname, SType type)
        return create(buf, fsz, fname);
 }
 
-SType Shader::get_type()
+ShaderType Shader::get_type()
 {
        return type;
 }