mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-30 11:16:19 +01:00
Assemble uint32_t instead of uint8_t
Vulkan receives SPIR-V modules with a uint32_t alignment. Returning uint8_t forced users to invoke undefined behaviour (reinterpret_cast) or copy.
This commit is contained in:
parent
ab507033db
commit
8cf3d225db
7 changed files with 31 additions and 31 deletions
|
|
@ -37,7 +37,7 @@ public:
|
|||
* externally.
|
||||
* @return A stream of bytes representing a SPIR-V module.
|
||||
*/
|
||||
std::vector<std::uint8_t> Assemble() const;
|
||||
std::vector<std::uint32_t> Assemble() const;
|
||||
|
||||
/// Adds a SPIR-V extension.
|
||||
void AddExtension(std::string extension_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue