mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-01 12:15:45 +01:00
Add OpExtension
This commit is contained in:
parent
2b0a59d890
commit
b23716087a
2 changed files with 16 additions and 1 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <optional>
|
||||
#include <set>
|
||||
#include <spirv/unified1/spirv.hpp11>
|
||||
#include <string>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -38,6 +39,9 @@ class Module {
|
|||
*/
|
||||
std::vector<std::uint8_t> Assemble() const;
|
||||
|
||||
/// Adds a SPIR-V extension.
|
||||
void AddExtension(const std::string& extension_name);
|
||||
|
||||
/// Adds a module capability.
|
||||
void AddCapability(spv::Capability capability);
|
||||
|
||||
|
|
@ -620,6 +624,7 @@ class Module {
|
|||
|
||||
std::uint32_t bound{1};
|
||||
|
||||
std::set<std::string> extensions;
|
||||
std::set<spv::Capability> capabilities;
|
||||
std::unique_ptr<Op> glsl_std_450;
|
||||
std::set<std::unique_ptr<Op>> ext_inst_import;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue