Toast Engine
Loading...
Searching...
No Matches
spirv_entry_points.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <cstddef>
10#include <cstdint>
11#include <span>
12#include <string>
13#include <string_view>
14#include <toast/export.hpp>
15#include <vector>
16
17namespace renderer::spirv {
18
19enum class ExecutionModel : uint16_t {
20 vertex = 0,
21 fragment = 4,
22 compute = 5,
23 task = 5364,
24 mesh = 5365,
25};
26
27[[nodiscard]]
28auto TOAST_API entryPointNames(std::span<const std::byte> spirv, ExecutionModel model) -> std::vector<std::string>;
29
31[[nodiscard]]
32auto TOAST_API resolveEntryPoint(
33 std::span<const std::byte> spirv, ExecutionModel model, const std::string& requested, std::string_view debug_name
34) -> std::string;
35
36}
auto resolveEntryPoint(std::span< const std::byte > spirv, ExecutionModel model, const std::string &requested, std::string_view debug_name) -> std::string
Slang renames the only entry point of a module to main.
Definition spirv_entry_points.cpp:60