Skip to content

Instantly share code, notes, and snippets.

@schell
Created September 3, 2023 22:13
Show Gist options
  • Save schell/997b438c98a9869c73e281149b8f7c50 to your computer and use it in GitHub Desktop.
Save schell/997b438c98a9869c73e281149b8f7c50 to your computer and use it in GitHub Desktop.
compile renderling after bumping rust-gpu to 0.9
-*- mode: compilation; default-directory: "~/code/renderling/shaders/" -*-
Compilation started at Mon Sep 4 10:11:11
cd shaders && RUSTGPU_CODEGEN_ARGS='--no-early-report-zombies --no-infer-storage-classes --spirt-passes=qptr' cargo run --release && cd .. && cargo test
Finished release [optimized] target(s) in 0.05s
Running `target/release/shaders`
Compiling core v0.0.0 (/Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/core)
Compiling rustc-std-workspace-core v1.99.0 (/Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/rustc-std-workspace-core)
Compiling compiler_builtins v0.1.92
Compiling libm v0.2.7
Compiling bytemuck v1.13.1
Compiling bitflags v1.3.2
Compiling spirv-std-types v0.9.0
Compiling num-traits v0.2.16
Compiling glam v0.24.1
Compiling spirv-std v0.9.0
Compiling renderling-shader v0.1.0 (/Users/schell/code/renderling/crates/renderling-shader)
Compiling shader-crate v0.1.0 (/Users/schell/code/renderling/shaders/shader-crate)
error: SPIR-T BUG [qptr/lift.rs:438:31] pointer input not an `OpTypePointer`
|
note: used from within `<&renderling_shader::id::Id<renderling_shader::scene::GpuEntity> as core::cmp::PartialEq>::eq`
--> /Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1449:34
|
1449 | PartialEq::eq(*self, *other)
| ^^^^^^
note: called by `<renderling_shader::id::Id<renderling_shader::scene::GpuEntity>>::is_none`
--> /Users/schell/code/renderling/crates/renderling-shader/src/id.rs:81:9
|
81 | self == &Id::NONE
| ^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_joint_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:109:12
|
109 | if joint_id.is_none() {
| ^^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_skin_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:128:38
|
128 | mat += self.weights[i] * self.get_joint_matrix(i, joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `renderling_shader::scene::main_vertex_scene`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:510:24
|
510 | let skin_mat = vertex.get_skin_matrix(&entity.skin_joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `shader_crate::main_vertex_scene`
--> src/lib.rs:65:5
|
65 | / scene::main_vertex_scene(
66 | | instance_id,
67 | | vertex_id,
68 | | constants,
... |
79 | | gl_pos,
80 | | )
| |_____^
note: called by Vertex entry-point `main_vertex_scene`
--> src/lib.rs:45:8
|
45 | pub fn main_vertex_scene(
| ^^^^^^^^^^^^^^^^^
error: SPIR-T BUG [qptr/layout.rs:213:40] `layout_of(qptr)` (already lowered?)
|
note: used from within `<&renderling_shader::id::Id<renderling_shader::scene::GpuEntity> as core::cmp::PartialEq>::eq`
--> /Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1449:34
|
1449 | PartialEq::eq(*self, *other)
| ^^^^^^
note: called by `<renderling_shader::id::Id<renderling_shader::scene::GpuEntity>>::is_none`
--> /Users/schell/code/renderling/crates/renderling-shader/src/id.rs:81:9
|
81 | self == &Id::NONE
| ^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_joint_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:109:12
|
109 | if joint_id.is_none() {
| ^^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_skin_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:128:38
|
128 | mat += self.weights[i] * self.get_joint_matrix(i, joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `renderling_shader::scene::main_vertex_scene`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:510:24
|
510 | let skin_mat = vertex.get_skin_matrix(&entity.skin_joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `shader_crate::main_vertex_scene`
--> src/lib.rs:65:5
|
65 | / scene::main_vertex_scene(
66 | | instance_id,
67 | | vertex_id,
68 | | constants,
... |
79 | | gl_pos,
80 | | )
| |_____^
note: called by Vertex entry-point `main_vertex_scene`
--> src/lib.rs:45:8
|
45 | pub fn main_vertex_scene(
| ^^^^^^^^^^^^^^^^^
error: SPIR-T BUG [qptr/lift.rs:84:38] missing `qptr.usage` attribute
|
note: used from within `<&renderling_shader::id::Id<renderling_shader::scene::GpuEntity> as core::cmp::PartialEq>::eq`
--> /Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1449:34
|
1449 | PartialEq::eq(*self, *other)
| ^^^^^^
note: called by `<renderling_shader::id::Id<renderling_shader::scene::GpuEntity>>::is_none`
--> /Users/schell/code/renderling/crates/renderling-shader/src/id.rs:81:9
|
81 | self == &Id::NONE
| ^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_joint_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:109:12
|
109 | if joint_id.is_none() {
| ^^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_skin_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:128:38
|
128 | mat += self.weights[i] * self.get_joint_matrix(i, joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `renderling_shader::scene::main_vertex_scene`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:510:24
|
510 | let skin_mat = vertex.get_skin_matrix(&entity.skin_joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `shader_crate::main_vertex_scene`
--> src/lib.rs:65:5
|
65 | / scene::main_vertex_scene(
66 | | instance_id,
67 | | vertex_id,
68 | | constants,
... |
79 | | gl_pos,
80 | | )
| |_____^
note: called by Vertex entry-point `main_vertex_scene`
--> src/lib.rs:45:8
|
45 | pub fn main_vertex_scene(
| ^^^^^^^^^^^^^^^^^
error: SPIR-T BUG [qptr/lift.rs:84:38] missing `qptr.usage` attribute
|
= note: used by unnamed global variable
note: used from within `<&renderling_shader::id::Id<renderling_shader::scene::GpuEntity> as core::cmp::PartialEq>::eq`
--> /Users/schell/.rustup/toolchains/nightly-2023-05-27-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:1449:34
|
1449 | PartialEq::eq(*self, *other)
| ^^^^^^
note: called by `<renderling_shader::id::Id<renderling_shader::scene::GpuEntity>>::is_none`
--> /Users/schell/code/renderling/crates/renderling-shader/src/id.rs:81:9
|
81 | self == &Id::NONE
| ^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_joint_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:109:12
|
109 | if joint_id.is_none() {
| ^^^^^^^^^^^^^^^^^^
note: called by `<renderling_shader::scene::GpuVertex>::get_skin_matrix`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:128:38
|
128 | mat += self.weights[i] * self.get_joint_matrix(i, joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `renderling_shader::scene::main_vertex_scene`
--> /Users/schell/code/renderling/crates/renderling-shader/src/scene.rs:510:24
|
510 | let skin_mat = vertex.get_skin_matrix(&entity.skin_joint_ids, entities);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: called by `shader_crate::main_vertex_scene`
--> src/lib.rs:65:5
|
65 | / scene::main_vertex_scene(
66 | | instance_id,
67 | | vertex_id,
68 | | constants,
... |
79 | | gl_pos,
80 | | )
| |_____^
note: called by Vertex entry-point `main_vertex_scene`
--> src/lib.rs:45:8
|
45 | pub fn main_vertex_scene(
| ^^^^^^^^^^^^^^^^^
note: SPIR-T bugs were reported
|
= help: pretty-printed SPIR-T was saved to /Users/schell/code/renderling/shaders/shader-crate/target/spirv-unknown-vulkan1.2/release/deps/shader_crate.spirt.html
= help: re-run with `RUSTGPU_CODEGEN_ARGS="--dump-spirt-passes=$PWD"` for more details
= note: pretty-printed SPIR-T is preferred when reporting Rust-GPU issues
error: could not compile `shader-crate` (lib) due to 4 previous errors
Error: BuildFailed
Compilation exited abnormally with code 1 at Mon Sep 4 10:11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment