Update to latest Zig master (0.10.0-dev.2017+a0a2ce92c) (#261)
* use `@ceil` instead of `std.math.ceil` * `ChildProcess.init` does not allocate anymore * update CI zig version * examples: temporarily switch to fork of zigimg compatible with zig-master Commands executed: ``` git submodule set-url -- examples/libs/zigimg https://github.com/slimsag/zigimg git submodule set-branch --branch zig-master -- examples/libs/zigimg git submodule update --init --remote examples/libs/zigimg ``` Signed-off-by: Stephen Gutekanst <stephen@hexops.com> Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
0e64b9608c
commit
4570838304
9 changed files with 26 additions and 25 deletions
|
|
@ -179,7 +179,7 @@ pub fn update(app: *App, engine: *mach.Engine) !bool {
|
|||
const pass_encoder = command_encoder.beginComputePass(null);
|
||||
pass_encoder.setPipeline(app.compute_pipeline);
|
||||
pass_encoder.setBindGroup(0, app.particle_bind_groups[app.frame_counter % 2], null);
|
||||
pass_encoder.dispatch(@floatToInt(u32, std.math.ceil(@as(f32, num_particle) / 64)), 1, 1);
|
||||
pass_encoder.dispatch(@floatToInt(u32, @ceil(@as(f32, num_particle) / 64)), 1, 1);
|
||||
pass_encoder.end();
|
||||
pass_encoder.release();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue