spirv: OpExtInstImport in assembler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user