mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-11-18 22:06:13 +00:00
Updated spirv-tools.
This commit is contained in:
@@ -59,6 +59,8 @@ Pass::Status GenerateWebGPUInitializersPass::Process() {
|
||||
changed = true;
|
||||
|
||||
auto* constant_inst = GetNullConstantForVariable(inst);
|
||||
if (!constant_inst) return Status::Failure;
|
||||
|
||||
if (seen_null_constants_.find(constant_inst) ==
|
||||
seen_null_constants_.end()) {
|
||||
constant_inst->InsertBefore(inst);
|
||||
@@ -78,6 +80,8 @@ Pass::Status GenerateWebGPUInitializersPass::Process() {
|
||||
|
||||
changed = true;
|
||||
auto* constant_inst = GetNullConstantForVariable(inst);
|
||||
if (!constant_inst) return Status::Failure;
|
||||
|
||||
AddNullInitializerToVariable(constant_inst, inst);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user