diff --git a/README.md b/README.md index 7034547..8079015 100644 --- a/README.md +++ b/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 code{module.Assemble()}; +std::vector code{module.Assemble()}; ```