mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
Add some missing Debug implementations. (#4166)
This commit is contained in:
1 parent
85e2141355
commit
8e393ca213
2 files changed
+4
-2
No files matched your search
@@ -6473,6 +6473,7 @@ pub enum Gles3MinorVersion {
|
||||
}
|
||||
|
||||
/// Options for creating an instance.
|
||||
#[derive(Debug)]
|
||||
pub struct InstanceDescriptor {
|
||||
/// Which `Backends` to enable.
|
||||
pub backends: Backends,
|
||||
|
||||
+3
-2
@@ -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>,
|
||||
|
||||
Reference in new issue
Block a user