spirv: OpExtInstImport in assembler

This commit is contained in:
Ali Chraghi
2024-02-19 03:18:28 +03:30
parent 0f75143c62
commit 9785014938
4 changed files with 55 additions and 47 deletions

View File

@@ -500,9 +500,9 @@ pub fn declPtr(self: *Module, index: Decl.Index) *Decl {
/// Declare ALL dependencies for a decl.
pub fn declareDeclDeps(self: *Module, decl_index: Decl.Index, deps: []const Decl.Index) !void {
const begin_dep = @as(u32, @intCast(self.decl_deps.items.len));
const begin_dep: u32 = @intCast(self.decl_deps.items.len);
try self.decl_deps.appendSlice(self.gpa, deps);
const end_dep = @as(u32, @intCast(self.decl_deps.items.len));
const end_dep: u32 = @intCast(self.decl_deps.items.len);
const decl = self.declPtr(decl_index);
decl.begin_dep = begin_dep;