diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 13603fc03f..a680d91296 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -6473,6 +6473,7 @@ pub enum Gles3MinorVersion { } /// Options for creating an instance. +#[derive(Debug)] pub struct InstanceDescriptor { /// Which `Backends` to enable. pub backends: Backends, diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 88b852eaa4..f655075c06 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -523,7 +523,7 @@ impl Drop for ShaderModule { /// This type is unique to the Rust API of `wgpu`. In the WebGPU specification, /// only WGSL source code strings are accepted. #[cfg_attr(feature = "naga", allow(clippy::large_enum_variant))] -#[derive(Clone)] +#[derive(Clone, Debug)] #[non_exhaustive] pub enum ShaderSource<'a> { /// SPIR-V module represented as a slice of words. @@ -560,7 +560,7 @@ static_assertions::assert_impl_all!(ShaderSource: Send, Sync); /// /// Corresponds to [WebGPU `GPUShaderModuleDescriptor`]( /// https://gpuweb.github.io/gpuweb/#dictdef-gpushadermoduledescriptor). -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct ShaderModuleDescriptor<'a> { /// Debug label of the shader module. This will show up in graphics debuggers for easy identification. pub label: Label<'a>, @@ -574,6 +574,7 @@ static_assertions::assert_impl_all!(ShaderModuleDescriptor: Send, Sync); /// /// This type is unique to the Rust API of `wgpu`. In the WebGPU specification, /// only WGSL source code strings are accepted. +#[derive(Debug)] pub struct ShaderModuleDescriptorSpirV<'a> { /// Debug label of the shader module. This will show up in graphics debuggers for easy identification. pub label: Label<'a>,