[Flint] adding compute resource layout lowering
Mirror Gitea refs to GitHub / mirror (push) Successful in 18s
Test / build_and_test (push) Successful in 2m12s
Build / build (push) Successful in 3m21s

This commit is contained in:
2026-08-14 20:41:31 +02:00
parent 8c934c7328
commit 04ff263b40
13 changed files with 484 additions and 64 deletions
+2 -2
View File
@@ -731,7 +731,7 @@ const LoweringState = struct {
try self.appendInstruction(block_id, null, .{
.load_buffer = .{
.destination = try destinationFromSource(result_component),
.buffer = buffer,
.buffer = .{ .logical = buffer },
.byte_offset = byte_offset,
.immediate_offset = @intCast(component_index * result_component.type.sizeBytes()),
},
@@ -749,7 +749,7 @@ const LoweringState = struct {
for (source_components, 0..) |source_component, component_index| {
try self.appendInstruction(block_id, null, .{
.store_buffer = .{
.buffer = buffer,
.buffer = .{ .logical = buffer },
.byte_offset = byte_offset,
.immediate_offset = @intCast(component_index * source_component.type.sizeBytes()),
.source = source_component,