mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-25 15:15:43 +01:00
Update README.md
This commit is contained in:
parent
42248408a9
commit
a7d5a91a96
10
README.md
10
README.md
@ -35,10 +35,10 @@ public:
|
||||
SetMemoryModel(spv::AddressingModel::Logical, spv::MemoryModel::GLSL450);
|
||||
|
||||
auto main_type{TypeFunction(TypeVoid())};
|
||||
auto main_func{Emit(OpFunction(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
|
||||
Emit(OpLabel());
|
||||
Emit(OpReturn());
|
||||
Emit(OpFunctionEnd());
|
||||
auto main_func{OpFunction(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type)};
|
||||
AddLabel(OpLabel());
|
||||
OpReturn();
|
||||
OpFunctionEnd();
|
||||
|
||||
AddEntryPoint(spv::ExecutionModel::Vertex, main_func, "main");
|
||||
}
|
||||
@ -49,5 +49,5 @@ public:
|
||||
MyModule module;
|
||||
module.Generate();
|
||||
|
||||
std::vector<std::uint8_t> code{module.Assemble()};
|
||||
std::vector<std::uint32_t> code{module.Assemble()};
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user