Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
392 stars 12 forks source link

doesn't run on mac #38

Closed AJTJ closed 3 years ago

AJTJ commented 3 years ago

just thought I'd leave my error:

   Compiling blub v0.1.0 (/Users/ajtj/rust_projects/blub)
warning: field is never read: `sky`
  --> src/renderer/scene_renderer.rs:40:5
   |
40 |     sky: Sky,
   |     ^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: 1 warning emitted

    Finished release [optimized] target(s) in 2m 56s
     Running `target/release/blub`
[2020-10-23T23:29:18Z INFO  blub::render_output::screen] creating screen with PhysicalSize { width: 3584, height: 2150 }
[2020-10-23T23:29:19Z WARN  naga::front::spv] Unsupported builtin 4
[2020-10-23T23:29:19Z WARN  naga::front::spv] Unknown decoration ColMajor
[2020-10-23T23:29:19Z WARN  naga::front::spv] Unknown decoration MatrixStride
[2020-10-23T23:29:19Z ERROR gfx_backend_metal::device] Error compiling the shader CompilationFailed("Compilation failed: \n\nprogram_source:33:270: error: invalid type \'long\' for attribute index expression\nkernel void main0(constant PushConstants& _51 [[buffer(0)]], constant SimulationProperties& _26 [[buffer(2)]], device ParticlePositionLlBuffer& _43 [[buffer(3)]], texture3d<uint> LinkedListDualGrid [[texture(0)]], device atomic_uint* LinkedListDualGrid_atomic [[buffer(4294967295)]], texture3d<float, access::write> MarkerVolume [[texture(1)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])\n                                                                                                                                                                                                                                                                             ^~~~~~~~~~\n")
thread 'main' panicked at 'Compute pipeline creation error: Err(Other)', /Users/ajtj/.cargo/git/checkouts/wgpu-53e70f8674b08dd4/7ac706f/wgpu-core/src/device/mod.rs:3356:26
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Wumpf commented 3 years ago

Thanks for reporting! Might be a new error but most probably one of the ones I've already listed in #26, so I'm closing this of as duplicate