mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-11-22 05:15:40 +01:00
Fix global variables being added in code
This commit is contained in:
parent
cae2725cc0
commit
1f7b70730d
@ -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 New Issue
Block a user