mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-12-23 01:05:38 +00: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,
|
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