From 61200f90fad1b069bec565edb58e8257273ecb5a Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:02:49 +0000 Subject: [PATCH 1/2] Initial plan From 320217eebb6e4f8e9627c39160ed9bf0b5b3cd33 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:08:08 +0000 Subject: [PATCH 2/2] fix: update code for wgpu 29.0.0 API changes - Wrap bind_group_layouts with Some() in lighting_shadows example - Update BufferViewMut usage to use copy_from_slice() method Co-authored-by: telecos <8853689+telecos@users.noreply.github.com> Agent-Logs-Url: https://github.com/telecos/wgpu_playground/sessions/b6484fcb-2696-4b95-b23a-9504ad32c026 --- .../wgpu_playground_core/tests/buffer_integration_test.rs | 5 ++--- .../wgpu_playground_examples/examples/lighting_shadows.rs | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/crates/wgpu_playground_core/tests/buffer_integration_test.rs b/crates/wgpu_playground_core/tests/buffer_integration_test.rs index aa5db8c7..c6a6a955 100644 --- a/crates/wgpu_playground_core/tests/buffer_integration_test.rs +++ b/crates/wgpu_playground_core/tests/buffer_integration_test.rs @@ -779,9 +779,8 @@ fn test_buffer_map_write_modify_read() { BufferOps::map_write(&write_buffer).await.unwrap(); { let mut view = BufferOps::get_mapped_range_mut(&write_buffer); - for (i, byte) in view.iter_mut().enumerate() { - *byte = (i % 256) as u8; - } + let data: Vec = (0..256).map(|i| (i % 256) as u8).collect(); + view.copy_from_slice(&data); } BufferOps::unmap(&write_buffer); diff --git a/crates/wgpu_playground_examples/examples/lighting_shadows.rs b/crates/wgpu_playground_examples/examples/lighting_shadows.rs index 8e29db3d..1afc5bfc 100644 --- a/crates/wgpu_playground_examples/examples/lighting_shadows.rs +++ b/crates/wgpu_playground_examples/examples/lighting_shadows.rs @@ -501,9 +501,9 @@ fn main() { let main_pipeline_layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { label: Some("Main Pipeline Layout"), bind_group_layouts: &[ - &camera_bind_group_layout, - &light_bind_group_layout, - &shadow_map_bind_group_layout, + Some(&camera_bind_group_layout), + Some(&light_bind_group_layout), + Some(&shadow_map_bind_group_layout), ], immediate_size: 0, });