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