7 VkShaderModuleCreateInfo createInfo{};
8 createInfo.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
9 createInfo.codeSize = code.size();
10 createInfo.pCode =
reinterpret_cast<const uint32_t *
>(code.data());
12 if (vkCreateShaderModule(
vkBackend::GetDevice(), &createInfo,
nullptr, &shaderModule) != VK_SUCCESS)
Shader(const ShaderStage &type) noexcept
static VkDevice GetDevice() noexcept
vkShader(const std::vector< char > &code, ShaderStage stage)
static void Log(const char *message)
Contains all graphics related classes and structs.
constexpr const char * VertexStageToString(const Hubris::Graphics::ShaderStage stage) noexcept