Conversation
|
I upgraded var buffer: [1024]u8 = undefined;
var writer = file.writer(&buffer).interface;as it won't work. Instead, you need to have two variables, like this: var buffer: [1024]u8 = undefined;
var fw = file.writer(&buffer);
const writer = &fw.interface;This is some RAII level hidden flow, which made me spent an hour debugging. I moved from I also moved from bitwise operators to Hopefully, this won't cause many breaking changes in your API changes PR. |
|
I mentioned some problems I was having with zig 0.15.1 on issue #36 I am just testing on Ubuntu, no idea what the effect is on other OSs yet. Here is the stacktrace I get from the triangle example with a debug build of wgpu-native. Will keep investigating. |
|
Can you try this with |
|
release=fast does fix it...now that is very interesting |
|
So debug builds break compatibility |
|
So it works with LLVM, but breaks in zig compiler. You should open the issue in ziglang/zig |
|
It seems like even with I can't be sure that its the same issue since its a release build but it seems to break at the same point as the dynamic linking version. |
|
I submitted a bug report about it since the issue @ibotha commented was closed. |
|
And you were late just a few days for 0.15.2 😢 |
|
Unfortunately I wasn't up to date with the release cycle :/ Good news is that the issue was already picked up and there is a PR. We are close to being LLVM-free, but for now you can use |
I did the initial fixes, change
.Cto.cand use old writer. I will take a look to see how new IO works and try to make it work.Should fix #36