From 532814fcdb9a3df7bddffb95ebaab4b95bbc86c6 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 27 Jan 2022 16:11:42 -0800 Subject: [PATCH 1/3] const --- crates/libs/bindgen/src/structs.rs | 5 +- crates/libs/metadata/src/tables/field.rs | 8 + .../Win32/AI/MachineLearning/DirectML/mod.rs | 1086 ++++++++--------- .../Win32/AI/MachineLearning/WinML/mod.rs | 26 +- .../src/Windows/Win32/Devices/AllJoyn/mod.rs | 6 +- .../Windows/Win32/Devices/DeviceQuery/mod.rs | 2 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 4 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 2 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 2 +- .../src/Windows/Win32/Globalization/mod.rs | 32 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 10 +- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 2 +- .../Win32/Graphics/Direct3D/Fxc/mod.rs | 2 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 8 +- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 4 +- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 92 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 10 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 2 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 6 +- .../sys/src/Windows/Win32/Media/Audio/mod.rs | 16 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 18 +- .../Win32/Media/KernelStreaming/mod.rs | 8 +- .../Win32/Media/MediaFoundation/mod.rs | 28 +- .../sys/src/Windows/Win32/Media/Speech/mod.rs | 18 +- .../NetworkManagement/NetManagement/mod.rs | 2 +- .../NetworkPolicyServer/mod.rs | 4 +- .../Win32/NetworkManagement/QoS/mod.rs | 2 +- .../Win32/Networking/Clustering/mod.rs | 4 +- .../Windows/Win32/Networking/WinInet/mod.rs | 4 +- .../Networking/WindowsWebServices/mod.rs | 14 +- .../Security/Authentication/Identity/mod.rs | 4 +- .../Win32/Security/Authorization/UI/mod.rs | 4 +- .../Windows/Win32/Security/Credentials/mod.rs | 8 +- .../Win32/Security/Cryptography/UI/mod.rs | 24 +- .../Win32/Security/Cryptography/mod.rs | 16 +- .../Win32/Security/DiagnosticDataQuery/mod.rs | 4 +- .../Windows/Win32/Security/WinTrust/mod.rs | 4 +- .../Windows/Win32/Storage/CloudFilters/mod.rs | 22 +- .../src/Windows/Win32/Storage/Imapi/mod.rs | 2 +- .../sys/src/Windows/Win32/Storage/Jet/mod.rs | 6 +- .../mod.rs | 2 +- .../sys/src/Windows/Win32/System/Com/mod.rs | 2 +- .../Win32/System/Diagnostics/Debug/mod.rs | 4 +- .../Win32/System/Diagnostics/Etw/mod.rs | 2 +- .../sys/src/Windows/Win32/System/Iis/mod.rs | 10 +- .../sys/src/Windows/Win32/System/Rpc/mod.rs | 48 +- .../src/Windows/Win32/System/Search/mod.rs | 4 +- .../src/Windows/Win32/System/SqlLite/mod.rs | 8 +- .../Win32/System/SystemServices/mod.rs | 2 +- .../sys/src/Windows/Win32/System/Wmi/mod.rs | 188 +-- .../sys/src/Windows/Win32/UI/Controls/mod.rs | 10 +- .../sys/src/Windows/Win32/UI/Shell/mod.rs | 8 +- .../Win32/UI/WindowsAndMessaging/mod.rs | 10 +- .../Win32/AI/MachineLearning/DirectML/mod.rs | 1086 ++++++++--------- .../Win32/AI/MachineLearning/WinML/mod.rs | 26 +- .../src/Windows/Win32/Devices/AllJoyn/mod.rs | 6 +- .../Windows/Win32/Devices/DeviceQuery/mod.rs | 2 +- .../Win32/Devices/Enumeration/Pnp/mod.rs | 4 +- .../Win32/Devices/HumanInterfaceDevice/mod.rs | 2 +- .../Win32/Devices/WebServicesOnDevices/mod.rs | 2 +- .../src/Windows/Win32/Globalization/mod.rs | 32 +- .../Windows/Win32/Graphics/Direct2D/mod.rs | 10 +- .../Win32/Graphics/Direct3D/Dxc/mod.rs | 2 +- .../Win32/Graphics/Direct3D/Fxc/mod.rs | 2 +- .../Windows/Win32/Graphics/Direct3D10/mod.rs | 8 +- .../Windows/Win32/Graphics/Direct3D11/mod.rs | 4 +- .../Windows/Win32/Graphics/Direct3D12/mod.rs | 92 +- .../Windows/Win32/Graphics/DirectWrite/mod.rs | 10 +- .../src/Windows/Win32/Graphics/Dxgi/mod.rs | 2 +- .../Windows/Win32/Media/Audio/XAudio2/mod.rs | 6 +- .../src/Windows/Win32/Media/Audio/mod.rs | 16 +- .../src/Windows/Win32/Media/DirectShow/mod.rs | 18 +- .../Win32/Media/KernelStreaming/mod.rs | 8 +- .../Win32/Media/MediaFoundation/mod.rs | 28 +- .../src/Windows/Win32/Media/Speech/mod.rs | 18 +- .../NetworkManagement/NetManagement/mod.rs | 2 +- .../NetworkPolicyServer/mod.rs | 4 +- .../Win32/NetworkManagement/QoS/mod.rs | 2 +- .../Win32/Networking/Clustering/mod.rs | 4 +- .../Windows/Win32/Networking/WinInet/mod.rs | 4 +- .../Networking/WindowsWebServices/mod.rs | 14 +- .../Security/Authentication/Identity/mod.rs | 4 +- .../Win32/Security/Authorization/UI/mod.rs | 4 +- .../Windows/Win32/Security/Credentials/mod.rs | 8 +- .../Win32/Security/Cryptography/UI/mod.rs | 24 +- .../Win32/Security/Cryptography/mod.rs | 16 +- .../Win32/Security/DiagnosticDataQuery/mod.rs | 4 +- .../Windows/Win32/Security/WinTrust/mod.rs | 4 +- .../Windows/Win32/Storage/CloudFilters/mod.rs | 22 +- .../src/Windows/Win32/Storage/Imapi/mod.rs | 2 +- .../src/Windows/Win32/Storage/Jet/mod.rs | 6 +- .../mod.rs | 2 +- .../src/Windows/Win32/System/Com/mod.rs | 2 +- .../Win32/System/Diagnostics/Debug/mod.rs | 4 +- .../Win32/System/Diagnostics/Etw/mod.rs | 2 +- .../src/Windows/Win32/System/Iis/mod.rs | 10 +- .../src/Windows/Win32/System/Rpc/mod.rs | 48 +- .../src/Windows/Win32/System/Search/mod.rs | 4 +- .../src/Windows/Win32/System/SqlLite/mod.rs | 8 +- .../Win32/System/SystemServices/mod.rs | 2 +- .../src/Windows/Win32/System/Wmi/mod.rs | 188 +-- .../src/Windows/Win32/UI/Controls/mod.rs | 10 +- .../windows/src/Windows/Win32/UI/Shell/mod.rs | 8 +- .../Win32/UI/WindowsAndMessaging/mod.rs | 10 +- crates/tests/const_fields/Cargo.toml | 21 + crates/tests/const_fields/src/lib.rs | 1 + crates/tests/const_fields/tests/sys.rs | 12 + crates/tests/const_fields/tests/win.rs | 10 + 108 files changed, 1862 insertions(+), 1807 deletions(-) create mode 100644 crates/tests/const_fields/Cargo.toml create mode 100644 crates/tests/const_fields/src/lib.rs create mode 100644 crates/tests/const_fields/tests/sys.rs create mode 100644 crates/tests/const_fields/tests/win.rs diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index 35d47ae245..e7f88c732d 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -49,7 +49,10 @@ fn gen_struct_with_name(def: &TypeDef, struct_name: &str, cfg: &Cfg, gen: &Gen) let fields = def.fields().map(|f| { let name = gen_ident(f.name()); - let sig = gen_sig(&f.signature(Some(def)), gen); + let mut sig = f.signature(Some(def)); + sig.is_const = sig.is_const || f.is_const(); + let sig = gen_sig(&sig, gen); + if f.is_literal() { quote! {} } else if !gen.sys && is_union && !f.is_blittable(Some(def)) { diff --git a/crates/libs/metadata/src/tables/field.rs b/crates/libs/metadata/src/tables/field.rs index ef5dbde025..6a66d07e90 100644 --- a/crates/libs/metadata/src/tables/field.rs +++ b/crates/libs/metadata/src/tables/field.rs @@ -40,6 +40,14 @@ impl Field { pub fn is_blittable(&self, enclosing: Option<&TypeDef>) -> bool { self.signature(enclosing).is_blittable() } + + pub fn is_const(&self) -> bool { + self.has_attribute("ConstAttribute") + } + + fn has_attribute(&self, name: &str) -> bool { + self.attributes().any(|attribute| attribute.name() == name) + } } #[cfg(test)] diff --git a/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs b/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs index 890acc290b..add2f53b4f 100644 --- a/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/DirectML/mod.rs @@ -11,8 +11,8 @@ extern "system" { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_CELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, } impl ::core::marker::Copy for DML_ACTIVATION_CELU_OPERATOR_DESC {} @@ -24,8 +24,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_CELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_ELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, } impl ::core::marker::Copy for DML_ACTIVATION_ELU_OPERATOR_DESC {} @@ -37,8 +37,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_ELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_HARDMAX_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_HARDMAX_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_HARDMAX_OPERATOR_DESC { @@ -49,8 +49,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_HARDMAX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_HARD_SIGMOID_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, pub Beta: f32, } @@ -63,8 +63,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_HARD_SIGMOID_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_IDENTITY_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_IDENTITY_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_IDENTITY_OPERATOR_DESC { @@ -75,8 +75,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_IDENTITY_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_LEAKY_RELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, } impl ::core::marker::Copy for DML_ACTIVATION_LEAKY_RELU_OPERATOR_DESC {} @@ -88,8 +88,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_LEAKY_RELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_LINEAR_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, pub Beta: f32, } @@ -102,8 +102,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_LINEAR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_LOG_SOFTMAX_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_LOG_SOFTMAX_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_LOG_SOFTMAX_OPERATOR_DESC { @@ -114,9 +114,9 @@ impl ::core::clone::Clone for DML_ACTIVATION_LOG_SOFTMAX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_PARAMETERIZED_RELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub SlopeTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub SlopeTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_PARAMETERIZED_RELU_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_PARAMETERIZED_RELU_OPERATOR_DESC { @@ -127,8 +127,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_PARAMETERIZED_RELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_PARAMETRIC_SOFTPLUS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, pub Beta: f32, } @@ -141,9 +141,9 @@ impl ::core::clone::Clone for DML_ACTIVATION_PARAMETRIC_SOFTPLUS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_RELU_GRAD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_RELU_GRAD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_RELU_GRAD_OPERATOR_DESC { @@ -154,8 +154,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_RELU_GRAD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_RELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_RELU_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_RELU_OPERATOR_DESC { @@ -166,8 +166,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_RELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SCALED_ELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, pub Gamma: f32, } @@ -180,8 +180,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SCALED_ELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SCALED_TANH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, pub Beta: f32, } @@ -194,8 +194,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SCALED_TANH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SHRINK_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Bias: f32, pub Threshold: f32, } @@ -208,8 +208,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SHRINK_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SIGMOID_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_SIGMOID_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_SIGMOID_OPERATOR_DESC { @@ -220,8 +220,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SIGMOID_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SOFTMAX_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_SOFTMAX_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_SOFTMAX_OPERATOR_DESC { @@ -232,8 +232,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SOFTMAX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Steepness: f32, } impl ::core::marker::Copy for DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC {} @@ -245,8 +245,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SOFTPLUS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_SOFTSIGN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_SOFTSIGN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_SOFTSIGN_OPERATOR_DESC { @@ -257,8 +257,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_SOFTSIGN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_TANH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ACTIVATION_TANH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ACTIVATION_TANH_OPERATOR_DESC { @@ -269,8 +269,8 @@ impl ::core::clone::Clone for DML_ACTIVATION_TANH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ACTIVATION_THRESHOLDED_RELU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Alpha: f32, } impl ::core::marker::Copy for DML_ACTIVATION_THRESHOLDED_RELU_OPERATOR_DESC {} @@ -282,14 +282,14 @@ impl ::core::clone::Clone for DML_ACTIVATION_THRESHOLDED_RELU_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ADAM_OPTIMIZER_OPERATOR_DESC { - pub InputParametersTensor: *mut DML_TENSOR_DESC, - pub InputFirstMomentTensor: *mut DML_TENSOR_DESC, - pub InputSecondMomentTensor: *mut DML_TENSOR_DESC, - pub GradientTensor: *mut DML_TENSOR_DESC, - pub TrainingStepTensor: *mut DML_TENSOR_DESC, - pub OutputParametersTensor: *mut DML_TENSOR_DESC, - pub OutputFirstMomentTensor: *mut DML_TENSOR_DESC, - pub OutputSecondMomentTensor: *mut DML_TENSOR_DESC, + pub InputParametersTensor: *const DML_TENSOR_DESC, + pub InputFirstMomentTensor: *const DML_TENSOR_DESC, + pub InputSecondMomentTensor: *const DML_TENSOR_DESC, + pub GradientTensor: *const DML_TENSOR_DESC, + pub TrainingStepTensor: *const DML_TENSOR_DESC, + pub OutputParametersTensor: *const DML_TENSOR_DESC, + pub OutputFirstMomentTensor: *const DML_TENSOR_DESC, + pub OutputSecondMomentTensor: *const DML_TENSOR_DESC, pub LearningRate: f32, pub Beta1: f32, pub Beta2: f32, @@ -304,10 +304,10 @@ impl ::core::clone::Clone for DML_ADAM_OPTIMIZER_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ARGMAX_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub AxisCount: u32, - pub Axes: *mut u32, + pub Axes: *const u32, pub AxisDirection: DML_AXIS_DIRECTION, } impl ::core::marker::Copy for DML_ARGMAX_OPERATOR_DESC {} @@ -319,10 +319,10 @@ impl ::core::clone::Clone for DML_ARGMAX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ARGMIN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub AxisCount: u32, - pub Axes: *mut u32, + pub Axes: *const u32, pub AxisDirection: DML_AXIS_DIRECTION, } impl ::core::marker::Copy for DML_ARGMIN_OPERATOR_DESC {} @@ -335,13 +335,13 @@ impl ::core::clone::Clone for DML_ARGMIN_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_AVERAGE_POOLING_GRAD_OPERATOR_DESC { - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, pub IncludePadding: super::super::super::Foundation::BOOL, } #[cfg(feature = "Win32_Foundation")] @@ -356,13 +356,13 @@ impl ::core::clone::Clone for DML_AVERAGE_POOLING_GRAD_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_AVERAGE_POOLING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, pub IncludePadding: super::super::super::Foundation::BOOL, } #[cfg(feature = "Win32_Foundation")] @@ -382,14 +382,14 @@ pub const DML_AXIS_DIRECTION_DECREASING: DML_AXIS_DIRECTION = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_BATCH_NORMALIZATION_GRAD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub MeanTensor: *mut DML_TENSOR_DESC, - pub VarianceTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputScaleGradientTensor: *mut DML_TENSOR_DESC, - pub OutputBiasGradientTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub MeanTensor: *const DML_TENSOR_DESC, + pub VarianceTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, + pub OutputScaleGradientTensor: *const DML_TENSOR_DESC, + pub OutputBiasGradientTensor: *const DML_TENSOR_DESC, pub Epsilon: f32, } impl ::core::marker::Copy for DML_BATCH_NORMALIZATION_GRAD_OPERATOR_DESC {} @@ -402,15 +402,15 @@ impl ::core::clone::Clone for DML_BATCH_NORMALIZATION_GRAD_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_BATCH_NORMALIZATION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub MeanTensor: *mut DML_TENSOR_DESC, - pub VarianceTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub MeanTensor: *const DML_TENSOR_DESC, + pub VarianceTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Spatial: super::super::super::Foundation::BOOL, pub Epsilon: f32, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DML_BATCH_NORMALIZATION_OPERATOR_DESC {} @@ -424,7 +424,7 @@ impl ::core::clone::Clone for DML_BATCH_NORMALIZATION_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_BINDING_DESC { pub Type: DML_BINDING_TYPE, - pub Desc: *mut ::core::ffi::c_void, + pub Desc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for DML_BINDING_DESC {} impl ::core::clone::Clone for DML_BINDING_DESC { @@ -475,7 +475,7 @@ pub const DML_BINDING_TYPE_BUFFER_ARRAY: DML_BINDING_TYPE = 2i32; #[cfg(feature = "Win32_Graphics_Direct3D12")] pub struct DML_BUFFER_ARRAY_BINDING { pub BindingCount: u32, - pub Bindings: *mut DML_BUFFER_BINDING, + pub Bindings: *const DML_BUFFER_BINDING, } #[cfg(feature = "Win32_Graphics_Direct3D12")] impl ::core::marker::Copy for DML_BUFFER_ARRAY_BINDING {} @@ -507,8 +507,8 @@ pub struct DML_BUFFER_TENSOR_DESC { pub DataType: DML_TENSOR_DATA_TYPE, pub Flags: DML_TENSOR_FLAGS, pub DimensionCount: u32, - pub Sizes: *mut u32, - pub Strides: *mut u32, + pub Sizes: *const u32, + pub Strides: *const u32, pub TotalTensorSizeInBytes: u64, pub GuaranteedBaseOffsetAlignment: u32, } @@ -521,8 +521,8 @@ impl ::core::clone::Clone for DML_BUFFER_TENSOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_CAST_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_CAST_OPERATOR_DESC {} impl ::core::clone::Clone for DML_CAST_OPERATOR_DESC { @@ -539,16 +539,16 @@ pub const DML_CONVOLUTION_DIRECTION_BACKWARD: DML_CONVOLUTION_DIRECTION = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_CONVOLUTION_INTEGER_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputZeroPointTensor: *mut DML_TENSOR_DESC, - pub FilterTensor: *mut DML_TENSOR_DESC, - pub FilterZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputZeroPointTensor: *const DML_TENSOR_DESC, + pub FilterTensor: *const DML_TENSOR_DESC, + pub FilterZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub Dilations: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub Dilations: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, pub GroupCount: u32, } impl ::core::marker::Copy for DML_CONVOLUTION_INTEGER_OPERATOR_DESC {} @@ -566,20 +566,20 @@ pub const DML_CONVOLUTION_MODE_CROSS_CORRELATION: DML_CONVOLUTION_MODE = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_CONVOLUTION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub FilterTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub FilterTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Mode: DML_CONVOLUTION_MODE, pub Direction: DML_CONVOLUTION_DIRECTION, pub DimensionCount: u32, - pub Strides: *mut u32, - pub Dilations: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, - pub OutputPadding: *mut u32, + pub Strides: *const u32, + pub Dilations: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, + pub OutputPadding: *const u32, pub GroupCount: u32, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } impl ::core::marker::Copy for DML_CONVOLUTION_OPERATOR_DESC {} impl ::core::clone::Clone for DML_CONVOLUTION_OPERATOR_DESC { @@ -597,8 +597,8 @@ pub const DML_CREATE_DEVICE_FLAG_DEBUG: DML_CREATE_DEVICE_FLAGS = 1u32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_CUMULATIVE_PRODUCT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub AxisDirection: DML_AXIS_DIRECTION, pub HasExclusiveProduct: super::super::super::Foundation::BOOL, @@ -615,8 +615,8 @@ impl ::core::clone::Clone for DML_CUMULATIVE_PRODUCT_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_CUMULATIVE_SUMMATION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub AxisDirection: DML_AXIS_DIRECTION, pub HasExclusiveSum: super::super::super::Foundation::BOOL, @@ -638,8 +638,8 @@ pub const DML_DEPTH_SPACE_ORDER_COLUMN_ROW_DEPTH: DML_DEPTH_SPACE_ORDER = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_DEPTH_TO_SPACE1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub BlockSize: u32, pub Order: DML_DEPTH_SPACE_ORDER, } @@ -652,8 +652,8 @@ impl ::core::clone::Clone for DML_DEPTH_TO_SPACE1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_DEPTH_TO_SPACE_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub BlockSize: u32, } impl ::core::marker::Copy for DML_DEPTH_TO_SPACE_OPERATOR_DESC {} @@ -665,7 +665,7 @@ impl ::core::clone::Clone for DML_DEPTH_TO_SPACE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_DIAGONAL_MATRIX_OPERATOR_DESC { - pub OutputTensor: *mut DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Offset: i32, pub Value: f32, } @@ -678,10 +678,10 @@ impl ::core::clone::Clone for DML_DIAGONAL_MATRIX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_DYNAMIC_QUANTIZE_LINEAR_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub OutputScaleTensor: *mut DML_TENSOR_DESC, - pub OutputZeroPointTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub OutputScaleTensor: *const DML_TENSOR_DESC, + pub OutputZeroPointTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_DYNAMIC_QUANTIZE_LINEAR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_DYNAMIC_QUANTIZE_LINEAR_OPERATOR_DESC { @@ -692,9 +692,9 @@ impl ::core::clone::Clone for DML_DYNAMIC_QUANTIZE_LINEAR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ABS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ABS_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ABS_OPERATOR_DESC { @@ -705,9 +705,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ABS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ACOSH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ACOSH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ACOSH_OPERATOR_DESC { @@ -718,9 +718,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ACOSH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ACOS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ACOS_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ACOS_OPERATOR_DESC { @@ -731,10 +731,10 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ACOS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ADD1_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ADD1_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ADD1_OPERATOR_DESC { @@ -745,9 +745,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ADD1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ADD_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ADD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ADD_OPERATOR_DESC { @@ -758,9 +758,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ADD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ASINH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ASINH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ASINH_OPERATOR_DESC { @@ -771,9 +771,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ASINH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ASIN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ASIN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ASIN_OPERATOR_DESC { @@ -784,9 +784,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ASIN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ATANH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ATANH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ATANH_OPERATOR_DESC { @@ -797,9 +797,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ATANH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ATAN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ATAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ATAN_OPERATOR_DESC { @@ -810,9 +810,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ATAN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ATAN_YX_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ATAN_YX_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ATAN_YX_OPERATOR_DESC { @@ -823,9 +823,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ATAN_YX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_AND_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_AND_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_AND_OPERATOR_DESC { @@ -836,8 +836,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_AND_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_COUNT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_COUNT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_COUNT_OPERATOR_DESC { @@ -848,8 +848,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_COUNT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_NOT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_NOT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_NOT_OPERATOR_DESC { @@ -860,9 +860,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_NOT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_OR_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_OR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_OR_OPERATOR_DESC { @@ -873,9 +873,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_OR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_SHIFT_LEFT_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_SHIFT_LEFT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_SHIFT_LEFT_OPERATOR_DESC { @@ -886,9 +886,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_SHIFT_LEFT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_SHIFT_RIGHT_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_SHIFT_RIGHT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_SHIFT_RIGHT_OPERATOR_DESC { @@ -899,9 +899,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_SHIFT_RIGHT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_BIT_XOR_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_BIT_XOR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_XOR_OPERATOR_DESC { @@ -912,9 +912,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_BIT_XOR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_CEIL_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_CEIL_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_CEIL_OPERATOR_DESC { @@ -925,9 +925,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_CEIL_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_CLIP_GRAD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub Min: f32, pub Max: f32, } @@ -940,9 +940,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_CLIP_GRAD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_CLIP_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, pub Min: f32, pub Max: f32, } @@ -955,9 +955,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_CLIP_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_CONSTANT_POW_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, pub Exponent: f32, } impl ::core::marker::Copy for DML_ELEMENT_WISE_CONSTANT_POW_OPERATOR_DESC {} @@ -969,9 +969,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_CONSTANT_POW_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_COSH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_COSH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_COSH_OPERATOR_DESC { @@ -982,9 +982,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_COSH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_COS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_COS_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_COS_OPERATOR_DESC { @@ -995,10 +995,10 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_COS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_DEQUANTIZE_LINEAR_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub ZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub ZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_DEQUANTIZE_LINEAR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_DEQUANTIZE_LINEAR_OPERATOR_DESC { @@ -1009,9 +1009,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_DEQUANTIZE_LINEAR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_DIFFERENCE_SQUARE_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_DIFFERENCE_SQUARE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_DIFFERENCE_SQUARE_OPERATOR_DESC { @@ -1022,9 +1022,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_DIFFERENCE_SQUARE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_DIVIDE_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_DIVIDE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_DIVIDE_OPERATOR_DESC { @@ -1035,9 +1035,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_DIVIDE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ERF_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ERF_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_ERF_OPERATOR_DESC { @@ -1048,9 +1048,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ERF_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_EXP_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_EXP_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_EXP_OPERATOR_DESC { @@ -1061,9 +1061,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_EXP_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_FLOOR_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_FLOOR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_FLOOR_OPERATOR_DESC { @@ -1074,9 +1074,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_FLOOR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC { @@ -1087,10 +1087,10 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_IDENTITY_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_IF_OPERATOR_DESC { - pub ConditionTensor: *mut DML_TENSOR_DESC, - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ConditionTensor: *const DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_IF_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_IF_OPERATOR_DESC { @@ -1101,8 +1101,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_IF_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_IS_INFINITY_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InfinityMode: DML_IS_INFINITY_MODE, } impl ::core::marker::Copy for DML_ELEMENT_WISE_IS_INFINITY_OPERATOR_DESC {} @@ -1114,8 +1114,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_IS_INFINITY_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_IS_NAN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_IS_NAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_IS_NAN_OPERATOR_DESC { @@ -1126,9 +1126,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_IS_NAN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_AND_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_AND_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_AND_OPERATOR_DESC { @@ -1139,9 +1139,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_AND_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_EQUALS_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_EQUALS_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_EQUALS_OPERATOR_DESC { @@ -1152,9 +1152,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_EQUALS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OPERATOR_DESC { @@ -1165,9 +1165,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OPERATOR_DES #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL_OPERATOR_DESC { @@ -1178,9 +1178,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_GREATER_THAN_OR_EQUAL_OPE #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OPERATOR_DESC { @@ -1191,9 +1191,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL_OPERATOR_DESC { @@ -1204,8 +1204,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_LESS_THAN_OR_EQUAL_OPERAT #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_NOT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_NOT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_NOT_OPERATOR_DESC { @@ -1216,9 +1216,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_NOT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_OR_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_OR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_OR_OPERATOR_DESC { @@ -1229,9 +1229,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_OR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOGICAL_XOR_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOGICAL_XOR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_XOR_OPERATOR_DESC { @@ -1242,9 +1242,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOGICAL_XOR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_LOG_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_LOG_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_LOG_OPERATOR_DESC { @@ -1255,9 +1255,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_LOG_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MAX_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MAX_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MAX_OPERATOR_DESC { @@ -1268,9 +1268,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MAX_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MEAN_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MEAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MEAN_OPERATOR_DESC { @@ -1281,9 +1281,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MEAN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MIN_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MIN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MIN_OPERATOR_DESC { @@ -1294,9 +1294,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MIN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MODULUS_FLOOR_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MODULUS_FLOOR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MODULUS_FLOOR_OPERATOR_DESC { @@ -1307,9 +1307,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MODULUS_FLOOR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MODULUS_TRUNCATE_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MODULUS_TRUNCATE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MODULUS_TRUNCATE_OPERATOR_DESC { @@ -1320,9 +1320,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MODULUS_TRUNCATE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC { @@ -1333,10 +1333,10 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_MULTIPLY_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_POW_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ExponentTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub ExponentTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_POW_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_POW_OPERATOR_DESC { @@ -1347,15 +1347,15 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_POW_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_QUANTIZED_LINEAR_ADD_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub AScaleTensor: *mut DML_TENSOR_DESC, - pub AZeroPointTensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub BScaleTensor: *mut DML_TENSOR_DESC, - pub BZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputScaleTensor: *mut DML_TENSOR_DESC, - pub OutputZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub AScaleTensor: *const DML_TENSOR_DESC, + pub AZeroPointTensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub BScaleTensor: *const DML_TENSOR_DESC, + pub BZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputScaleTensor: *const DML_TENSOR_DESC, + pub OutputZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_QUANTIZED_LINEAR_ADD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_QUANTIZED_LINEAR_ADD_OPERATOR_DESC { @@ -1366,10 +1366,10 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_QUANTIZED_LINEAR_ADD_OPERATOR_DES #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_QUANTIZE_LINEAR_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub ZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub ZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_QUANTIZE_LINEAR_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_QUANTIZE_LINEAR_OPERATOR_DESC { @@ -1380,9 +1380,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_QUANTIZE_LINEAR_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_RECIP_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_RECIP_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_RECIP_OPERATOR_DESC { @@ -1393,8 +1393,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_RECIP_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_ROUND_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub RoundingMode: DML_ROUNDING_MODE, } impl ::core::marker::Copy for DML_ELEMENT_WISE_ROUND_OPERATOR_DESC {} @@ -1406,8 +1406,8 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_ROUND_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_SIGN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_SIGN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_SIGN_OPERATOR_DESC { @@ -1418,9 +1418,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_SIGN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_SINH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_SINH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_SINH_OPERATOR_DESC { @@ -1431,9 +1431,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_SINH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_SIN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_SIN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_SIN_OPERATOR_DESC { @@ -1444,9 +1444,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_SIN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_SQRT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_SQRT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_SQRT_OPERATOR_DESC { @@ -1457,9 +1457,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_SQRT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_SUBTRACT_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_ELEMENT_WISE_SUBTRACT_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_SUBTRACT_OPERATOR_DESC { @@ -1470,9 +1470,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_SUBTRACT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_TANH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_TANH_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_TANH_OPERATOR_DESC { @@ -1483,9 +1483,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_TANH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_TAN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, } impl ::core::marker::Copy for DML_ELEMENT_WISE_TAN_OPERATOR_DESC {} impl ::core::clone::Clone for DML_ELEMENT_WISE_TAN_OPERATOR_DESC { @@ -1496,9 +1496,9 @@ impl ::core::clone::Clone for DML_ELEMENT_WISE_TAN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ELEMENT_WISE_THRESHOLD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub ScaleBias: *mut DML_SCALE_BIAS, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub ScaleBias: *const DML_SCALE_BIAS, pub Min: f32, } impl ::core::marker::Copy for DML_ELEMENT_WISE_THRESHOLD_OPERATOR_DESC {} @@ -1566,7 +1566,7 @@ pub const DML_FEATURE_LEVEL_4_0: DML_FEATURE_LEVEL = 16384i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_FEATURE_QUERY_FEATURE_LEVELS { pub RequestedFeatureLevelCount: u32, - pub RequestedFeatureLevels: *mut DML_FEATURE_LEVEL, + pub RequestedFeatureLevels: *const DML_FEATURE_LEVEL, } impl ::core::marker::Copy for DML_FEATURE_QUERY_FEATURE_LEVELS {} impl ::core::clone::Clone for DML_FEATURE_QUERY_FEATURE_LEVELS { @@ -1588,7 +1588,7 @@ impl ::core::clone::Clone for DML_FEATURE_QUERY_TENSOR_DATA_TYPE_SUPPORT { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_FILL_VALUE_CONSTANT_OPERATOR_DESC { - pub OutputTensor: *mut DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub ValueDataType: DML_TENSOR_DATA_TYPE, pub Value: DML_SCALAR_UNION, } @@ -1601,7 +1601,7 @@ impl ::core::clone::Clone for DML_FILL_VALUE_CONSTANT_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_FILL_VALUE_SEQUENCE_OPERATOR_DESC { - pub OutputTensor: *mut DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub ValueDataType: DML_TENSOR_DATA_TYPE, pub ValueStart: DML_SCALAR_UNION, pub ValueDelta: DML_SCALAR_UNION, @@ -1615,9 +1615,9 @@ impl ::core::clone::Clone for DML_FILL_VALUE_SEQUENCE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GATHER_ELEMENTS_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_GATHER_ELEMENTS_OPERATOR_DESC {} @@ -1629,9 +1629,9 @@ impl ::core::clone::Clone for DML_GATHER_ELEMENTS_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GATHER_ND1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InputDimensionCount: u32, pub IndicesDimensionCount: u32, pub BatchDimensionCount: u32, @@ -1645,9 +1645,9 @@ impl ::core::clone::Clone for DML_GATHER_ND1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GATHER_ND_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InputDimensionCount: u32, pub IndicesDimensionCount: u32, } @@ -1660,9 +1660,9 @@ impl ::core::clone::Clone for DML_GATHER_ND_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GATHER_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub IndexDimensions: u32, } @@ -1675,15 +1675,15 @@ impl ::core::clone::Clone for DML_GATHER_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GEMM_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub CTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub CTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub TransA: DML_MATRIX_TRANSFORM, pub TransB: DML_MATRIX_TRANSFORM, pub Alpha: f32, pub Beta: f32, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } impl ::core::marker::Copy for DML_GEMM_OPERATOR_DESC {} impl ::core::clone::Clone for DML_GEMM_OPERATOR_DESC { @@ -1697,13 +1697,13 @@ pub struct DML_GRAPH_DESC { pub InputCount: u32, pub OutputCount: u32, pub NodeCount: u32, - pub Nodes: *mut DML_GRAPH_NODE_DESC, + pub Nodes: *const DML_GRAPH_NODE_DESC, pub InputEdgeCount: u32, - pub InputEdges: *mut DML_GRAPH_EDGE_DESC, + pub InputEdges: *const DML_GRAPH_EDGE_DESC, pub OutputEdgeCount: u32, - pub OutputEdges: *mut DML_GRAPH_EDGE_DESC, + pub OutputEdges: *const DML_GRAPH_EDGE_DESC, pub IntermediateEdgeCount: u32, - pub IntermediateEdges: *mut DML_GRAPH_EDGE_DESC, + pub IntermediateEdges: *const DML_GRAPH_EDGE_DESC, } impl ::core::marker::Copy for DML_GRAPH_DESC {} impl ::core::clone::Clone for DML_GRAPH_DESC { @@ -1715,7 +1715,7 @@ impl ::core::clone::Clone for DML_GRAPH_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GRAPH_EDGE_DESC { pub Type: DML_GRAPH_EDGE_TYPE, - pub Desc: *mut ::core::ffi::c_void, + pub Desc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for DML_GRAPH_EDGE_DESC {} impl ::core::clone::Clone for DML_GRAPH_EDGE_DESC { @@ -1737,7 +1737,7 @@ pub const DML_GRAPH_EDGE_TYPE_INTERMEDIATE: DML_GRAPH_EDGE_TYPE = 3i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_GRAPH_NODE_DESC { pub Type: DML_GRAPH_NODE_TYPE, - pub Desc: *mut ::core::ffi::c_void, + pub Desc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for DML_GRAPH_NODE_DESC {} impl ::core::clone::Clone for DML_GRAPH_NODE_DESC { @@ -1755,16 +1755,16 @@ pub const DML_GRAPH_NODE_TYPE_OPERATOR: DML_GRAPH_NODE_TYPE = 1i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_GRU_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub WeightTensor: *mut DML_TENSOR_DESC, - pub RecurrenceTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub HiddenInitTensor: *mut DML_TENSOR_DESC, - pub SequenceLengthsTensor: *mut DML_TENSOR_DESC, - pub OutputSequenceTensor: *mut DML_TENSOR_DESC, - pub OutputSingleTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub WeightTensor: *const DML_TENSOR_DESC, + pub RecurrenceTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub HiddenInitTensor: *const DML_TENSOR_DESC, + pub SequenceLengthsTensor: *const DML_TENSOR_DESC, + pub OutputSequenceTensor: *const DML_TENSOR_DESC, + pub OutputSingleTensor: *const DML_TENSOR_DESC, pub ActivationDescCount: u32, - pub ActivationDescs: *mut DML_OPERATOR_DESC, + pub ActivationDescs: *const DML_OPERATOR_DESC, pub Direction: DML_RECURRENT_NETWORK_DIRECTION, pub LinearBeforeReset: super::super::super::Foundation::BOOL, } @@ -1829,8 +1829,8 @@ pub const DML_IS_INFINITY_MODE_NEGATIVE: DML_IS_INFINITY_MODE = 2i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_JOIN_OPERATOR_DESC { pub InputCount: u32, - pub InputTensors: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensors: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_JOIN_OPERATOR_DESC {} @@ -1843,9 +1843,9 @@ impl ::core::clone::Clone for DML_JOIN_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_LOCAL_RESPONSE_NORMALIZATION_GRAD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub CrossChannel: super::super::super::Foundation::BOOL, pub LocalSize: u32, pub Alpha: f32, @@ -1864,8 +1864,8 @@ impl ::core::clone::Clone for DML_LOCAL_RESPONSE_NORMALIZATION_GRAD_OPERATOR_DES #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_LOCAL_RESPONSE_NORMALIZATION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub CrossChannel: super::super::super::Foundation::BOOL, pub LocalSize: u32, pub Alpha: f32, @@ -1883,8 +1883,8 @@ impl ::core::clone::Clone for DML_LOCAL_RESPONSE_NORMALIZATION_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_LP_NORMALIZATION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub Epsilon: f32, pub P: u32, @@ -1898,13 +1898,13 @@ impl ::core::clone::Clone for DML_LP_NORMALIZATION_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_LP_POOLING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, pub P: u32, } impl ::core::marker::Copy for DML_LP_POOLING_OPERATOR_DESC {} @@ -1917,19 +1917,19 @@ impl ::core::clone::Clone for DML_LP_POOLING_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_LSTM_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub WeightTensor: *mut DML_TENSOR_DESC, - pub RecurrenceTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub HiddenInitTensor: *mut DML_TENSOR_DESC, - pub CellMemInitTensor: *mut DML_TENSOR_DESC, - pub SequenceLengthsTensor: *mut DML_TENSOR_DESC, - pub PeepholeTensor: *mut DML_TENSOR_DESC, - pub OutputSequenceTensor: *mut DML_TENSOR_DESC, - pub OutputSingleTensor: *mut DML_TENSOR_DESC, - pub OutputCellSingleTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub WeightTensor: *const DML_TENSOR_DESC, + pub RecurrenceTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub HiddenInitTensor: *const DML_TENSOR_DESC, + pub CellMemInitTensor: *const DML_TENSOR_DESC, + pub SequenceLengthsTensor: *const DML_TENSOR_DESC, + pub PeepholeTensor: *const DML_TENSOR_DESC, + pub OutputSequenceTensor: *const DML_TENSOR_DESC, + pub OutputSingleTensor: *const DML_TENSOR_DESC, + pub OutputCellSingleTensor: *const DML_TENSOR_DESC, pub ActivationDescCount: u32, - pub ActivationDescs: *mut DML_OPERATOR_DESC, + pub ActivationDescs: *const DML_OPERATOR_DESC, pub Direction: DML_RECURRENT_NETWORK_DIRECTION, pub ClipThreshold: f32, pub UseClipThreshold: super::super::super::Foundation::BOOL, @@ -1946,11 +1946,11 @@ impl ::core::clone::Clone for DML_LSTM_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MATRIX_MULTIPLY_INTEGER_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub AZeroPointTensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub BZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub AZeroPointTensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub BZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_MATRIX_MULTIPLY_INTEGER_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MATRIX_MULTIPLY_INTEGER_OPERATOR_DESC { @@ -1967,14 +1967,14 @@ pub const DML_MATRIX_TRANSFORM_TRANSPOSE: DML_MATRIX_TRANSFORM = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MAX_POOLING1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub OutputIndicesTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub OutputIndicesTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, } impl ::core::marker::Copy for DML_MAX_POOLING1_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MAX_POOLING1_OPERATOR_DESC { @@ -1985,15 +1985,15 @@ impl ::core::clone::Clone for DML_MAX_POOLING1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MAX_POOLING2_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub OutputIndicesTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub OutputIndicesTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, - pub Dilations: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, + pub Dilations: *const u32, } impl ::core::marker::Copy for DML_MAX_POOLING2_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MAX_POOLING2_OPERATOR_DESC { @@ -2004,15 +2004,15 @@ impl ::core::clone::Clone for DML_MAX_POOLING2_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MAX_POOLING_GRAD_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, - pub Dilations: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, + pub Dilations: *const u32, } impl ::core::marker::Copy for DML_MAX_POOLING_GRAD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MAX_POOLING_GRAD_OPERATOR_DESC { @@ -2023,13 +2023,13 @@ impl ::core::clone::Clone for DML_MAX_POOLING_GRAD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MAX_POOLING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub WindowSize: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub WindowSize: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, } impl ::core::marker::Copy for DML_MAX_POOLING_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MAX_POOLING_OPERATOR_DESC { @@ -2040,9 +2040,9 @@ impl ::core::clone::Clone for DML_MAX_POOLING_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_MAX_UNPOOLING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_MAX_UNPOOLING_OPERATOR_DESC {} impl ::core::clone::Clone for DML_MAX_UNPOOLING_OPERATOR_DESC { @@ -2054,15 +2054,15 @@ impl ::core::clone::Clone for DML_MAX_UNPOOLING_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_MEAN_VARIANCE_NORMALIZATION1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub AxisCount: u32, - pub Axes: *mut u32, + pub Axes: *const u32, pub NormalizeVariance: super::super::super::Foundation::BOOL, pub Epsilon: f32, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DML_MEAN_VARIANCE_NORMALIZATION1_OPERATOR_DESC {} @@ -2076,14 +2076,14 @@ impl ::core::clone::Clone for DML_MEAN_VARIANCE_NORMALIZATION1_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_MEAN_VARIANCE_NORMALIZATION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ScaleTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ScaleTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub CrossChannel: super::super::super::Foundation::BOOL, pub NormalizeVariance: super::super::super::Foundation::BOOL, pub Epsilon: f32, - pub FusedActivation: *mut DML_OPERATOR_DESC, + pub FusedActivation: *const DML_OPERATOR_DESC, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for DML_MEAN_VARIANCE_NORMALIZATION_OPERATOR_DESC {} @@ -2098,9 +2098,9 @@ pub const DML_MINIMUM_BUFFER_TENSOR_ALIGNMENT: u32 = 16u32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_NONZERO_COORDINATES_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputCountTensor: *mut DML_TENSOR_DESC, - pub OutputCoordinatesTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputCountTensor: *const DML_TENSOR_DESC, + pub OutputCoordinatesTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_NONZERO_COORDINATES_OPERATOR_DESC {} impl ::core::clone::Clone for DML_NONZERO_COORDINATES_OPERATOR_DESC { @@ -2111,9 +2111,9 @@ impl ::core::clone::Clone for DML_NONZERO_COORDINATES_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ONE_HOT_OPERATOR_DESC { - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub ValuesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub ValuesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_ONE_HOT_OPERATOR_DESC {} @@ -2126,7 +2126,7 @@ impl ::core::clone::Clone for DML_ONE_HOT_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_OPERATOR_DESC { pub Type: DML_OPERATOR_TYPE, - pub Desc: *mut ::core::ffi::c_void, + pub Desc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for DML_OPERATOR_DESC {} impl ::core::clone::Clone for DML_OPERATOR_DESC { @@ -2483,13 +2483,13 @@ pub const DML_PADDING_MODE_SYMMETRIC: DML_PADDING_MODE = 3i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_PADDING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub PaddingMode: DML_PADDING_MODE, pub PaddingValue: f32, pub DimensionCount: u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, } impl ::core::marker::Copy for DML_PADDING_OPERATOR_DESC {} impl ::core::clone::Clone for DML_PADDING_OPERATOR_DESC { @@ -2502,21 +2502,21 @@ pub const DML_PERSISTENT_BUFFER_ALIGNMENT: u32 = 256u32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_QUANTIZED_LINEAR_CONVOLUTION_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub InputScaleTensor: *mut DML_TENSOR_DESC, - pub InputZeroPointTensor: *mut DML_TENSOR_DESC, - pub FilterTensor: *mut DML_TENSOR_DESC, - pub FilterScaleTensor: *mut DML_TENSOR_DESC, - pub FilterZeroPointTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub OutputScaleTensor: *mut DML_TENSOR_DESC, - pub OutputZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub InputScaleTensor: *const DML_TENSOR_DESC, + pub InputZeroPointTensor: *const DML_TENSOR_DESC, + pub FilterTensor: *const DML_TENSOR_DESC, + pub FilterScaleTensor: *const DML_TENSOR_DESC, + pub FilterZeroPointTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub OutputScaleTensor: *const DML_TENSOR_DESC, + pub OutputZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Strides: *mut u32, - pub Dilations: *mut u32, - pub StartPadding: *mut u32, - pub EndPadding: *mut u32, + pub Strides: *const u32, + pub Dilations: *const u32, + pub StartPadding: *const u32, + pub EndPadding: *const u32, pub GroupCount: u32, } impl ::core::marker::Copy for DML_QUANTIZED_LINEAR_CONVOLUTION_OPERATOR_DESC {} @@ -2528,15 +2528,15 @@ impl ::core::clone::Clone for DML_QUANTIZED_LINEAR_CONVOLUTION_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_QUANTIZED_LINEAR_MATRIX_MULTIPLY_OPERATOR_DESC { - pub ATensor: *mut DML_TENSOR_DESC, - pub AScaleTensor: *mut DML_TENSOR_DESC, - pub AZeroPointTensor: *mut DML_TENSOR_DESC, - pub BTensor: *mut DML_TENSOR_DESC, - pub BScaleTensor: *mut DML_TENSOR_DESC, - pub BZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputScaleTensor: *mut DML_TENSOR_DESC, - pub OutputZeroPointTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub ATensor: *const DML_TENSOR_DESC, + pub AScaleTensor: *const DML_TENSOR_DESC, + pub AZeroPointTensor: *const DML_TENSOR_DESC, + pub BTensor: *const DML_TENSOR_DESC, + pub BScaleTensor: *const DML_TENSOR_DESC, + pub BZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputScaleTensor: *const DML_TENSOR_DESC, + pub OutputZeroPointTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, } impl ::core::marker::Copy for DML_QUANTIZED_LINEAR_MATRIX_MULTIPLY_OPERATOR_DESC {} impl ::core::clone::Clone for DML_QUANTIZED_LINEAR_MATRIX_MULTIPLY_OPERATOR_DESC { @@ -2547,9 +2547,9 @@ impl ::core::clone::Clone for DML_QUANTIZED_LINEAR_MATRIX_MULTIPLY_OPERATOR_DESC #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_RANDOM_GENERATOR_OPERATOR_DESC { - pub InputStateTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, - pub OutputStateTensor: *mut DML_TENSOR_DESC, + pub InputStateTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, + pub OutputStateTensor: *const DML_TENSOR_DESC, pub Type: DML_RANDOM_GENERATOR_TYPE, } impl ::core::marker::Copy for DML_RANDOM_GENERATOR_OPERATOR_DESC {} @@ -2600,10 +2600,10 @@ pub const DML_REDUCE_FUNCTION_SUM_SQUARE: DML_REDUCE_FUNCTION = 11i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_REDUCE_OPERATOR_DESC { pub Function: DML_REDUCE_FUNCTION, - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub AxisCount: u32, - pub Axes: *mut u32, + pub Axes: *const u32, } impl ::core::marker::Copy for DML_REDUCE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_REDUCE_OPERATOR_DESC { @@ -2614,13 +2614,13 @@ impl ::core::clone::Clone for DML_REDUCE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_RESAMPLE1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InterpolationMode: DML_INTERPOLATION_MODE, pub DimensionCount: u32, - pub Scales: *mut f32, - pub InputPixelOffsets: *mut f32, - pub OutputPixelOffsets: *mut f32, + pub Scales: *const f32, + pub InputPixelOffsets: *const f32, + pub OutputPixelOffsets: *const f32, } impl ::core::marker::Copy for DML_RESAMPLE1_OPERATOR_DESC {} impl ::core::clone::Clone for DML_RESAMPLE1_OPERATOR_DESC { @@ -2631,13 +2631,13 @@ impl ::core::clone::Clone for DML_RESAMPLE1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_RESAMPLE_GRAD_OPERATOR_DESC { - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub InterpolationMode: DML_INTERPOLATION_MODE, pub DimensionCount: u32, - pub Scales: *mut f32, - pub InputPixelOffsets: *mut f32, - pub OutputPixelOffsets: *mut f32, + pub Scales: *const f32, + pub InputPixelOffsets: *const f32, + pub OutputPixelOffsets: *const f32, } impl ::core::marker::Copy for DML_RESAMPLE_GRAD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_RESAMPLE_GRAD_OPERATOR_DESC { @@ -2648,11 +2648,11 @@ impl ::core::clone::Clone for DML_RESAMPLE_GRAD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_RESAMPLE_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InterpolationMode: DML_INTERPOLATION_MODE, pub ScaleCount: u32, - pub Scales: *mut f32, + pub Scales: *const f32, } impl ::core::marker::Copy for DML_RESAMPLE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_RESAMPLE_OPERATOR_DESC { @@ -2663,9 +2663,9 @@ impl ::core::clone::Clone for DML_RESAMPLE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_REVERSE_SUBSEQUENCES_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub SequenceLengthsTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub SequenceLengthsTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_REVERSE_SUBSEQUENCES_OPERATOR_DESC {} @@ -2677,16 +2677,16 @@ impl ::core::clone::Clone for DML_REVERSE_SUBSEQUENCES_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_RNN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub WeightTensor: *mut DML_TENSOR_DESC, - pub RecurrenceTensor: *mut DML_TENSOR_DESC, - pub BiasTensor: *mut DML_TENSOR_DESC, - pub HiddenInitTensor: *mut DML_TENSOR_DESC, - pub SequenceLengthsTensor: *mut DML_TENSOR_DESC, - pub OutputSequenceTensor: *mut DML_TENSOR_DESC, - pub OutputSingleTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub WeightTensor: *const DML_TENSOR_DESC, + pub RecurrenceTensor: *const DML_TENSOR_DESC, + pub BiasTensor: *const DML_TENSOR_DESC, + pub HiddenInitTensor: *const DML_TENSOR_DESC, + pub SequenceLengthsTensor: *const DML_TENSOR_DESC, + pub OutputSequenceTensor: *const DML_TENSOR_DESC, + pub OutputSingleTensor: *const DML_TENSOR_DESC, pub ActivationDescCount: u32, - pub ActivationDescs: *mut DML_OPERATOR_DESC, + pub ActivationDescs: *const DML_OPERATOR_DESC, pub Direction: DML_RECURRENT_NETWORK_DIRECTION, } impl ::core::marker::Copy for DML_RNN_OPERATOR_DESC {} @@ -2699,10 +2699,10 @@ impl ::core::clone::Clone for DML_RNN_OPERATOR_DESC { #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct DML_ROI_ALIGN1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ROITensor: *mut DML_TENSOR_DESC, - pub BatchIndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ROITensor: *const DML_TENSOR_DESC, + pub BatchIndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub ReductionFunction: DML_REDUCE_FUNCTION, pub InterpolationMode: DML_INTERPOLATION_MODE, pub SpatialScaleX: f32, @@ -2725,10 +2725,10 @@ impl ::core::clone::Clone for DML_ROI_ALIGN1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ROI_ALIGN_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ROITensor: *mut DML_TENSOR_DESC, - pub BatchIndicesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ROITensor: *const DML_TENSOR_DESC, + pub BatchIndicesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub ReductionFunction: DML_REDUCE_FUNCTION, pub InterpolationMode: DML_INTERPOLATION_MODE, pub SpatialScaleX: f32, @@ -2746,9 +2746,9 @@ impl ::core::clone::Clone for DML_ROI_ALIGN_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_ROI_POOLING_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub ROITensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub ROITensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub SpatialScale: f32, pub PooledSize: DML_SIZE_2D, } @@ -2802,10 +2802,10 @@ impl ::core::clone::Clone for DML_SCALE_BIAS { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SCATTER_ND_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub UpdatesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub UpdatesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub InputDimensionCount: u32, pub IndicesDimensionCount: u32, } @@ -2818,10 +2818,10 @@ impl ::core::clone::Clone for DML_SCATTER_ND_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SCATTER_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub IndicesTensor: *mut DML_TENSOR_DESC, - pub UpdatesTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub IndicesTensor: *const DML_TENSOR_DESC, + pub UpdatesTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_SCATTER_OPERATOR_DESC {} @@ -2845,12 +2845,12 @@ impl ::core::clone::Clone for DML_SIZE_2D { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SLICE1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub InputWindowOffsets: *mut u32, - pub InputWindowSizes: *mut u32, - pub InputWindowStrides: *mut i32, + pub InputWindowOffsets: *const u32, + pub InputWindowSizes: *const u32, + pub InputWindowStrides: *const i32, } impl ::core::marker::Copy for DML_SLICE1_OPERATOR_DESC {} impl ::core::clone::Clone for DML_SLICE1_OPERATOR_DESC { @@ -2861,12 +2861,12 @@ impl ::core::clone::Clone for DML_SLICE1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SLICE_GRAD_OPERATOR_DESC { - pub InputGradientTensor: *mut DML_TENSOR_DESC, - pub OutputGradientTensor: *mut DML_TENSOR_DESC, + pub InputGradientTensor: *const DML_TENSOR_DESC, + pub OutputGradientTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub InputWindowOffsets: *mut u32, - pub InputWindowSizes: *mut u32, - pub InputWindowStrides: *mut i32, + pub InputWindowOffsets: *const u32, + pub InputWindowSizes: *const u32, + pub InputWindowStrides: *const i32, } impl ::core::marker::Copy for DML_SLICE_GRAD_OPERATOR_DESC {} impl ::core::clone::Clone for DML_SLICE_GRAD_OPERATOR_DESC { @@ -2877,12 +2877,12 @@ impl ::core::clone::Clone for DML_SLICE_GRAD_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SLICE_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub DimensionCount: u32, - pub Offsets: *mut u32, - pub Sizes: *mut u32, - pub Strides: *mut u32, + pub Offsets: *const u32, + pub Sizes: *const u32, + pub Strides: *const u32, } impl ::core::marker::Copy for DML_SLICE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_SLICE_OPERATOR_DESC { @@ -2893,8 +2893,8 @@ impl ::core::clone::Clone for DML_SLICE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SPACE_TO_DEPTH1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub BlockSize: u32, pub Order: DML_DEPTH_SPACE_ORDER, } @@ -2907,8 +2907,8 @@ impl ::core::clone::Clone for DML_SPACE_TO_DEPTH1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SPACE_TO_DEPTH_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub BlockSize: u32, } impl ::core::marker::Copy for DML_SPACE_TO_DEPTH_OPERATOR_DESC {} @@ -2920,9 +2920,9 @@ impl ::core::clone::Clone for DML_SPACE_TO_DEPTH_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_SPLIT_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, pub OutputCount: u32, - pub OutputTensors: *mut DML_TENSOR_DESC, + pub OutputTensors: *const DML_TENSOR_DESC, pub Axis: u32, } impl ::core::marker::Copy for DML_SPLIT_OPERATOR_DESC {} @@ -2965,7 +2965,7 @@ pub const DML_TENSOR_DATA_TYPE_INT64: DML_TENSOR_DATA_TYPE = 11i32; #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_TENSOR_DESC { pub Type: DML_TENSOR_TYPE, - pub Desc: *mut ::core::ffi::c_void, + pub Desc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for DML_TENSOR_DESC {} impl ::core::clone::Clone for DML_TENSOR_DESC { @@ -2992,10 +2992,10 @@ pub const DML_TENSOR_TYPE_BUFFER: DML_TENSOR_TYPE = 1i32; #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_TILE_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub RepeatsCount: u32, - pub Repeats: *mut u32, + pub Repeats: *const u32, } impl ::core::marker::Copy for DML_TILE_OPERATOR_DESC {} impl ::core::clone::Clone for DML_TILE_OPERATOR_DESC { @@ -3006,9 +3006,9 @@ impl ::core::clone::Clone for DML_TILE_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_TOP_K1_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputValueTensor: *mut DML_TENSOR_DESC, - pub OutputIndexTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputValueTensor: *const DML_TENSOR_DESC, + pub OutputIndexTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub K: u32, pub AxisDirection: DML_AXIS_DIRECTION, @@ -3022,9 +3022,9 @@ impl ::core::clone::Clone for DML_TOP_K1_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_TOP_K_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputValueTensor: *mut DML_TENSOR_DESC, - pub OutputIndexTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputValueTensor: *const DML_TENSOR_DESC, + pub OutputIndexTensor: *const DML_TENSOR_DESC, pub Axis: u32, pub K: u32, } @@ -3037,8 +3037,8 @@ impl ::core::clone::Clone for DML_TOP_K_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_UPSAMPLE_2D_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub ScaleSize: DML_SIZE_2D, pub InterpolationMode: DML_INTERPOLATION_MODE, } @@ -3051,11 +3051,11 @@ impl ::core::clone::Clone for DML_UPSAMPLE_2D_OPERATOR_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_AI_MachineLearning_DirectML'*"] pub struct DML_VALUE_SCALE_2D_OPERATOR_DESC { - pub InputTensor: *mut DML_TENSOR_DESC, - pub OutputTensor: *mut DML_TENSOR_DESC, + pub InputTensor: *const DML_TENSOR_DESC, + pub OutputTensor: *const DML_TENSOR_DESC, pub Scale: f32, pub ChannelCount: u32, - pub Bias: *mut f32, + pub Bias: *const f32, } impl ::core::marker::Copy for DML_VALUE_SCALE_2D_OPERATOR_DESC {} impl ::core::clone::Clone for DML_VALUE_SCALE_2D_OPERATOR_DESC { diff --git a/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs b/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs index 911c55c8c2..5768bd0eff 100644 --- a/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/AI/MachineLearning/WinML/mod.rs @@ -59,10 +59,10 @@ impl ::core::clone::Clone for MLOperatorAttributeNameValue { #[doc = "*Required features: 'Win32_AI_MachineLearning_WinML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub union MLOperatorAttributeNameValue_0 { - pub reserved: *mut ::core::ffi::c_void, - pub ints: *mut i64, - pub strings: *mut *mut i8, - pub floats: *mut f32, + pub reserved: *const ::core::ffi::c_void, + pub ints: *const i64, + pub strings: *const *const i8, + pub floats: *const f32, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for MLOperatorAttributeNameValue_0 {} @@ -132,7 +132,7 @@ impl ::core::clone::Clone for MLOperatorEdgeType { #[cfg(feature = "Win32_Foundation")] pub struct MLOperatorEdgeTypeConstraint { pub typeLabel: super::super::super::Foundation::PSTR, - pub allowedTypes: *mut MLOperatorEdgeDescription, + pub allowedTypes: *const MLOperatorEdgeDescription, pub allowedTypeCount: u32, } #[cfg(feature = "Win32_Foundation")] @@ -165,9 +165,9 @@ pub struct MLOperatorKernelDescription { pub name: super::super::super::Foundation::PSTR, pub minimumOperatorSetVersion: i32, pub executionType: MLOperatorExecutionType, - pub typeConstraints: *mut MLOperatorEdgeTypeConstraint, + pub typeConstraints: *const MLOperatorEdgeTypeConstraint, pub typeConstraintCount: u32, - pub defaultAttributes: *mut MLOperatorAttributeNameValue, + pub defaultAttributes: *const MLOperatorAttributeNameValue, pub defaultAttributeCount: u32, pub options: MLOperatorKernelOptions, pub executionOptions: u32, @@ -213,15 +213,15 @@ impl ::core::clone::Clone for MLOperatorParameterOptions { pub struct MLOperatorSchemaDescription { pub name: super::super::super::Foundation::PSTR, pub operatorSetVersionAtLastChange: i32, - pub inputs: *mut MLOperatorSchemaEdgeDescription, + pub inputs: *const MLOperatorSchemaEdgeDescription, pub inputCount: u32, - pub outputs: *mut MLOperatorSchemaEdgeDescription, + pub outputs: *const MLOperatorSchemaEdgeDescription, pub outputCount: u32, - pub typeConstraints: *mut MLOperatorEdgeTypeConstraint, + pub typeConstraints: *const MLOperatorEdgeTypeConstraint, pub typeConstraintCount: u32, - pub attributes: *mut MLOperatorAttribute, + pub attributes: *const MLOperatorAttribute, pub attributeCount: u32, - pub defaultAttributes: *mut MLOperatorAttributeNameValue, + pub defaultAttributes: *const MLOperatorAttributeNameValue, pub defaultAttributeCount: u32, } #[cfg(feature = "Win32_Foundation")] @@ -252,7 +252,7 @@ impl ::core::clone::Clone for MLOperatorSchemaEdgeDescription { #[doc = "*Required features: 'Win32_AI_MachineLearning_WinML', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub union MLOperatorSchemaEdgeDescription_0 { - pub reserved: *mut ::core::ffi::c_void, + pub reserved: *const ::core::ffi::c_void, pub typeLabel: super::super::super::Foundation::PSTR, pub edgeDescription: MLOperatorEdgeDescription, } diff --git a/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs index 08ab9c4707..6378e18ff2 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/AllJoyn/mod.rs @@ -2403,7 +2403,7 @@ impl ::core::clone::Clone for alljoyn_busobject_callbacks { #[doc = "*Required features: 'Win32_Devices_AllJoyn', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct alljoyn_busobject_methodentry { - pub member: *mut alljoyn_interfacedescription_member, + pub member: *const alljoyn_interfacedescription_member, pub method_handler: alljoyn_messagereceiver_methodhandler_ptr, } #[cfg(feature = "Win32_Foundation")] @@ -2475,7 +2475,7 @@ pub struct alljoyn_interfacedescription_member { pub signature: super::super::Foundation::PSTR, pub returnSignature: super::super::Foundation::PSTR, pub argNames: super::super::Foundation::PSTR, - pub internal_member: *mut ::core::ffi::c_void, + pub internal_member: *const ::core::ffi::c_void, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for alljoyn_interfacedescription_member {} @@ -2492,7 +2492,7 @@ pub struct alljoyn_interfacedescription_property { pub name: super::super::Foundation::PSTR, pub signature: super::super::Foundation::PSTR, pub access: u8, - pub internal_property: *mut ::core::ffi::c_void, + pub internal_property: *const ::core::ffi::c_void, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for alljoyn_interfacedescription_property {} diff --git a/crates/libs/sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs index c9961a65df..c24a7482dc 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/DeviceQuery/mod.rs @@ -151,7 +151,7 @@ pub struct DEV_OBJECT { pub ObjectType: DEV_OBJECT_TYPE, pub pszObjectId: super::super::Foundation::PWSTR, pub cPropertyCount: u32, - pub pProperties: *mut super::Properties::DEVPROPERTY, + pub pProperties: *const super::Properties::DEVPROPERTY, } #[cfg(all(feature = "Win32_Devices_Properties", feature = "Win32_Foundation"))] impl ::core::marker::Copy for DEV_OBJECT {} diff --git a/crates/libs/sys/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs index c8b1ac3d81..3dcc330d31 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/Enumeration/Pnp/mod.rs @@ -89,11 +89,11 @@ pub struct SW_DEVICE_CREATE_INFO { pub pszInstanceId: super::super::super::Foundation::PWSTR, pub pszzHardwareIds: super::super::super::Foundation::PWSTR, pub pszzCompatibleIds: super::super::super::Foundation::PWSTR, - pub pContainerId: *mut ::windows_sys::core::GUID, + pub pContainerId: *const ::windows_sys::core::GUID, pub CapabilityFlags: u32, pub pszDeviceDescription: super::super::super::Foundation::PWSTR, pub pszDeviceLocation: super::super::super::Foundation::PWSTR, - pub pSecurityDescriptor: *mut super::super::super::Security::SECURITY_DESCRIPTOR, + pub pSecurityDescriptor: *const super::super::super::Security::SECURITY_DESCRIPTOR, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security"))] impl ::core::marker::Copy for SW_DEVICE_CREATE_INFO {} diff --git a/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs index 10e4bf8a81..8aa1e86f4f 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/HumanInterfaceDevice/mod.rs @@ -4136,7 +4136,7 @@ impl ::core::clone::Clone for DIOBJECTCALIBRATION { #[repr(C)] #[doc = "*Required features: 'Win32_Devices_HumanInterfaceDevice'*"] pub struct DIOBJECTDATAFORMAT { - pub pguid: *mut ::windows_sys::core::GUID, + pub pguid: *const ::windows_sys::core::GUID, pub dwOfs: u32, pub dwType: u32, pub dwFlags: u32, diff --git a/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs b/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs index 0c79fd2b6e..8ab4a2beff 100644 --- a/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Devices/WebServicesOnDevices/mod.rs @@ -556,7 +556,7 @@ impl ::core::clone::Clone for WSDXML_TEXT { #[cfg(feature = "Win32_Foundation")] pub struct WSDXML_TYPE { pub Uri: super::super::Foundation::PWSTR, - pub Table: *mut u8, + pub Table: *const u8, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for WSDXML_TYPE {} diff --git a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs index 5dc158d621..b815f83a1b 100644 --- a/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs +++ b/crates/libs/sys/src/Windows/Win32/Globalization/mod.rs @@ -5893,7 +5893,7 @@ pub const UCPTRIE_SMALL_MAX: i32 = 4095i32; #[repr(C)] #[doc = "*Required features: 'Win32_Globalization'*"] pub struct UCPTrie { - pub index: *mut u16, + pub index: *const u16, pub data: UCPTrieData, pub indexLength: i32, pub dataLength: i32, @@ -5916,10 +5916,10 @@ impl ::core::clone::Clone for UCPTrie { #[repr(C)] #[doc = "*Required features: 'Win32_Globalization'*"] pub union UCPTrieData { - pub ptr0: *mut ::core::ffi::c_void, - pub ptr16: *mut u16, - pub ptr32: *mut u32, - pub ptr8: *mut u8, + pub ptr0: *const ::core::ffi::c_void, + pub ptr16: *const u16, + pub ptr32: *const u32, + pub ptr8: *const u8, } impl ::core::marker::Copy for UCPTrieData {} impl ::core::clone::Clone for UCPTrieData { @@ -6230,7 +6230,7 @@ pub type UCharEnumTypeRange = ::core::option::Option, pub pCommandQueue: ::core::option::Option, pub BreadcrumbCount: u32, - pub pLastBreadcrumbValue: *mut u32, - pub pCommandHistory: *mut D3D12_AUTO_BREADCRUMB_OP, - pub pNext: *mut D3D12_AUTO_BREADCRUMB_NODE, + pub pLastBreadcrumbValue: *const u32, + pub pCommandHistory: *const D3D12_AUTO_BREADCRUMB_OP, + pub pNext: *const D3D12_AUTO_BREADCRUMB_NODE, } #[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for D3D12_AUTO_BREADCRUMB_NODE { @@ -207,16 +207,16 @@ impl ::core::default::Default for D3D12_AUTO_BREADCRUMB_NODE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_AUTO_BREADCRUMB_NODE1 { - pub pCommandListDebugNameA: *mut u8, + pub pCommandListDebugNameA: *const u8, pub pCommandListDebugNameW: super::super::Foundation::PWSTR, - pub pCommandQueueDebugNameA: *mut u8, + pub pCommandQueueDebugNameA: *const u8, pub pCommandQueueDebugNameW: super::super::Foundation::PWSTR, pub pCommandList: ::core::option::Option, pub pCommandQueue: ::core::option::Option, pub BreadcrumbCount: u32, - pub pLastBreadcrumbValue: *mut u32, - pub pCommandHistory: *mut D3D12_AUTO_BREADCRUMB_OP, - pub pNext: *mut D3D12_AUTO_BREADCRUMB_NODE1, + pub pLastBreadcrumbValue: *const u32, + pub pCommandHistory: *const D3D12_AUTO_BREADCRUMB_OP, + pub pNext: *const D3D12_AUTO_BREADCRUMB_NODE1, pub BreadcrumbContextsCount: u32, pub pBreadcrumbContexts: *mut D3D12_DRED_BREADCRUMB_CONTEXT, } @@ -898,8 +898,8 @@ impl ::core::default::Default for D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_ #[cfg(feature = "Win32_Graphics_Dxgi_Common")] pub union D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_0 { pub InstanceDescs: u64, - pub pGeometryDescs: *mut D3D12_RAYTRACING_GEOMETRY_DESC, - pub ppGeometryDescs: *mut *mut D3D12_RAYTRACING_GEOMETRY_DESC, + pub pGeometryDescs: *const D3D12_RAYTRACING_GEOMETRY_DESC, + pub ppGeometryDescs: *const *const D3D12_RAYTRACING_GEOMETRY_DESC, } #[cfg(feature = "Win32_Graphics_Dxgi_Common")] impl ::core::marker::Copy for D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS_0 {} @@ -961,7 +961,7 @@ impl ::core::default::Default for D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_ #[repr(C)] #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_CACHED_PIPELINE_STATE { - pub pCachedBlob: *mut ::core::ffi::c_void, + pub pCachedBlob: *const ::core::ffi::c_void, pub CachedBlobSizeInBytes: usize, } impl ::core::marker::Copy for D3D12_CACHED_PIPELINE_STATE {} @@ -1532,7 +1532,7 @@ impl ::core::ops::Not for D3D12_COMMAND_RECORDER_FLAGS { pub struct D3D12_COMMAND_SIGNATURE_DESC { pub ByteStride: u32, pub NumArgumentDescs: u32, - pub pArgumentDescs: *mut D3D12_INDIRECT_ARGUMENT_DESC, + pub pArgumentDescs: *const D3D12_INDIRECT_ARGUMENT_DESC, pub NodeMask: u32, } impl ::core::marker::Copy for D3D12_COMMAND_SIGNATURE_DESC {} @@ -2976,7 +2976,7 @@ impl ::core::default::Default for D3D12_DEVICE_REMOVED_EXTENDED_DATA3 { #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DISCARD_REGION { pub NumRects: u32, - pub pRects: *mut super::super::Foundation::RECT, + pub pRects: *const super::super::Foundation::RECT, pub FirstSubresource: u32, pub NumSubresources: u32, } @@ -3183,10 +3183,10 @@ impl ::core::default::Default for D3D12_DRAW_INDEXED_ARGUMENTS { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_ALLOCATION_NODE { - pub ObjectNameA: *mut u8, + pub ObjectNameA: *const u8, pub ObjectNameW: super::super::Foundation::PWSTR, pub AllocationType: D3D12_DRED_ALLOCATION_TYPE, - pub pNext: *mut D3D12_DRED_ALLOCATION_NODE, + pub pNext: *const D3D12_DRED_ALLOCATION_NODE, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for D3D12_DRED_ALLOCATION_NODE {} @@ -3224,10 +3224,10 @@ impl ::core::default::Default for D3D12_DRED_ALLOCATION_NODE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_ALLOCATION_NODE1 { - pub ObjectNameA: *mut u8, + pub ObjectNameA: *const u8, pub ObjectNameW: super::super::Foundation::PWSTR, pub AllocationType: D3D12_DRED_ALLOCATION_TYPE, - pub pNext: *mut D3D12_DRED_ALLOCATION_NODE1, + pub pNext: *const D3D12_DRED_ALLOCATION_NODE1, pub pObject: ::core::option::Option<::windows::core::IUnknown>, } #[cfg(feature = "Win32_Foundation")] @@ -3351,7 +3351,7 @@ impl ::core::fmt::Debug for D3D12_DRED_ALLOCATION_TYPE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT { - pub pHeadAutoBreadcrumbNode: *mut D3D12_AUTO_BREADCRUMB_NODE, + pub pHeadAutoBreadcrumbNode: *const D3D12_AUTO_BREADCRUMB_NODE, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT {} @@ -3389,7 +3389,7 @@ impl ::core::default::Default for D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 { - pub pHeadAutoBreadcrumbNode: *mut D3D12_AUTO_BREADCRUMB_NODE1, + pub pHeadAutoBreadcrumbNode: *const D3D12_AUTO_BREADCRUMB_NODE1, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for D3D12_DRED_AUTO_BREADCRUMBS_OUTPUT1 {} @@ -3637,8 +3637,8 @@ impl ::core::ops::Not for D3D12_DRED_PAGE_FAULT_FLAGS { #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_PAGE_FAULT_OUTPUT { pub PageFaultVA: u64, - pub pHeadExistingAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE, - pub pHeadRecentFreedAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE, + pub pHeadExistingAllocationNode: *const D3D12_DRED_ALLOCATION_NODE, + pub pHeadRecentFreedAllocationNode: *const D3D12_DRED_ALLOCATION_NODE, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for D3D12_DRED_PAGE_FAULT_OUTPUT {} @@ -3677,8 +3677,8 @@ impl ::core::default::Default for D3D12_DRED_PAGE_FAULT_OUTPUT { #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_PAGE_FAULT_OUTPUT1 { pub PageFaultVA: u64, - pub pHeadExistingAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE1, - pub pHeadRecentFreedAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE1, + pub pHeadExistingAllocationNode: *const D3D12_DRED_ALLOCATION_NODE1, + pub pHeadRecentFreedAllocationNode: *const D3D12_DRED_ALLOCATION_NODE1, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for D3D12_DRED_PAGE_FAULT_OUTPUT1 {} @@ -3717,8 +3717,8 @@ impl ::core::default::Default for D3D12_DRED_PAGE_FAULT_OUTPUT1 { #[cfg(feature = "Win32_Foundation")] pub struct D3D12_DRED_PAGE_FAULT_OUTPUT2 { pub PageFaultVA: u64, - pub pHeadExistingAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE1, - pub pHeadRecentFreedAllocationNode: *mut D3D12_DRED_ALLOCATION_NODE1, + pub pHeadExistingAllocationNode: *const D3D12_DRED_ALLOCATION_NODE1, + pub pHeadRecentFreedAllocationNode: *const D3D12_DRED_ALLOCATION_NODE1, pub PageFaultFlags: D3D12_DRED_PAGE_FAULT_FLAGS, } #[cfg(feature = "Win32_Foundation")] @@ -5040,7 +5040,7 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_EXISTING_HEAPS { #[cfg(feature = "Win32_Graphics_Direct3D")] pub struct D3D12_FEATURE_DATA_FEATURE_LEVELS { pub NumFeatureLevels: u32, - pub pFeatureLevelsRequested: *mut super::Direct3D::D3D_FEATURE_LEVEL, + pub pFeatureLevelsRequested: *const super::Direct3D::D3D_FEATURE_LEVEL, pub MaxSupportedFeatureLevel: super::Direct3D::D3D_FEATURE_LEVEL, } #[cfg(feature = "Win32_Graphics_Direct3D")] @@ -5325,7 +5325,7 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_PROTECTED_RESOURCE_SESSION_ pub struct D3D12_FEATURE_DATA_QUERY_META_COMMAND { pub CommandId: ::windows::core::GUID, pub NodeMask: u32, - pub pQueryInputData: *mut ::core::ffi::c_void, + pub pQueryInputData: *const ::core::ffi::c_void, pub QueryInputDataSizeInBytes: usize, pub pQueryOutputData: *mut ::core::ffi::c_void, pub QueryOutputDataSizeInBytes: usize, @@ -7402,7 +7402,7 @@ impl ::core::default::Default for D3D12_INPUT_ELEMENT_DESC { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation', 'Win32_Graphics_Dxgi_Common'*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Dxgi_Common"))] pub struct D3D12_INPUT_LAYOUT_DESC { - pub pInputElementDescs: *mut D3D12_INPUT_ELEMENT_DESC, + pub pInputElementDescs: *const D3D12_INPUT_ELEMENT_DESC, pub NumElements: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Dxgi_Common"))] @@ -7751,7 +7751,7 @@ pub struct D3D12_MESSAGE { pub Category: D3D12_MESSAGE_CATEGORY, pub Severity: D3D12_MESSAGE_SEVERITY, pub ID: D3D12_MESSAGE_ID, - pub pDescription: *mut u8, + pub pDescription: *const u8, pub DescriptionByteLength: usize, } impl ::core::marker::Copy for D3D12_MESSAGE {} @@ -12343,7 +12343,7 @@ pub struct D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_PARAMETERS { pub pSrcResource: ::core::option::Option, pub pDstResource: ::core::option::Option, pub SubresourceCount: u32, - pub pSubresourceParameters: *mut D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS, + pub pSubresourceParameters: *const D3D12_RENDER_PASS_ENDING_ACCESS_RESOLVE_SUBRESOURCE_PARAMETERS, pub Format: super::Dxgi::Common::DXGI_FORMAT, pub ResolveMode: D3D12_RESOLVE_MODE, pub PreserveResolveSource: super::super::Foundation::BOOL, @@ -13717,7 +13717,7 @@ impl ::core::ops::Not for D3D12_ROOT_DESCRIPTOR_FLAGS { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_ROOT_DESCRIPTOR_TABLE { pub NumDescriptorRanges: u32, - pub pDescriptorRanges: *mut D3D12_DESCRIPTOR_RANGE, + pub pDescriptorRanges: *const D3D12_DESCRIPTOR_RANGE, } impl ::core::marker::Copy for D3D12_ROOT_DESCRIPTOR_TABLE {} impl ::core::clone::Clone for D3D12_ROOT_DESCRIPTOR_TABLE { @@ -13748,7 +13748,7 @@ impl ::core::default::Default for D3D12_ROOT_DESCRIPTOR_TABLE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_ROOT_DESCRIPTOR_TABLE1 { pub NumDescriptorRanges: u32, - pub pDescriptorRanges: *mut D3D12_DESCRIPTOR_RANGE1, + pub pDescriptorRanges: *const D3D12_DESCRIPTOR_RANGE1, } impl ::core::marker::Copy for D3D12_ROOT_DESCRIPTOR_TABLE1 {} impl ::core::clone::Clone for D3D12_ROOT_DESCRIPTOR_TABLE1 { @@ -13920,9 +13920,9 @@ impl ::core::fmt::Debug for D3D12_ROOT_PARAMETER_TYPE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_ROOT_SIGNATURE_DESC { pub NumParameters: u32, - pub pParameters: *mut D3D12_ROOT_PARAMETER, + pub pParameters: *const D3D12_ROOT_PARAMETER, pub NumStaticSamplers: u32, - pub pStaticSamplers: *mut D3D12_STATIC_SAMPLER_DESC, + pub pStaticSamplers: *const D3D12_STATIC_SAMPLER_DESC, pub Flags: D3D12_ROOT_SIGNATURE_FLAGS, } impl ::core::marker::Copy for D3D12_ROOT_SIGNATURE_DESC {} @@ -13954,9 +13954,9 @@ impl ::core::default::Default for D3D12_ROOT_SIGNATURE_DESC { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_ROOT_SIGNATURE_DESC1 { pub NumParameters: u32, - pub pParameters: *mut D3D12_ROOT_PARAMETER1, + pub pParameters: *const D3D12_ROOT_PARAMETER1, pub NumStaticSamplers: u32, - pub pStaticSamplers: *mut D3D12_STATIC_SAMPLER_DESC, + pub pStaticSamplers: *const D3D12_STATIC_SAMPLER_DESC, pub Flags: D3D12_ROOT_SIGNATURE_FLAGS, } impl ::core::marker::Copy for D3D12_ROOT_SIGNATURE_DESC1 {} @@ -14378,7 +14378,7 @@ impl ::core::default::Default for D3D12_SHADER_BUFFER_DESC { #[repr(C)] #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_SHADER_BYTECODE { - pub pShaderBytecode: *mut ::core::ffi::c_void, + pub pShaderBytecode: *const ::core::ffi::c_void, pub BytecodeLength: usize, } impl ::core::marker::Copy for D3D12_SHADER_BYTECODE {} @@ -15562,7 +15562,7 @@ impl ::core::default::Default for D3D12_STATE_OBJECT_CONFIG { pub struct D3D12_STATE_OBJECT_DESC { pub Type: D3D12_STATE_OBJECT_TYPE, pub NumSubobjects: u32, - pub pSubobjects: *mut D3D12_STATE_SUBOBJECT, + pub pSubobjects: *const D3D12_STATE_SUBOBJECT, } impl ::core::marker::Copy for D3D12_STATE_OBJECT_DESC {} impl ::core::clone::Clone for D3D12_STATE_OBJECT_DESC { @@ -15679,7 +15679,7 @@ impl ::core::fmt::Debug for D3D12_STATE_OBJECT_TYPE { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_STATE_SUBOBJECT { pub Type: D3D12_STATE_SUBOBJECT_TYPE, - pub pDesc: *mut ::core::ffi::c_void, + pub pDesc: *const ::core::ffi::c_void, } impl ::core::marker::Copy for D3D12_STATE_SUBOBJECT {} impl ::core::clone::Clone for D3D12_STATE_SUBOBJECT { @@ -15915,9 +15915,9 @@ impl ::core::default::Default for D3D12_STREAM_OUTPUT_BUFFER_VIEW { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_STREAM_OUTPUT_DESC { - pub pSODeclaration: *mut D3D12_SO_DECLARATION_ENTRY, + pub pSODeclaration: *const D3D12_SO_DECLARATION_ENTRY, pub NumEntries: u32, - pub pBufferStrides: *mut u32, + pub pBufferStrides: *const u32, pub NumStrides: u32, pub RasterizedStream: u32, } @@ -15957,7 +15957,7 @@ impl ::core::default::Default for D3D12_STREAM_OUTPUT_DESC { #[doc = "*Required features: 'Win32_Graphics_Direct3D12', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct D3D12_SUBOBJECT_TO_EXPORTS_ASSOCIATION { - pub pSubobjectToAssociate: *mut D3D12_STATE_SUBOBJECT, + pub pSubobjectToAssociate: *const D3D12_STATE_SUBOBJECT, pub NumExports: u32, pub pExports: *mut super::super::Foundation::PWSTR, } @@ -15998,7 +15998,7 @@ pub const D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT: u32 = 8u32; #[repr(C)] #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_SUBRESOURCE_DATA { - pub pData: *mut ::core::ffi::c_void, + pub pData: *const ::core::ffi::c_void, pub RowPitch: isize, pub SlicePitch: isize, } @@ -17878,7 +17878,7 @@ impl ::core::default::Default for D3D12_VIEW_INSTANCE_LOCATION { #[doc = "*Required features: 'Win32_Graphics_Direct3D12'*"] pub struct D3D12_VIEW_INSTANCING_DESC { pub ViewInstanceCount: u32, - pub pViewInstanceLocations: *mut D3D12_VIEW_INSTANCE_LOCATION, + pub pViewInstanceLocations: *const D3D12_VIEW_INSTANCE_LOCATION, pub Flags: D3D12_VIEW_INSTANCING_FLAGS, } impl ::core::marker::Copy for D3D12_VIEW_INSTANCING_DESC {} diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs index 15987a3f7c..14bd012ba2 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/DirectWrite/mod.rs @@ -1388,7 +1388,7 @@ impl ::core::fmt::Debug for DWRITE_FONT_WEIGHT { #[doc = "*Required features: 'Win32_Graphics_DirectWrite', 'Win32_Foundation', 'Win32_Graphics_Direct2D_Common'*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Direct2D_Common"))] pub struct DWRITE_GLYPH_IMAGE_DATA { - pub imageData: *mut ::core::ffi::c_void, + pub imageData: *const ::core::ffi::c_void, pub imageDataSize: u32, pub uniqueDataId: u32, pub pixelsPerEm: u32, @@ -1604,9 +1604,9 @@ pub struct DWRITE_GLYPH_RUN { pub fontFace: ::core::option::Option, pub fontEmSize: f32, pub glyphCount: u32, - pub glyphIndices: *mut u16, - pub glyphAdvances: *mut f32, - pub glyphOffsets: *mut DWRITE_GLYPH_OFFSET, + pub glyphIndices: *const u16, + pub glyphAdvances: *const f32, + pub glyphOffsets: *const DWRITE_GLYPH_OFFSET, pub isSideways: super::super::Foundation::BOOL, pub bidiLevel: u32, } @@ -1656,7 +1656,7 @@ pub struct DWRITE_GLYPH_RUN_DESCRIPTION { pub localeName: super::super::Foundation::PWSTR, pub string: super::super::Foundation::PWSTR, pub stringLength: u32, - pub clusterMap: *mut u16, + pub clusterMap: *const u16, pub textPosition: u32, } #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs index 7cddb8a53f..123f667eb5 100644 --- a/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Graphics/Dxgi/mod.rs @@ -1065,7 +1065,7 @@ pub struct DXGI_INFO_QUEUE_MESSAGE { pub Category: DXGI_INFO_QUEUE_MESSAGE_CATEGORY, pub Severity: DXGI_INFO_QUEUE_MESSAGE_SEVERITY, pub ID: i32, - pub pDescription: *mut u8, + pub pDescription: *const u8, pub DescriptionByteLength: usize, } impl ::core::marker::Copy for DXGI_INFO_QUEUE_MESSAGE {} diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs index b05b90c969..a4ff5f8413 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/XAudio2/mod.rs @@ -1827,7 +1827,7 @@ pub const XAPO_FLAG_INPLACE_SUPPORTED: u32 = 16u32; #[repr(C, packed(1))] #[doc = "*Required features: 'Win32_Media_Audio_XAudio2'*"] pub struct XAPO_LOCKFORPROCESS_PARAMETERS { - pub pFormat: *mut super::WAVEFORMATEX, + pub pFormat: *const super::WAVEFORMATEX, pub MaxFrameCount: u32, } impl ::core::marker::Copy for XAPO_LOCKFORPROCESS_PARAMETERS {} @@ -2177,7 +2177,7 @@ pub const XAUDIO2_ANY_PROCESSOR: u32 = 4294967295u32; pub struct XAUDIO2_BUFFER { pub Flags: u32, pub AudioBytes: u32, - pub pAudioData: *mut u8, + pub pAudioData: *const u8, pub PlayBegin: u32, pub PlayLength: u32, pub LoopBegin: u32, @@ -2208,7 +2208,7 @@ impl ::core::default::Default for XAUDIO2_BUFFER { #[repr(C, packed(1))] #[doc = "*Required features: 'Win32_Media_Audio_XAudio2'*"] pub struct XAUDIO2_BUFFER_WMA { - pub pDecodedPacketCumulativeBytes: *mut u32, + pub pDecodedPacketCumulativeBytes: *const u32, pub PacketCount: u32, } impl ::core::marker::Copy for XAUDIO2_BUFFER_WMA {} diff --git a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs index b8565e7ebe..fe455f27d5 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Audio/mod.rs @@ -11218,7 +11218,7 @@ impl ::core::default::Default for SpatialAudioClientActivationParams { #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct SpatialAudioHrtfActivationParams { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11252,7 +11252,7 @@ impl ::core::default::Default for SpatialAudioHrtfActivationParams { #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct SpatialAudioHrtfActivationParams2 { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11599,7 +11599,7 @@ impl ::core::fmt::Debug for SpatialAudioMetadataWriterOverflowMode { #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct SpatialAudioObjectRenderStreamActivationParams { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11629,7 +11629,7 @@ impl ::core::default::Default for SpatialAudioObjectRenderStreamActivationParams #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct SpatialAudioObjectRenderStreamActivationParams2 { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11660,7 +11660,7 @@ impl ::core::default::Default for SpatialAudioObjectRenderStreamActivationParams #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation', 'Win32_System_Com', 'Win32_System_Com_StructuredStorage'*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub struct SpatialAudioObjectRenderStreamForMetadataActivationParams { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11668,7 +11668,7 @@ pub struct SpatialAudioObjectRenderStreamForMetadataActivationParams { pub EventHandle: super::super::Foundation::HANDLE, pub MetadataFormatId: ::windows::core::GUID, pub MaxMetadataItemCount: u16, - pub MetadataActivationParams: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, + pub MetadataActivationParams: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pub NotifyObject: ::core::option::Option, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] @@ -11693,7 +11693,7 @@ impl ::core::default::Default for SpatialAudioObjectRenderStreamForMetadataActiv #[doc = "*Required features: 'Win32_Media_Audio', 'Win32_Foundation', 'Win32_System_Com', 'Win32_System_Com_StructuredStorage'*"] #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Com_StructuredStorage"))] pub struct SpatialAudioObjectRenderStreamForMetadataActivationParams2 { - pub ObjectFormat: *mut WAVEFORMATEX, + pub ObjectFormat: *const WAVEFORMATEX, pub StaticObjectTypeMask: AudioObjectType, pub MinDynamicObjectCount: u32, pub MaxDynamicObjectCount: u32, @@ -11701,7 +11701,7 @@ pub struct SpatialAudioObjectRenderStreamForMetadataActivationParams2 { pub EventHandle: super::super::Foundation::HANDLE, pub MetadataFormatId: ::windows::core::GUID, pub MaxMetadataItemCount: u32, - pub MetadataActivationParams: *mut super::super::System::Com::StructuredStorage::PROPVARIANT, + pub MetadataActivationParams: *const super::super::System::Com::StructuredStorage::PROPVARIANT, pub NotifyObject: ::core::option::Option, pub Options: SPATIAL_AUDIO_STREAM_OPTIONS, } diff --git a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs index 75fe88fddf..448a4868cc 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/DirectShow/mod.rs @@ -92581,7 +92581,7 @@ impl ::core::default::Default for REGFILTER2_0 { #[cfg(feature = "Win32_Foundation")] pub struct REGFILTER2_0_0 { pub cPins: u32, - pub rgPins: *mut REGFILTERPINS, + pub rgPins: *const REGFILTERPINS, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for REGFILTER2_0_0 {} @@ -92620,7 +92620,7 @@ impl ::core::default::Default for REGFILTER2_0_0 { #[cfg(feature = "Win32_Foundation")] pub struct REGFILTER2_0_1 { pub cPins2: u32, - pub rgPins2: *mut REGFILTERPINS2, + pub rgPins2: *const REGFILTERPINS2, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for REGFILTER2_0_1 {} @@ -92663,10 +92663,10 @@ pub struct REGFILTERPINS { pub bOutput: super::super::Foundation::BOOL, pub bZero: super::super::Foundation::BOOL, pub bMany: super::super::Foundation::BOOL, - pub clsConnectsToFilter: *mut ::windows::core::GUID, + pub clsConnectsToFilter: *const ::windows::core::GUID, pub strConnectsToPin: super::super::Foundation::PWSTR, pub nMediaTypes: u32, - pub lpMediaType: *mut REGPINTYPES, + pub lpMediaType: *const REGPINTYPES, } #[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for REGFILTERPINS {} @@ -92706,10 +92706,10 @@ pub struct REGFILTERPINS2 { pub dwFlags: u32, pub cInstances: u32, pub nMediaTypes: u32, - pub lpMediaType: *mut REGPINTYPES, + pub lpMediaType: *const REGPINTYPES, pub nMediums: u32, - pub lpMedium: *mut REGPINMEDIUM, - pub clsPinCategory: *mut ::windows::core::GUID, + pub lpMedium: *const REGPINMEDIUM, + pub clsPinCategory: *const ::windows::core::GUID, } impl ::core::marker::Copy for REGFILTERPINS2 {} impl ::core::clone::Clone for REGFILTERPINS2 { @@ -92771,8 +92771,8 @@ impl ::core::default::Default for REGPINMEDIUM { #[repr(C)] #[doc = "*Required features: 'Win32_Media_DirectShow'*"] pub struct REGPINTYPES { - pub clsMajorType: *mut ::windows::core::GUID, - pub clsMinorType: *mut ::windows::core::GUID, + pub clsMajorType: *const ::windows::core::GUID, + pub clsMinorType: *const ::windows::core::GUID, } impl ::core::marker::Copy for REGPINTYPES {} impl ::core::clone::Clone for REGPINTYPES { diff --git a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs index be7c993419..e2a021db9c 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/KernelStreaming/mod.rs @@ -15332,12 +15332,12 @@ pub const KSTIME_FORMAT_SAMPLE: ::windows::core::GUID = ::windows::core::GUID::f #[doc = "*Required features: 'Win32_Media_KernelStreaming'*"] pub struct KSTOPOLOGY { pub CategoriesCount: u32, - pub Categories: *mut ::windows::core::GUID, + pub Categories: *const ::windows::core::GUID, pub TopologyNodesCount: u32, - pub TopologyNodes: *mut ::windows::core::GUID, + pub TopologyNodes: *const ::windows::core::GUID, pub TopologyConnectionsCount: u32, - pub TopologyConnections: *mut KSTOPOLOGY_CONNECTION, - pub TopologyNodesNames: *mut ::windows::core::GUID, + pub TopologyConnections: *const KSTOPOLOGY_CONNECTION, + pub TopologyNodesNames: *const ::windows::core::GUID, pub Reserved: u32, } impl ::core::marker::Copy for KSTOPOLOGY {} diff --git a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs index df3103883f..84dc79e80d 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/MediaFoundation/mod.rs @@ -1853,7 +1853,7 @@ pub struct D3D12_FEATURE_DATA_VIDEO_ENCODER_SUPPORT { pub IntraRefresh: D3D12_VIDEO_ENCODER_INTRA_REFRESH_MODE, pub SubregionFrameEncoding: D3D12_VIDEO_ENCODER_FRAME_SUBREGION_LAYOUT_MODE, pub ResolutionsListCount: u32, - pub pResolutionList: *mut D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, + pub pResolutionList: *const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, pub MaxReferenceFramesInDPB: u32, pub ValidationFlags: D3D12_VIDEO_ENCODER_VALIDATION_FLAGS, pub SupportFlags: D3D12_VIDEO_ENCODER_SUPPORT_FLAGS, @@ -2037,7 +2037,7 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_PAR pub struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZE { pub NodeIndex: u32, pub CommandId: ::windows::core::GUID, - pub pCreationParameters: *mut ::core::ffi::c_void, + pub pCreationParameters: *const ::core::ffi::c_void, pub CreationParametersSizeInBytes: usize, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, @@ -2072,7 +2072,7 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SIZ pub struct D3D12_FEATURE_DATA_VIDEO_EXTENSION_COMMAND_SUPPORT { pub NodeIndex: u32, pub CommandId: ::windows::core::GUID, - pub pInputData: *mut ::core::ffi::c_void, + pub pInputData: *const ::core::ffi::c_void, pub InputDataSizeInBytes: usize, pub pOutputData: *mut ::core::ffi::c_void, pub OutputDataSizeInBytes: usize, @@ -2279,9 +2279,9 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_VIDEO_MOTION_ESTIMATOR_SIZE #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Dxgi_Common"))] pub struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE { pub NodeMask: u32, - pub pOutputStreamDesc: *mut D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, + pub pOutputStreamDesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pub NumInputStreamDescs: u32, - pub pInputStreamDescs: *mut D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, + pub pInputStreamDescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, } @@ -2322,9 +2322,9 @@ impl ::core::default::Default for D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Dxgi_Common"))] pub struct D3D12_FEATURE_DATA_VIDEO_PROCESSOR_SIZE1 { pub NodeMask: u32, - pub pOutputStreamDesc: *mut D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, + pub pOutputStreamDesc: *const D3D12_VIDEO_PROCESS_OUTPUT_STREAM_DESC, pub NumInputStreamDescs: u32, - pub pInputStreamDescs: *mut D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, + pub pInputStreamDescs: *const D3D12_VIDEO_PROCESS_INPUT_STREAM_DESC, pub Protected: super::super::Foundation::BOOL, pub MemoryPoolL0Size: u64, pub MemoryPoolL1Size: u64, @@ -4946,7 +4946,7 @@ pub struct D3D12_VIDEO_ENCODER_HEAP_DESC { pub EncodeProfile: D3D12_VIDEO_ENCODER_PROFILE_DESC, pub EncodeLevel: D3D12_VIDEO_ENCODER_LEVEL_SETTING, pub ResolutionsListCount: u32, - pub pResolutionList: *mut D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, + pub pResolutionList: *const D3D12_VIDEO_ENCODER_PICTURE_RESOLUTION_DESC, } impl ::core::marker::Copy for D3D12_VIDEO_ENCODER_HEAP_DESC {} impl ::core::clone::Clone for D3D12_VIDEO_ENCODER_HEAP_DESC { @@ -5888,8 +5888,8 @@ impl ::core::default::Default for D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS #[repr(C)] #[doc = "*Required features: 'Win32_Media_MediaFoundation'*"] pub union D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_0 { - pub pSlicesPartition_H264: *mut D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES, - pub pSlicesPartition_HEVC: *mut D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES, + pub pSlicesPartition_H264: *const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES, + pub pSlicesPartition_HEVC: *const D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_SLICES, } impl ::core::marker::Copy for D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_0 {} impl ::core::clone::Clone for D3D12_VIDEO_ENCODER_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_0 { @@ -6234,10 +6234,10 @@ impl ::core::default::Default for D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION #[repr(C)] #[doc = "*Required features: 'Win32_Media_MediaFoundation'*"] pub union D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS_0 { - pub pConfiguration_CQP: *mut D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP, - pub pConfiguration_CBR: *mut D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR, - pub pConfiguration_VBR: *mut D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR, - pub pConfiguration_QVBR: *mut D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR, + pub pConfiguration_CQP: *const D3D12_VIDEO_ENCODER_RATE_CONTROL_CQP, + pub pConfiguration_CBR: *const D3D12_VIDEO_ENCODER_RATE_CONTROL_CBR, + pub pConfiguration_VBR: *const D3D12_VIDEO_ENCODER_RATE_CONTROL_VBR, + pub pConfiguration_QVBR: *const D3D12_VIDEO_ENCODER_RATE_CONTROL_QVBR, } impl ::core::marker::Copy for D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS_0 {} impl ::core::clone::Clone for D3D12_VIDEO_ENCODER_RATE_CONTROL_CONFIGURATION_PARAMS_0 { diff --git a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs index 4152621faf..8dc872eb35 100644 --- a/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Media/Speech/mod.rs @@ -18160,7 +18160,7 @@ pub struct SPPHRASEELEMENT { pub ulRetainedSizeBytes: u32, pub pszDisplayText: super::super::Foundation::PWSTR, pub pszLexicalForm: super::super::Foundation::PWSTR, - pub pszPronunciation: *mut u16, + pub pszPronunciation: *const u16, pub bDisplayAttributes: u8, pub RequiredConfidence: i8, pub ActualConfidence: i8, @@ -18224,8 +18224,8 @@ pub struct SPPHRASEPROPERTY { pub vValue: super::super::System::Com::VARIANT, pub ulFirstElement: u32, pub ulCountOfElements: u32, - pub pNextSibling: *mut SPPHRASEPROPERTY, - pub pFirstChild: *mut SPPHRASEPROPERTY, + pub pNextSibling: *const SPPHRASEPROPERTY, + pub pFirstChild: *const SPPHRASEPROPERTY, pub SREngineConfidence: f32, pub Confidence: i8, } @@ -18438,8 +18438,8 @@ pub struct SPPHRASERULE { pub ulId: u32, pub ulFirstElement: u32, pub ulCountOfElements: u32, - pub pNextSibling: *mut SPPHRASERULE, - pub pFirstChild: *mut SPPHRASERULE, + pub pNextSibling: *const SPPHRASERULE, + pub pFirstChild: *const SPPHRASERULE, pub SREngineConfidence: f32, pub Confidence: i8, } @@ -18489,13 +18489,13 @@ pub struct SPPHRASE_50 { pub ulRetainedSizeBytes: u32, pub ulAudioSizeTime: u32, pub Rule: SPPHRASERULE, - pub pProperties: *mut SPPHRASEPROPERTY, - pub pElements: *mut SPPHRASEELEMENT, + pub pProperties: *const SPPHRASEPROPERTY, + pub pElements: *const SPPHRASEELEMENT, pub cReplacements: u32, - pub pReplacements: *mut SPPHRASEREPLACEMENT, + pub pReplacements: *const SPPHRASEREPLACEMENT, pub SREngineID: ::windows::core::GUID, pub ulSREnginePrivateDataSize: u32, - pub pSREnginePrivateData: *mut u8, + pub pSREnginePrivateData: *const u8, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] impl ::core::marker::Copy for SPPHRASE_50 {} diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs index dc7724d240..bc6f0870b7 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetManagement/mod.rs @@ -1481,7 +1481,7 @@ pub const DNLEN: u32 = 15u32; #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] pub struct DSREG_JOIN_INFO { pub joinType: DSREG_JOIN_TYPE, - pub pJoinCertificate: *mut super::super::Security::Cryptography::CERT_CONTEXT, + pub pJoinCertificate: *const super::super::Security::Cryptography::CERT_CONTEXT, pub pszDeviceId: super::super::Foundation::PWSTR, pub pszIdpDomain: super::super::Foundation::PWSTR, pub pszTenantId: super::super::Foundation::PWSTR, diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs index 8c8c05aef0..14b5312135 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/NetworkPolicyServer/mod.rs @@ -2805,7 +2805,7 @@ impl ::core::default::Default for RADIUS_ATTRIBUTE { #[doc = "*Required features: 'Win32_NetworkManagement_NetworkPolicyServer'*"] pub union RADIUS_ATTRIBUTE_0 { pub dwValue: u32, - pub lpValue: *mut u8, + pub lpValue: *const u8, } impl ::core::marker::Copy for RADIUS_ATTRIBUTE_0 {} impl ::core::clone::Clone for RADIUS_ATTRIBUTE_0 { @@ -2832,7 +2832,7 @@ impl ::core::default::Default for RADIUS_ATTRIBUTE_0 { pub struct RADIUS_ATTRIBUTE_ARRAY { pub cbSize: u32, pub Add: isize, - pub AttributeAt: *mut *mut *mut *mut *mut *mut *mut *mut *mut *mut RADIUS_ATTRIBUTE, + pub AttributeAt: *const *const *const *const *const *const *const *const *const *const RADIUS_ATTRIBUTE, pub GetSize: isize, pub InsertAt: isize, pub RemoveAt: isize, diff --git a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs index a7c9a58f75..5da1e4de12 100644 --- a/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/NetworkManagement/QoS/mod.rs @@ -2190,7 +2190,7 @@ pub unsafe fn QOSStopTrackingClient<'a, Param0: ::windows::core::IntoParam<'a, s #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))] pub struct QOS_DESTADDR { pub ObjectHdr: QOS_OBJECT_HDR, - pub SocketAddress: *mut super::super::Networking::WinSock::SOCKADDR, + pub SocketAddress: *const super::super::Networking::WinSock::SOCKADDR, pub SocketAddressLength: u32, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Networking_WinSock"))] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs index c4d538d70b..d90dcd859c 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/Clustering/mod.rs @@ -3114,7 +3114,7 @@ pub struct CLUSTER_BATCH_COMMAND { pub Command: CLUSTER_REG_COMMAND, pub dwOptions: u32, pub wzName: super::super::Foundation::PWSTR, - pub lpData: *mut u8, + pub lpData: *const u8, pub cbData: u32, } #[cfg(feature = "Win32_Foundation")] @@ -5011,7 +5011,7 @@ pub struct CLUSTER_READ_BATCH_COMMAND { pub dwOptions: u32, pub wzSubkeyName: super::super::Foundation::PWSTR, pub wzValueName: super::super::Foundation::PWSTR, - pub lpData: *mut u8, + pub lpData: *const u8, pub cbData: u32, } #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs index fe8d7c52dc..82b6975908 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WinInet/mod.rs @@ -570,7 +570,7 @@ pub unsafe fn AppCacheLookup<'a, Param0: ::windows::core::IntoParam<'a, super::s #[repr(C)] #[doc = "*Required features: 'Win32_Networking_WinInet'*"] pub struct AutoProxyHelperFunctions { - pub lpVtbl: *mut AutoProxyHelperVtbl, + pub lpVtbl: *const AutoProxyHelperVtbl, } impl ::core::marker::Copy for AutoProxyHelperFunctions {} impl ::core::clone::Clone for AutoProxyHelperFunctions { @@ -7305,7 +7305,7 @@ impl ::core::default::Default for INTERNET_SECURITY_CONNECTION_INFO { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Authentication_Identity", feature = "Win32_Security_Cryptography"))] pub struct INTERNET_SECURITY_INFO { pub dwSize: u32, - pub pCertificate: *mut super::super::Security::Cryptography::CERT_CONTEXT, + pub pCertificate: *const super::super::Security::Cryptography::CERT_CONTEXT, pub pcCertChain: *mut super::super::Security::Cryptography::CERT_CHAIN_CONTEXT, pub connectionInfo: super::super::Security::Authentication::Identity::SecPkgContext_ConnectionInfo, pub cipherInfo: super::super::Security::Authentication::Identity::SecPkgContext_CipherInfo, diff --git a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs index 8623317caa..e8b38a734c 100644 --- a/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/Networking/WindowsWebServices/mod.rs @@ -1888,9 +1888,9 @@ impl ::core::default::Default for WS_CERT_MESSAGE_SECURITY_BINDING_CONSTRAINT { #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Security_Cryptography"))] pub struct WS_CERT_SIGNED_SAML_AUTHENTICATOR { pub authenticator: WS_SAML_AUTHENTICATOR, - pub trustedIssuerCerts: *mut *mut super::super::Security::Cryptography::CERT_CONTEXT, + pub trustedIssuerCerts: *const *const super::super::Security::Cryptography::CERT_CONTEXT, pub trustedIssuerCertCount: u32, - pub decryptionCert: *mut super::super::Security::Cryptography::CERT_CONTEXT, + pub decryptionCert: *const super::super::Security::Cryptography::CERT_CONTEXT, pub samlValidator: WS_VALIDATE_SAML_CALLBACK, pub samlValidatorCallbackState: *mut ::core::ffi::c_void, } @@ -9035,9 +9035,9 @@ pub type WS_SERVICE_CLOSE_CHANNEL_CALLBACK = ::core::option::Option, pub hr: ::windows::core::HRESULT, } diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs index 198ebe8cad..1e8a9e63da 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Debug/mod.rs @@ -66508,7 +66508,7 @@ pub const WDBGEXTS_ADDRESS_SEG32: u32 = 2u32; #[repr(C)] #[doc = "*Required features: 'Win32_System_Diagnostics_Debug'*"] pub struct WDBGEXTS_CLR_DATA_INTERFACE { - pub Iid: *mut ::windows::core::GUID, + pub Iid: *const ::windows::core::GUID, pub Iface: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for WDBGEXTS_CLR_DATA_INTERFACE {} @@ -66618,7 +66618,7 @@ impl ::core::default::Default for WDBGEXTS_MODULE_IN_RANGE { #[repr(C)] #[doc = "*Required features: 'Win32_System_Diagnostics_Debug'*"] pub struct WDBGEXTS_QUERY_INTERFACE { - pub Iid: *mut ::windows::core::GUID, + pub Iid: *const ::windows::core::GUID, pub Iface: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for WDBGEXTS_QUERY_INTERFACE {} diff --git a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs index 3383d86c6c..e0699c7244 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Diagnostics/Etw/mod.rs @@ -5663,7 +5663,7 @@ impl ::core::default::Default for TRACE_GUID_PROPERTIES { #[doc = "*Required features: 'Win32_System_Diagnostics_Etw', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct TRACE_GUID_REGISTRATION { - pub Guid: *mut ::windows::core::GUID, + pub Guid: *const ::windows::core::GUID, pub RegHandle: super::super::super::Foundation::HANDLE, } #[cfg(feature = "Win32_Foundation")] diff --git a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs index 5fc701bc7f..eb44738dec 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Iis/mod.rs @@ -2065,7 +2065,7 @@ impl ::core::default::Default for HTTP_FILTER_VERSION { #[doc = "*Required features: 'Win32_System_Iis', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct HTTP_TRACE_CONFIGURATION { - pub pProviderGuid: *mut ::windows::core::GUID, + pub pProviderGuid: *const ::windows::core::GUID, pub dwAreas: u32, pub dwVerbosity: u32, pub fProviderEnabled: super::super::Foundation::BOOL, @@ -2106,15 +2106,15 @@ impl ::core::default::Default for HTTP_TRACE_CONFIGURATION { #[doc = "*Required features: 'Win32_System_Iis', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct HTTP_TRACE_EVENT { - pub pProviderGuid: *mut ::windows::core::GUID, + pub pProviderGuid: *const ::windows::core::GUID, pub dwArea: u32, - pub pAreaGuid: *mut ::windows::core::GUID, + pub pAreaGuid: *const ::windows::core::GUID, pub dwEvent: u32, pub pszEventName: super::super::Foundation::PWSTR, pub dwEventVersion: u32, pub dwVerbosity: u32, - pub pActivityGuid: *mut ::windows::core::GUID, - pub pRelatedActivityGuid: *mut ::windows::core::GUID, + pub pActivityGuid: *const ::windows::core::GUID, + pub pRelatedActivityGuid: *const ::windows::core::GUID, pub dwTimeStamp: u32, pub dwFlags: u32, pub cEventItems: u32, diff --git a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs index 622bf559de..d7f590c832 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Rpc/mod.rs @@ -1697,7 +1697,7 @@ impl ::core::default::Default for MIDL_FORMAT_STRING { pub struct MIDL_INTERCEPTION_INFO { pub Version: u32, pub ProcString: *mut u8, - pub ProcFormatOffsetTable: *mut u16, + pub ProcFormatOffsetTable: *const u16, pub ProcCount: u32, pub TypeString: *mut u8, } @@ -1730,7 +1730,7 @@ impl ::core::default::Default for MIDL_INTERCEPTION_INFO { #[doc = "*Required features: 'Win32_System_Rpc'*"] pub struct MIDL_INTERFACE_METHOD_PROPERTIES { pub MethodCount: u16, - pub MethodProperties: *mut *mut MIDL_METHOD_PROPERTY_MAP, + pub MethodProperties: *const *const MIDL_METHOD_PROPERTY_MAP, } impl ::core::marker::Copy for MIDL_INTERFACE_METHOD_PROPERTIES {} impl ::core::clone::Clone for MIDL_INTERFACE_METHOD_PROPERTIES { @@ -1792,7 +1792,7 @@ impl ::core::default::Default for MIDL_METHOD_PROPERTY { #[doc = "*Required features: 'Win32_System_Rpc'*"] pub struct MIDL_METHOD_PROPERTY_MAP { pub Count: u32, - pub Properties: *mut MIDL_METHOD_PROPERTY, + pub Properties: *const MIDL_METHOD_PROPERTY, } impl ::core::marker::Copy for MIDL_METHOD_PROPERTY_MAP {} impl ::core::clone::Clone for MIDL_METHOD_PROPERTY_MAP { @@ -1824,10 +1824,10 @@ impl ::core::default::Default for MIDL_METHOD_PROPERTY_MAP { #[cfg(feature = "Win32_System_Com")] pub struct MIDL_SERVER_INFO { pub pStubDesc: *mut MIDL_STUB_DESC, - pub DispatchTable: *mut SERVER_ROUTINE, + pub DispatchTable: *const SERVER_ROUTINE, pub ProcString: *mut u8, - pub FmtStringOffset: *mut u16, - pub ThunkTable: *mut STUB_THUNK, + pub FmtStringOffset: *const u16, + pub ThunkTable: *const STUB_THUNK, pub pTransferSyntax: *mut RPC_SYNTAX_IDENTIFIER, pub nCount: usize, pub pSyntaxInfo: *mut MIDL_SYNTAX_INFO, @@ -1870,7 +1870,7 @@ impl ::core::default::Default for MIDL_SERVER_INFO { pub struct MIDL_STUBLESS_PROXY_INFO { pub pStubDesc: *mut MIDL_STUB_DESC, pub ProcFormatString: *mut u8, - pub FormatStringOffset: *mut u16, + pub FormatStringOffset: *const u16, pub pTransferSyntax: *mut RPC_SYNTAX_IDENTIFIER, pub nCount: usize, pub pSyntaxInfo: *mut MIDL_SYNTAX_INFO, @@ -1915,22 +1915,22 @@ pub struct MIDL_STUB_DESC { pub pfnAllocate: isize, pub pfnFree: isize, pub IMPLICIT_HANDLE_INFO: MIDL_STUB_DESC_0, - pub apfnNdrRundownRoutines: *mut NDR_RUNDOWN, - pub aGenericBindingRoutinePairs: *mut GENERIC_BINDING_ROUTINE_PAIR, - pub apfnExprEval: *mut EXPR_EVAL, - pub aXmitQuintuple: *mut XMIT_ROUTINE_QUINTUPLE, - pub pFormatTypes: *mut u8, + pub apfnNdrRundownRoutines: *const NDR_RUNDOWN, + pub aGenericBindingRoutinePairs: *const GENERIC_BINDING_ROUTINE_PAIR, + pub apfnExprEval: *const EXPR_EVAL, + pub aXmitQuintuple: *const XMIT_ROUTINE_QUINTUPLE, + pub pFormatTypes: *const u8, pub fCheckBounds: i32, pub Version: u32, pub pMallocFreeStruct: *mut MALLOC_FREE_STRUCT, pub MIDLVersion: i32, - pub CommFaultOffsets: *mut COMM_FAULT_OFFSETS, - pub aUserMarshalQuadruple: *mut USER_MARSHAL_ROUTINE_QUADRUPLE, - pub NotifyRoutineTable: *mut NDR_NOTIFY_ROUTINE, + pub CommFaultOffsets: *const COMM_FAULT_OFFSETS, + pub aUserMarshalQuadruple: *const USER_MARSHAL_ROUTINE_QUADRUPLE, + pub NotifyRoutineTable: *const NDR_NOTIFY_ROUTINE, pub mFlags: usize, - pub CsRoutineTables: *mut NDR_CS_ROUTINES, + pub CsRoutineTables: *const NDR_CS_ROUTINES, pub ProxyServerInfo: *mut ::core::ffi::c_void, - pub pExprInfo: *mut NDR_EXPR_DESC, + pub pExprInfo: *const NDR_EXPR_DESC, } #[cfg(feature = "Win32_System_Com")] impl ::core::marker::Copy for MIDL_STUB_DESC {} @@ -2024,7 +2024,7 @@ pub struct MIDL_STUB_MESSAGE { pub pPresentedType: *mut u8, pub pTransmitType: *mut u8, pub SavedHandle: *mut ::core::ffi::c_void, - pub StubDesc: *mut MIDL_STUB_DESC, + pub StubDesc: *const MIDL_STUB_DESC, pub FullPtrXlatTables: *mut FULL_PTR_XLAT_TABLES, pub FullPtrRefId: u32, pub PointerLength: u32, @@ -2270,10 +2270,10 @@ pub struct MIDL_SYNTAX_INFO { pub TransferSyntax: RPC_SYNTAX_IDENTIFIER, pub DispatchTable: *mut RPC_DISPATCH_TABLE, pub ProcString: *mut u8, - pub FmtStringOffset: *mut u16, + pub FmtStringOffset: *const u16, pub TypeString: *mut u8, - pub aUserMarshalQuadruple: *mut ::core::ffi::c_void, - pub pMethodProperties: *mut MIDL_INTERFACE_METHOD_PROPERTIES, + pub aUserMarshalQuadruple: *const ::core::ffi::c_void, + pub pMethodProperties: *const MIDL_INTERFACE_METHOD_PROPERTIES, pub pReserved2: usize, } impl ::core::marker::Copy for MIDL_SYNTAX_INFO {} @@ -4832,7 +4832,7 @@ pub const NDR_DEFAULT_ALLOCATOR: u32 = 536870912u32; #[repr(C)] #[doc = "*Required features: 'Win32_System_Rpc'*"] pub struct NDR_EXPR_DESC { - pub pOffset: *mut u16, + pub pOffset: *const u16, pub pFormatExpr: *mut u8, } impl ::core::marker::Copy for NDR_EXPR_DESC {} @@ -8812,7 +8812,7 @@ pub struct RPC_CLIENT_INTERFACE { pub RpcProtseqEndpointCount: u32, pub RpcProtseqEndpoint: *mut RPC_PROTSEQ_ENDPOINT, pub Reserved: usize, - pub InterpreterInfo: *mut ::core::ffi::c_void, + pub InterpreterInfo: *const ::core::ffi::c_void, pub Flags: u32, } impl ::core::marker::Copy for RPC_CLIENT_INTERFACE {} @@ -11064,7 +11064,7 @@ pub struct RPC_SERVER_INTERFACE { pub RpcProtseqEndpointCount: u32, pub RpcProtseqEndpoint: *mut RPC_PROTSEQ_ENDPOINT, pub DefaultManagerEpv: *mut ::core::ffi::c_void, - pub InterpreterInfo: *mut ::core::ffi::c_void, + pub InterpreterInfo: *const ::core::ffi::c_void, pub Flags: u32, } impl ::core::marker::Copy for RPC_SERVER_INTERFACE {} diff --git a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs index 23460f6026..56211e6d82 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Search/mod.rs @@ -8099,7 +8099,7 @@ pub const FAIL: u32 = 0u32; pub struct FILTERED_DATA_SOURCES { pub pwcsExtension: super::super::Foundation::PWSTR, pub pwcsMime: super::super::Foundation::PWSTR, - pub pClsid: *mut ::windows::core::GUID, + pub pClsid: *const ::windows::core::GUID, pub pwcsOverride: super::super::Foundation::PWSTR, } #[cfg(feature = "Win32_Foundation")] @@ -24451,7 +24451,7 @@ pub const ODBC_USER_DSN: u32 = 1u32; #[doc = "*Required features: 'Win32_System_Search', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct ODBC_VS_ARGS { - pub pguidEvent: *mut ::windows::core::GUID, + pub pguidEvent: *const ::windows::core::GUID, pub dwFlags: u32, pub Anonymous1: ODBC_VS_ARGS_0, pub Anonymous2: ODBC_VS_ARGS_1, diff --git a/crates/libs/windows/src/Windows/Win32/System/SqlLite/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SqlLite/mod.rs index 58eba8bf96..9847e4719d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SqlLite/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SqlLite/mod.rs @@ -86,8 +86,8 @@ impl ::core::default::Default for Fts5ExtensionApi { #[repr(C)] #[doc = "*Required features: 'Win32_System_SqlLite'*"] pub struct Fts5PhraseIter { - pub a: *mut u8, - pub b: *mut u8, + pub a: *const u8, + pub b: *const u8, } impl ::core::marker::Copy for Fts5PhraseIter {} impl ::core::clone::Clone for Fts5PhraseIter { @@ -3504,7 +3504,7 @@ pub unsafe fn sqlite3_extended_result_codes(param0: *mut sqlite3, onoff: i32) -> #[repr(C)] #[doc = "*Required features: 'Win32_System_SqlLite'*"] pub struct sqlite3_file { - pub pMethods: *mut sqlite3_io_methods, + pub pMethods: *const sqlite3_io_methods, } impl ::core::marker::Copy for sqlite3_file {} impl ::core::clone::Clone for sqlite3_file { @@ -6467,7 +6467,7 @@ pub unsafe fn sqlite3_vsnprintf<'a, Param1: ::windows::core::IntoParam<'a, super #[doc = "*Required features: 'Win32_System_SqlLite', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub struct sqlite3_vtab { - pub pModule: *mut sqlite3_module, + pub pModule: *const sqlite3_module, pub nRef: i32, pub zErrMsg: super::super::Foundation::PSTR, } diff --git a/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs b/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs index 2df65b4f9d..73394e4e49 100644 --- a/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/SystemServices/mod.rs @@ -5860,7 +5860,7 @@ impl ::core::default::Default for IMAGE_POLICY_ENTRY { #[doc = "*Required features: 'Win32_System_SystemServices', 'Win32_Foundation'*"] #[cfg(feature = "Win32_Foundation")] pub union IMAGE_POLICY_ENTRY_0 { - pub None: *mut ::core::ffi::c_void, + pub None: *const ::core::ffi::c_void, pub BoolValue: super::super::Foundation::BOOLEAN, pub Int8Value: i8, pub UInt8Value: u8, diff --git a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs index e021ea20c0..dad119385d 100644 --- a/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/System/Wmi/mod.rs @@ -9116,7 +9116,7 @@ pub struct IWbemUnsecuredApartment_Vtbl { pub struct MI_Application { pub reserved1: u64, pub reserved2: isize, - pub ft: *mut MI_ApplicationFT, + pub ft: *const MI_ApplicationFT, } impl ::core::marker::Copy for MI_Application {} impl ::core::clone::Clone for MI_Application { @@ -9531,10 +9531,10 @@ impl ::core::default::Default for MI_Char16Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_Class { - pub ft: *mut MI_ClassFT, - pub classDecl: *mut MI_ClassDecl, - pub namespaceName: *mut u16, - pub serverName: *mut u16, + pub ft: *const MI_ClassFT, + pub classDecl: *const MI_ClassDecl, + pub namespaceName: *const u16, + pub serverName: *const u16, pub reserved: [isize; 4], } impl ::core::marker::Copy for MI_Class {} @@ -9567,18 +9567,18 @@ impl ::core::default::Default for MI_Class { pub struct MI_ClassDecl { pub flags: u32, pub code: u32, - pub name: *mut u16, - pub qualifiers: *mut *mut MI_Qualifier, + pub name: *const u16, + pub qualifiers: *const *const MI_Qualifier, pub numQualifiers: u32, - pub properties: *mut *mut MI_PropertyDecl, + pub properties: *const *const MI_PropertyDecl, pub numProperties: u32, pub size: u32, - pub superClass: *mut u16, - pub superClassDecl: *mut MI_ClassDecl, - pub methods: *mut *mut MI_MethodDecl, + pub superClass: *const u16, + pub superClassDecl: *const MI_ClassDecl, + pub methods: *const *const MI_MethodDecl, pub numMethods: u32, - pub schema: *mut MI_SchemaDecl, - pub providerFT: *mut MI_ProviderFT, + pub schema: *const MI_SchemaDecl, + pub providerFT: *const MI_ProviderFT, pub owningClass: *mut MI_Class, } impl ::core::marker::Copy for MI_ClassDecl {} @@ -9683,16 +9683,16 @@ impl ::core::default::Default for MI_ClassFT { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ClientFT_V1 { - pub applicationFT: *mut MI_ApplicationFT, - pub sessionFT: *mut MI_SessionFT, - pub operationFT: *mut MI_OperationFT, - pub hostedProviderFT: *mut MI_HostedProviderFT, - pub serializerFT: *mut MI_SerializerFT, - pub deserializerFT: *mut MI_DeserializerFT, - pub subscribeDeliveryOptionsFT: *mut MI_SubscriptionDeliveryOptionsFT, - pub destinationOptionsFT: *mut MI_DestinationOptionsFT, - pub operationOptionsFT: *mut MI_OperationOptionsFT, - pub utilitiesFT: *mut MI_UtilitiesFT, + pub applicationFT: *const MI_ApplicationFT, + pub sessionFT: *const MI_SessionFT, + pub operationFT: *const MI_OperationFT, + pub hostedProviderFT: *const MI_HostedProviderFT, + pub serializerFT: *const MI_SerializerFT, + pub deserializerFT: *const MI_DeserializerFT, + pub subscribeDeliveryOptionsFT: *const MI_SubscriptionDeliveryOptionsFT, + pub destinationOptionsFT: *const MI_DestinationOptionsFT, + pub operationOptionsFT: *const MI_OperationOptionsFT, + pub utilitiesFT: *const MI_UtilitiesFT, } impl ::core::marker::Copy for MI_ClientFT_V1 {} impl ::core::clone::Clone for MI_ClientFT_V1 { @@ -9733,7 +9733,7 @@ impl ::core::default::Default for MI_ClientFT_V1 { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstBooleanA { - pub data: *mut u8, + pub data: *const u8, pub size: u32, } impl ::core::marker::Copy for MI_ConstBooleanA {} @@ -9828,7 +9828,7 @@ impl ::core::default::Default for MI_ConstBooleanField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstChar16A { - pub data: *mut u16, + pub data: *const u16, pub size: u32, } impl ::core::marker::Copy for MI_ConstChar16A {} @@ -9923,7 +9923,7 @@ impl ::core::default::Default for MI_ConstChar16Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstDatetimeA { - pub data: *mut MI_Datetime, + pub data: *const MI_Datetime, pub size: u32, } impl ::core::marker::Copy for MI_ConstDatetimeA {} @@ -10013,7 +10013,7 @@ impl ::core::default::Default for MI_ConstDatetimeField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstInstanceA { - pub data: *mut *mut MI_Instance, + pub data: *const *const MI_Instance, pub size: u32, } impl ::core::marker::Copy for MI_ConstInstanceA {} @@ -10076,7 +10076,7 @@ impl ::core::default::Default for MI_ConstInstanceAField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstInstanceField { - pub value: *mut MI_Instance, + pub value: *const MI_Instance, pub exists: u8, pub flags: u8, } @@ -10108,7 +10108,7 @@ impl ::core::default::Default for MI_ConstInstanceField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstReal32A { - pub data: *mut f32, + pub data: *const f32, pub size: u32, } impl ::core::marker::Copy for MI_ConstReal32A {} @@ -10203,7 +10203,7 @@ impl ::core::default::Default for MI_ConstReal32Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstReal64A { - pub data: *mut f64, + pub data: *const f64, pub size: u32, } impl ::core::marker::Copy for MI_ConstReal64A {} @@ -10298,7 +10298,7 @@ impl ::core::default::Default for MI_ConstReal64Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstReferenceA { - pub data: *mut *mut MI_Instance, + pub data: *const *const MI_Instance, pub size: u32, } impl ::core::marker::Copy for MI_ConstReferenceA {} @@ -10361,7 +10361,7 @@ impl ::core::default::Default for MI_ConstReferenceAField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstReferenceField { - pub value: *mut MI_Instance, + pub value: *const MI_Instance, pub exists: u8, pub flags: u8, } @@ -10393,7 +10393,7 @@ impl ::core::default::Default for MI_ConstReferenceField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstSint16A { - pub data: *mut i16, + pub data: *const i16, pub size: u32, } impl ::core::marker::Copy for MI_ConstSint16A {} @@ -10488,7 +10488,7 @@ impl ::core::default::Default for MI_ConstSint16Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstSint32A { - pub data: *mut i32, + pub data: *const i32, pub size: u32, } impl ::core::marker::Copy for MI_ConstSint32A {} @@ -10583,7 +10583,7 @@ impl ::core::default::Default for MI_ConstSint32Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstSint64A { - pub data: *mut i64, + pub data: *const i64, pub size: u32, } impl ::core::marker::Copy for MI_ConstSint64A {} @@ -10678,7 +10678,7 @@ impl ::core::default::Default for MI_ConstSint64Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstSint8A { - pub data: *mut i8, + pub data: *const i8, pub size: u32, } impl ::core::marker::Copy for MI_ConstSint8A {} @@ -10773,7 +10773,7 @@ impl ::core::default::Default for MI_ConstSint8Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstStringA { - pub data: *mut *mut u16, + pub data: *const *const u16, pub size: u32, } impl ::core::marker::Copy for MI_ConstStringA {} @@ -10836,7 +10836,7 @@ impl ::core::default::Default for MI_ConstStringAField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstStringField { - pub value: *mut u16, + pub value: *const u16, pub exists: u8, pub flags: u8, } @@ -10868,7 +10868,7 @@ impl ::core::default::Default for MI_ConstStringField { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstUint16A { - pub data: *mut u16, + pub data: *const u16, pub size: u32, } impl ::core::marker::Copy for MI_ConstUint16A {} @@ -10963,7 +10963,7 @@ impl ::core::default::Default for MI_ConstUint16Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstUint32A { - pub data: *mut u32, + pub data: *const u32, pub size: u32, } impl ::core::marker::Copy for MI_ConstUint32A {} @@ -11058,7 +11058,7 @@ impl ::core::default::Default for MI_ConstUint32Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstUint64A { - pub data: *mut u64, + pub data: *const u64, pub size: u32, } impl ::core::marker::Copy for MI_ConstUint64A {} @@ -11153,7 +11153,7 @@ impl ::core::default::Default for MI_ConstUint64Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_ConstUint8A { - pub data: *mut u8, + pub data: *const u8, pub size: u32, } impl ::core::marker::Copy for MI_ConstUint8A {} @@ -11248,7 +11248,7 @@ impl ::core::default::Default for MI_ConstUint8Field { #[repr(C)] #[doc = "*Required features: 'Win32_System_Wmi'*"] pub struct MI_Context { - pub ft: *mut MI_ContextFT, + pub ft: *const MI_ContextFT, pub reserved: [isize; 3], } impl ::core::marker::Copy for MI_Context {} @@ -11581,7 +11581,7 @@ pub type MI_Deserializer_ClassObjectNeeded = ::core::option::Option, pub cKeys: u32, - pub aKeys: *mut super::super::System::Registry::HKEY, + pub aKeys: *const super::super::System::Registry::HKEY, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Registry", feature = "Win32_UI_Shell_Common"))] impl ::core::clone::Clone for DEFCONTEXTMENU { @@ -64535,7 +64535,7 @@ pub struct QCMINFO { pub indexMenu: u32, pub idCmdFirst: u32, pub idCmdLast: u32, - pub pIdMap: *mut QCMINFO_IDMAP, + pub pIdMap: *const QCMINFO_IDMAP, } #[cfg(feature = "Win32_UI_WindowsAndMessaging")] impl ::core::marker::Copy for QCMINFO {} @@ -64653,7 +64653,7 @@ pub unsafe fn QISearch(that: *mut ::core::ffi::c_ #[repr(C)] #[doc = "*Required features: 'Win32_UI_Shell'*"] pub struct QITAB { - pub piid: *mut ::windows::core::GUID, + pub piid: *const ::windows::core::GUID, pub dwOffset: u32, } impl ::core::marker::Copy for QITAB {} @@ -73874,7 +73874,7 @@ pub struct SV2CVW2_PARAMS { pub pfs: *mut FOLDERSETTINGS, pub psbOwner: ::core::option::Option, pub prcView: *mut super::super::Foundation::RECT, - pub pvid: *mut ::windows::core::GUID, + pub pvid: *const ::windows::core::GUID, pub hwndView: super::super::Foundation::HWND, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Ole"))] diff --git a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs index 0ab746018f..ed8ee502b4 100644 --- a/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs +++ b/crates/libs/windows/src/Windows/Win32/UI/WindowsAndMessaging/mod.rs @@ -14581,14 +14581,14 @@ pub const UOI_TIMERPROC_EXCEPTION_SUPPRESSION: u32 = 7u32; pub struct UPDATELAYEREDWINDOWINFO { pub cbSize: u32, pub hdcDst: super::super::Graphics::Gdi::HDC, - pub pptDst: *mut super::super::Foundation::POINT, - pub psize: *mut super::super::Foundation::SIZE, + pub pptDst: *const super::super::Foundation::POINT, + pub psize: *const super::super::Foundation::SIZE, pub hdcSrc: super::super::Graphics::Gdi::HDC, - pub pptSrc: *mut super::super::Foundation::POINT, + pub pptSrc: *const super::super::Foundation::POINT, pub crKey: u32, - pub pblend: *mut super::super::Graphics::Gdi::BLENDFUNCTION, + pub pblend: *const super::super::Graphics::Gdi::BLENDFUNCTION, pub dwFlags: UPDATE_LAYERED_WINDOW_FLAGS, - pub prcDirty: *mut super::super::Foundation::RECT, + pub prcDirty: *const super::super::Foundation::RECT, } #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] impl ::core::marker::Copy for UPDATELAYEREDWINDOWINFO {} diff --git a/crates/tests/const_fields/Cargo.toml b/crates/tests/const_fields/Cargo.toml new file mode 100644 index 0000000000..024a3894d4 --- /dev/null +++ b/crates/tests/const_fields/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "test_const_fields" +version = "0.0.0" +authors = ["Microsoft"] +edition = "2018" + +[dependencies.windows] +path = "../../libs/windows" +features = [ + "Win32_Storage_CloudFilters", + "Win32_Foundation", + "Win32_System_CorrelationVector", +] + +[dependencies.windows-sys] +path = "../../libs/sys" +features = [ + "Win32_Storage_CloudFilters", + "Win32_Foundation", + "Win32_System_CorrelationVector", +] diff --git a/crates/tests/const_fields/src/lib.rs b/crates/tests/const_fields/src/lib.rs new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/crates/tests/const_fields/src/lib.rs @@ -0,0 +1 @@ + diff --git a/crates/tests/const_fields/tests/sys.rs b/crates/tests/const_fields/tests/sys.rs new file mode 100644 index 0000000000..8dfe70037b --- /dev/null +++ b/crates/tests/const_fields/tests/sys.rs @@ -0,0 +1,12 @@ +use windows_sys::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVector::*}; + +#[test] +fn can_assign_const() { + unsafe { + let v: CORRELATION_VECTOR = std::mem::zeroed(); + let mut i: CF_OPERATION_INFO = std::mem::zeroed(); + + // Note that the rhs expression does not need to be mutable. + i.CorrelationVector = &v; + } +} diff --git a/crates/tests/const_fields/tests/win.rs b/crates/tests/const_fields/tests/win.rs new file mode 100644 index 0000000000..395cb3e815 --- /dev/null +++ b/crates/tests/const_fields/tests/win.rs @@ -0,0 +1,10 @@ +use windows::{Win32::Storage::CloudFilters::*, Win32::System::CorrelationVector::*}; + +#[test] +fn can_assign_const() { + let v: CORRELATION_VECTOR = Default::default(); + let mut i: CF_OPERATION_INFO = Default::default(); + + // Note that the rhs expression does not need to be mutable. + i.CorrelationVector = &v; +} From 4ae775b2228420b765f922355e76a412fc066e84 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 27 Jan 2022 16:21:38 -0800 Subject: [PATCH 2/3] fmt --- crates/libs/bindgen/src/structs.rs | 2 +- crates/libs/metadata/src/tables/field.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/libs/bindgen/src/structs.rs b/crates/libs/bindgen/src/structs.rs index e7f88c732d..f0745785b3 100644 --- a/crates/libs/bindgen/src/structs.rs +++ b/crates/libs/bindgen/src/structs.rs @@ -52,7 +52,7 @@ fn gen_struct_with_name(def: &TypeDef, struct_name: &str, cfg: &Cfg, gen: &Gen) let mut sig = f.signature(Some(def)); sig.is_const = sig.is_const || f.is_const(); let sig = gen_sig(&sig, gen); - + if f.is_literal() { quote! {} } else if !gen.sys && is_union && !f.is_blittable(Some(def)) { diff --git a/crates/libs/metadata/src/tables/field.rs b/crates/libs/metadata/src/tables/field.rs index 6a66d07e90..ff5dd6b5d5 100644 --- a/crates/libs/metadata/src/tables/field.rs +++ b/crates/libs/metadata/src/tables/field.rs @@ -44,7 +44,7 @@ impl Field { pub fn is_const(&self) -> bool { self.has_attribute("ConstAttribute") } - + fn has_attribute(&self, name: &str) -> bool { self.attributes().any(|attribute| attribute.name() == name) } From e85c674f92db7bb3ccb3447118f357005f9f3778 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 27 Jan 2022 16:24:52 -0800 Subject: [PATCH 3/3] yml --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21874b8930..a31bc74718 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,6 +74,7 @@ jobs: cargo test --target ${{ matrix.target }} -p test_arch && cargo test --target ${{ matrix.target }} -p test_arch_feature && cargo test --target ${{ matrix.target }} -p test_bstr && + cargo test --target ${{ matrix.target }} -p test_const_fields && cargo test --target ${{ matrix.target }} -p test_core && cargo test --target ${{ matrix.target }} -p test_debug && cargo test --target ${{ matrix.target }} -p test_deprecated && @@ -171,6 +172,7 @@ jobs: cargo clippy -p test_arch && cargo clippy -p test_arch_feature && cargo clippy -p test_bstr && + cargo clippy -p test_const_fields && cargo clippy -p test_core && cargo clippy -p test_debug && cargo clippy -p test_deprecated &&