mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-24 08:16:23 +01:00
Rename Ref -> Op
This commit is contained in:
parent
34d215d3d8
commit
1de01c95ae
6 changed files with 88 additions and 88 deletions
|
|
@ -18,11 +18,10 @@ public:
|
|||
SetMemoryModel(spv::AddressingModel::Logical, spv::MemoryModel::GLSL450);
|
||||
|
||||
auto main_type{TypeFunction(TypeVoid())};
|
||||
auto main_func{EmitFunction(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type)};
|
||||
Add(main_func);
|
||||
Add(EmitLabel());
|
||||
Add(EmitReturn());
|
||||
Add(EmitFunctionEnd());
|
||||
auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))};
|
||||
Emit(Label());
|
||||
Emit(Return());
|
||||
Emit(FunctionEnd());
|
||||
|
||||
AddEntryPoint(spv::ExecutionModel::Vertex, main_func, "main");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue