Skip to content

Commit 3c46651

Browse files
committed
Re-architect based on learn wgpu
https://sotrh.github.io/learn-wgpu/beginner/tutorial2-swapchain/ For reasons unknown, *something* doesn't resize properly
1 parent 1e726ea commit 3c46651

File tree

2 files changed

+305
-234
lines changed

2 files changed

+305
-234
lines changed

rust-gpu-toy/shaders/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use spirv_std::{
1818

1919
#[spirv(compute(threads(16, 16)))]
2020
pub fn main(
21-
#[spirv(storage_buffer, descriptor_set = 0, binding = 0)] config: &Config,
22-
#[spirv(descriptor_set = 0, binding = 1)] output_buffer: &image::StorageImage2d,
21+
#[spirv(push_constant)] config: &Config,
22+
#[spirv(descriptor_set = 0, binding = 0)] output_buffer: &image::StorageImage2d,
2323
#[spirv(global_invocation_id)] global_ix: UVec3,
2424
) {
2525
let frag_coord = global_ix.truncate().as_f32()

0 commit comments

Comments
 (0)