mirror of
https://github.com/yuzu-emu/sirit
synced 2024-11-26 02:57:50 +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,
|
Id Module::AddGlobalVariable(Id result_type, spv::StorageClass storage_class,
|
||||||
std::optional<Id> initializer) {
|
std::optional<Id> initializer) {
|
||||||
code->Reserve(5);
|
global_variables->Reserve(5);
|
||||||
return *code << OpId{spv::Op::OpVariable, result_type} << storage_class << initializer
|
return *global_variables << OpId{spv::Op::OpVariable, result_type} << storage_class
|
||||||
<< EndOp{};
|
<< initializer << EndOp{};
|
||||||
}
|
}
|
||||||
|
|
||||||
Id Module::GetGLSLstd450() {
|
Id Module::GetGLSLstd450() {
|
||||||
|
|
Loading…
Reference in a new issue