Skip to content

Commit c02d60b

Browse files
committed
Restore the Int8 Capability
1 parent 262283f commit c02d60b

File tree

1 file changed

+6
-1
lines changed
  • examples/runners/wgpu/builder/src

1 file changed

+6
-1
lines changed

examples/runners/wgpu/builder/src/main.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ fn build_shader(
2828
fn main() -> Result<(), Box<dyn Error>> {
2929
build_shader("../../../shaders/sky-shader", true, &[])?;
3030
build_shader("../../../shaders/simplest-shader", false, &[])?;
31-
build_shader("../../../shaders/compute-shader", false, &[])?;
31+
// We need the int8 capability for using `Option`
32+
build_shader(
33+
"../../../shaders/compute-shader",
34+
false,
35+
&[Capability::Int8],
36+
)?;
3237
build_shader("../../../shaders/mouse-shader", false, &[])?;
3338
Ok(())
3439
}

0 commit comments

Comments
 (0)