2#ifndef LIBSBX_GRAPHICS_PIPELINE_COMPILER_HPP_
3#define LIBSBX_GRAPHICS_PIPELINE_COMPILER_HPP_
5#include <vulkan/vulkan.hpp>
8#include <slang-com-ptr.h>
9#include <slang-com-helper.h>
11#include <libsbx/utility/logger.hpp>
12#include <libsbx/utility/exception.hpp>
13#include <libsbx/utility/target.hpp>
15#include <libsbx/memory/blob.hpp>
17namespace sbx::graphics {
31 std::string entry_point{
"main"};
32 std::vector<std::string> specializations{};
35 std::filesystem::path path{};
36 std::vector<define> defines{};
37 std::unordered_map<SlangStage, compile_request::per_stage> per_stage{};
42 std::unordered_map<SlangStage, std::vector<std::uint32_t>> code;
53 static auto _read_file(
const std::filesystem::path& path) -> std::string;
57 Slang::ComPtr<slang::IGlobalSession> _global_session;
Definition: compiler.hpp:19
Definition: compiler.hpp:30
Definition: compiler.hpp:28
Definition: compiler.hpp:41
Definition: compiler.hpp:23