mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-12-22 19:15:33 +00:00
Rename Assembly -> Assemble
This commit is contained in:
parent
beaf57a8e5
commit
2bafba1a17
|
@ -54,5 +54,5 @@ MyModule module;
|
|||
module.Generate();
|
||||
|
||||
module.Optimize(2);
|
||||
std::vector<std::uint8_t> code{module.Assembly()};
|
||||
std::vector<std::uint8_t> code{module.Assemble()};
|
||||
```
|
||||
|
|
|
@ -33,7 +33,7 @@ public:
|
|||
* It can be called multiple times but it's recommended to copy code externally.
|
||||
* @return A stream of bytes representing a SPIR-V module.
|
||||
*/
|
||||
std::vector<std::uint8_t> Assembly() const;
|
||||
std::vector<std::uint8_t> Assemble() const;
|
||||
|
||||
/**
|
||||
* Optimizes module's IR.
|
||||
|
|
|
@ -24,7 +24,7 @@ Module::Module() {}
|
|||
|
||||
Module::~Module() = default;
|
||||
|
||||
std::vector<u8> Module::Assembly() const {
|
||||
std::vector<u8> Module::Assemble() const {
|
||||
std::vector<u8> bytes;
|
||||
Stream stream{bytes};
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ int main(int argc, char** argv) {
|
|||
module.Generate();
|
||||
|
||||
module.Optimize(2);
|
||||
std::vector<std::uint8_t> code{module.Assembly()};
|
||||
std::vector<std::uint8_t> code{module.Assemble()};
|
||||
|
||||
FILE* file = fopen("sirit.spv", "wb");
|
||||
fwrite(code.data(), 1, code.size(), file);
|
||||
|
|
Loading…
Reference in a new issue