quick backup
[demo] / src / vulkan / shader-vk.cc
diff --git a/src/vulkan/shader-vk.cc b/src/vulkan/shader-vk.cc
new file mode 100644 (file)
index 0000000..eb22b97
--- /dev/null
@@ -0,0 +1,101 @@
+#include "vkutil.h"
+#include "shader-vk.h"
+
+/* static variables */
+static vku_buffer ubo;
+
+ShaderVK::ShaderVK()
+{
+}
+
+ShaderVK::~ShaderVK()
+{
+       destroy();
+}
+
+bool ShaderVK::create(char *buf, unsigned int bsz, const char *fname)
+{
+       return true;
+}
+
+bool ShaderVK::load(const char *fname, SType type)
+{
+       return true;
+}
+
+void ShaderVK::destroy()
+{
+}
+
+ShaderProgramVK::ShaderProgramVK()
+{
+}
+
+ShaderProgramVK::~ShaderProgramVK()
+{
+}
+
+bool ShaderProgramVK::create()
+{
+       return true;
+}
+
+bool ShaderProgramVK::link()
+{
+       return true;
+}
+
+bool ShaderProgramVK::use() const
+{
+       return true;
+}
+
+void ShaderProgramVK::destroy()
+{
+}
+
+void ShaderProgramVK::attach_shader(Shader *shader)
+{
+}
+
+int ShaderProgramVK::get_uniform_location(const char *name) const
+{
+       return 0;
+}
+
+void ShaderProgramVK::set_uniformi(int location, int value)
+{
+}
+
+void ShaderProgramVK::set_uniformi(int location, int x, int y)
+{
+}
+
+void ShaderProgramVK::set_uniformi(int location, int x, int y, int z)
+{
+}
+
+void ShaderProgramVK::set_uniformi(int location, int x, int y, int z, int w)
+{
+}
+
+
+void ShaderProgramVK::set_uniformf(int location, float value)
+{
+}
+
+void ShaderProgramVK::set_uniformf(int location, float x, float y)
+{
+}
+
+void ShaderProgramVK::set_uniformf(int location, float x, float y, float z)
+{
+}
+
+void ShaderProgramVK::set_uniformf(int location, float x, float y, float z, float w)
+{
+}
+
+void ShaderProgramVK::set_uniform_matrix(int location, const Mat4 &mat)
+{
+}
\ No newline at end of file