mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-22 06:13:39 +00:00
Fix global variables being added in code
This commit is contained in:
parent
cae2725cc0
commit
1f7b70730d
1 changed files with 3 additions and 3 deletions
|
@ -111,9 +111,9 @@ Id Module::AddLocalVariable(Id result_type, spv::StorageClass storage_class,
|
|||
|
||||
Id Module::AddGlobalVariable(Id result_type, spv::StorageClass storage_class,
|
||||
std::optional<Id> initializer) {
|
||||
code->Reserve(5);
|
||||
return *code << OpId{spv::Op::OpVariable, result_type} << storage_class << initializer
|
||||
<< EndOp{};
|
||||
global_variables->Reserve(5);
|
||||
return *global_variables << OpId{spv::Op::OpVariable, result_type} << storage_class
|
||||
<< initializer << EndOp{};
|
||||
}
|
||||
|
||||
Id Module::GetGLSLstd450() {
|
||||
|
|
Loading…
Reference in a new issue