From a7d5a91a961d3a8d861c97c392243fc241797f69 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 24 Oct 2019 02:55:35 -0300 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()}; ```