diff options
author | ReinUsesLisp <[email protected]> | 2019-03-11 03:41:44 -0300 |
---|---|---|
committer | ReinUsesLisp <[email protected]> | 2019-03-11 03:41:44 -0300 |
commit | ba92d8ea08723719d82f6a344a7fbc8e56c89f99 (patch) | |
tree | f4d3def266ba415043ef31b8616a4fe7b6592aa4 /README.md | |
parent | 73595f45889f7bb7adfa6bd946eadc7348f31f4b (diff) | |
download | sirit-ba92d8ea08723719d82f6a344a7fbc8e56c89f99.tar.gz sirit-ba92d8ea08723719d82f6a344a7fbc8e56c89f99.zip |
Update README.md and remove automatic capabilities addition
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -10,7 +10,6 @@ What it does for you: * Sort declaration opcodes * Handle types and constant duplicates * Emit SPIR-V opcodes -* Add capabilities automatically What does not do for you: * Avoid ID duplicates (emitting the same instruction twice) @@ -35,11 +34,11 @@ public: AddCapability(spv::Capability::Shader); SetMemoryModel(spv::AddressingModel::Logical, spv::MemoryModel::GLSL450); - auto main_type{TypeFunction(TypeVoid())}; - auto main_func{Emit(Function(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))}; - Emit(Label()); - Emit(Return()); - Emit(FunctionEnd()); + auto main_type{OpTypeFunction(TypeVoid())}; + auto main_func{Emit(OpFunction(TypeVoid(), spv::FunctionControlMask::MaskNone, main_type))}; + Emit(OpLabel()); + Emit(OpReturn()); + Emit(OpFunctionEnd()); AddEntryPoint(spv::ExecutionModel::Vertex, main_func, "main"); } |