diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 00:13:38 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 00:13:38 +0200 |
| commit | 0262eeea8762cdeb14c98d22473ebf0fd6b37bf9 (patch) | |
| tree | d8675a753433a5a0fce16e7380fac3dc3bd2ee35 /src/platform/vulkan/vulkan_shader.cpp | |
| parent | 1b251bd174527951eec220ecbcb7eca89328e5b8 (diff) | |
chore: prepare for Vulkan
Diffstat (limited to 'src/platform/vulkan/vulkan_shader.cpp')
| -rw-r--r-- | src/platform/vulkan/vulkan_shader.cpp | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/src/platform/vulkan/vulkan_shader.cpp b/src/platform/vulkan/vulkan_shader.cpp new file mode 100644 index 0000000..53d65a5 --- /dev/null +++ b/src/platform/vulkan/vulkan_shader.cpp @@ -0,0 +1,102 @@ +#include "vulkan_shader.h" + +#include <fstream> +#include <glm/gtc/type_ptr.hpp> + +namespace Donut +{ + VulkanShader::VulkanShader(const std::string& filepath) + { + } + + VulkanShader::VulkanShader(const std::string& name, const std::string& vertex_src, const std::string& fragment_src) + : m_name(name) + { + } + + VulkanShader::~VulkanShader() + { + } + + void VulkanShader::bind() const + { + } + + void VulkanShader::unbind() const + { + } + + void VulkanShader::set_int(const std::string& name, int value) + { + } + + void VulkanShader::set_int_array(const std::string& name, int* values, uint32_t count) + { + } + + void VulkanShader::set_float(const std::string& name, float value) + { + } + + void VulkanShader::set_float2(const std::string& name, const glm::vec2& value) + { + } + + void VulkanShader::set_float3(const std::string& name, const glm::vec3& value) + { + } + + void VulkanShader::set_float4(const std::string& name, const glm::vec4& value) + { + } + + void VulkanShader::set_mat4(const std::string& name, const glm::mat4& value) + { + } + + void VulkanShader::upload_uniform_int(const std::string& name, int value) + { + } + + void VulkanShader::upload_uniform_int_array(const std::string& name, int* values, uint32_t count) + { + } + + void VulkanShader::upload_uniform_float(const std::string& name, float value) + { + } + + void VulkanShader::upload_uniform_float2(const std::string& name, const glm::vec2& value) + { + } + + void VulkanShader::upload_uniform_float3(const std::string& name, const glm::vec3& value) + { + } + + void VulkanShader::upload_uniform_float4(const std::string& name, const glm::vec4& value) + { + } + + void VulkanShader::upload_uniform_mat3(const std::string& name, const glm::mat3& matrix) + { + } + + void VulkanShader::upload_uniform_mat4(const std::string& name, const glm::mat4& matrix) + { + } + + std::string VulkanShader::read_file(const std::string& filepath) + { + return ""; + } + + std::unordered_map<uint32_t, std::string> VulkanShader::pre_process(const std::string& source) + { + return {}; + } + + void VulkanShader::compile(const std::unordered_map<uint32_t, std::string>& shader_sources) + { + } +}; |
