adding face culling, better varying management and more primitive topologies
Build / build (push) Successful in 2m35s
Test / build_and_test (push) Failing after 2m38s

This commit is contained in:
2026-04-27 23:52:00 +02:00
parent 02bb54b841
commit d38cbfac9b
4 changed files with 106 additions and 31 deletions
+5 -6
View File
@@ -80,12 +80,11 @@ inline fn run(data: RunData) !void {
SpvRuntimeError.NotFound => continue,
else => return err,
};
if (result_word == 0)
continue;
const value = rt.results[result_word].getConstValue() catch continue;
const needed_size = try value.getPlainMemorySize();
output.outputs[location] = data.allocator.alloc(u8, needed_size) catch return VkError.OutOfDeviceMemory;
try rt.readOutput(output.outputs[location].?, result_word);
output.outputs[location] = .{
.interpolation_type = if (rt.hasResultDecoration(result_word, .Flat)) .flat else .smooth, // TODO : handle noperspective
.blob = data.allocator.alloc(u8, try rt.getResultMemorySize(result_word)) catch return VkError.OutOfDeviceMemory,
};
try rt.readOutput(output.outputs[location].?.blob, result_word);
}
}
}