aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-03-11 03:41:44 -0300
committerReinUsesLisp <[email protected]>2019-03-11 03:41:44 -0300
commitba92d8ea08723719d82f6a344a7fbc8e56c89f99 (patch)
treef4d3def266ba415043ef31b8616a4fe7b6592aa4 /README.md
parent73595f45889f7bb7adfa6bd946eadc7348f31f4b (diff)
downloadsirit-ba92d8ea08723719d82f6a344a7fbc8e56c89f99.tar.gz
sirit-ba92d8ea08723719d82f6a344a7fbc8e56c89f99.zip
Update README.md and remove automatic capabilities addition
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index ed3148e..8fa51ee 100644
--- a/README.md
+++ b/README.md
@@ -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");
}