mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-05-09 00:54:19 +02:00
Add version select and OpLogicalNot
This commit is contained in:
@@ -20,6 +20,7 @@ add_library(sirit
|
||||
insts/memory.cpp
|
||||
insts/annotation.cpp
|
||||
insts/misc.cpp
|
||||
insts/logical.cpp
|
||||
)
|
||||
target_include_directories(sirit
|
||||
PUBLIC ../include
|
||||
|
||||
@@ -26,7 +26,7 @@ template <typename T> static void WriteSet(Stream& stream, const T& set) {
|
||||
}
|
||||
}
|
||||
|
||||
Module::Module() {}
|
||||
Module::Module(u32 version) : version(version) {}
|
||||
|
||||
Module::~Module() = default;
|
||||
|
||||
@@ -35,7 +35,7 @@ std::vector<u8> Module::Assemble() const {
|
||||
Stream stream{bytes};
|
||||
|
||||
stream.Write(spv::MagicNumber);
|
||||
stream.Write(spv::Version);
|
||||
stream.Write(version);
|
||||
stream.Write(GENERATOR_MAGIC_NUMBER);
|
||||
stream.Write(bound);
|
||||
stream.Write(static_cast<u32>(0));
|
||||
|
||||
Reference in New Issue
Block a user