pleascach/Renderer/Shader.hpp
2024-01-18 11:27:43 -05:00

20 lines
298 B
C++

#pragma once
#define VULKAN_HPP_NO_STRUCT_CONSTRUCTORS
#include <vulkan/vulkan.hpp>
struct Shader {
vk::ShaderModule module;
Shader(vk::Device dev, const std::string& fname);
void cleanup(vk::Device dev);
inline operator vk::ShaderModule& () {
return module;
}
std::string fname;
};