[IR] adding external resources managements
Mirror Gitea refs to GitHub / mirror (push) Successful in 13s
Test / build_and_test (push) Successful in 3m47s
Build / build (push) Failing after 1m14s

[Soft] adding descriptor sets management
This commit is contained in:
2026-08-12 19:26:02 +02:00
parent e3e5fa4b18
commit a0d6fa487e
26 changed files with 2664 additions and 470 deletions
+15
View File
@@ -408,6 +408,7 @@ const LoweringState = struct {
.store_interface => |operation| try self.lowerStoreInterface(block_id, source_instruction.result, operation),
.composite_construct => |operation| try self.lowerCompositeConstruct(source_instruction.result, operation),
.composite_extract => |operation| try self.lowerCompositeExtract(source_instruction.result, operation),
.load_buffer, .store_buffer => return Error.UnsupportedOperation,
.call => return Error.UnsanitizedModule,
}
}
@@ -1494,6 +1495,20 @@ test "[ir] Lower: unsupported operations" {
\\ }
\\}
, Error.UnsupportedType);
try expectLoweringError(
\\shader vertex @main
\\{
\\ @storage: u32 = storage_buffer[set(0), binding(0)]
\\ %offset: constant u32 = 0
\\ fn @main() -> void
\\ {
\\ .entry():
\\ %value: u32 = load_buffer @storage, %offset
\\ return
\\ }
\\}
, Error.UnsupportedOperation);
}
test "[ir] Lower: unreachable terminator" {