summaryrefslogtreecommitdiffstats
path: root/vendor/windows-sys/src/Windows/AI
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/windows-sys/src/Windows/AI')
-rw-r--r--vendor/windows-sys/src/Windows/AI/MachineLearning/Preview/mod.rs83
-rw-r--r--vendor/windows-sys/src/Windows/AI/MachineLearning/mod.rs102
-rw-r--r--vendor/windows-sys/src/Windows/AI/mod.rs2
3 files changed, 187 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/AI/MachineLearning/Preview/mod.rs b/vendor/windows-sys/src/Windows/AI/MachineLearning/Preview/mod.rs
new file mode 100644
index 000000000..30b05902a
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/AI/MachineLearning/Preview/mod.rs
@@ -0,0 +1,83 @@
+#[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"]
+#[cfg(feature = "deprecated")]
+#[repr(transparent)]
+pub struct FeatureElementKindPreview(pub i32);
+#[cfg(feature = "deprecated")]
+impl FeatureElementKindPreview {
+ pub const Undefined: Self = Self(0i32);
+ pub const Float: Self = Self(1i32);
+ pub const UInt8: Self = Self(2i32);
+ pub const Int8: Self = Self(3i32);
+ pub const UInt16: Self = Self(4i32);
+ pub const Int16: Self = Self(5i32);
+ pub const Int32: Self = Self(6i32);
+ pub const Int64: Self = Self(7i32);
+ pub const String: Self = Self(8i32);
+ pub const Boolean: Self = Self(9i32);
+ pub const Float16: Self = Self(10i32);
+ pub const Double: Self = Self(11i32);
+ pub const UInt32: Self = Self(12i32);
+ pub const UInt64: Self = Self(13i32);
+ pub const Complex64: Self = Self(14i32);
+ pub const Complex128: Self = Self(15i32);
+}
+#[cfg(feature = "deprecated")]
+impl ::core::marker::Copy for FeatureElementKindPreview {}
+#[cfg(feature = "deprecated")]
+impl ::core::clone::Clone for FeatureElementKindPreview {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type ILearningModelVariableDescriptorPreview = *mut ::core::ffi::c_void;
+pub type ImageVariableDescriptorPreview = *mut ::core::ffi::c_void;
+pub type InferencingOptionsPreview = *mut ::core::ffi::c_void;
+pub type LearningModelBindingPreview = *mut ::core::ffi::c_void;
+pub type LearningModelDescriptionPreview = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"]
+#[cfg(feature = "deprecated")]
+#[repr(transparent)]
+pub struct LearningModelDeviceKindPreview(pub i32);
+#[cfg(feature = "deprecated")]
+impl LearningModelDeviceKindPreview {
+ pub const LearningDeviceAny: Self = Self(0i32);
+ pub const LearningDeviceCpu: Self = Self(1i32);
+ pub const LearningDeviceGpu: Self = Self(2i32);
+ pub const LearningDeviceNpu: Self = Self(3i32);
+ pub const LearningDeviceDsp: Self = Self(4i32);
+ pub const LearningDeviceFpga: Self = Self(5i32);
+}
+#[cfg(feature = "deprecated")]
+impl ::core::marker::Copy for LearningModelDeviceKindPreview {}
+#[cfg(feature = "deprecated")]
+impl ::core::clone::Clone for LearningModelDeviceKindPreview {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type LearningModelEvaluationResultPreview = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"AI_MachineLearning_Preview\"`, `\"deprecated\"`*"]
+#[cfg(feature = "deprecated")]
+#[repr(transparent)]
+pub struct LearningModelFeatureKindPreview(pub i32);
+#[cfg(feature = "deprecated")]
+impl LearningModelFeatureKindPreview {
+ pub const Undefined: Self = Self(0i32);
+ pub const Tensor: Self = Self(1i32);
+ pub const Sequence: Self = Self(2i32);
+ pub const Map: Self = Self(3i32);
+ pub const Image: Self = Self(4i32);
+}
+#[cfg(feature = "deprecated")]
+impl ::core::marker::Copy for LearningModelFeatureKindPreview {}
+#[cfg(feature = "deprecated")]
+impl ::core::clone::Clone for LearningModelFeatureKindPreview {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type LearningModelPreview = *mut ::core::ffi::c_void;
+pub type LearningModelVariableDescriptorPreview = *mut ::core::ffi::c_void;
+pub type MapVariableDescriptorPreview = *mut ::core::ffi::c_void;
+pub type SequenceVariableDescriptorPreview = *mut ::core::ffi::c_void;
+pub type TensorVariableDescriptorPreview = *mut ::core::ffi::c_void;
diff --git a/vendor/windows-sys/src/Windows/AI/MachineLearning/mod.rs b/vendor/windows-sys/src/Windows/AI/MachineLearning/mod.rs
new file mode 100644
index 000000000..5a16c1792
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/AI/MachineLearning/mod.rs
@@ -0,0 +1,102 @@
+#[cfg(feature = "AI_MachineLearning_Preview")]
+pub mod Preview;
+pub type ILearningModelFeatureDescriptor = *mut ::core::ffi::c_void;
+pub type ILearningModelFeatureValue = *mut ::core::ffi::c_void;
+pub type ILearningModelOperatorProvider = *mut ::core::ffi::c_void;
+pub type ITensor = *mut ::core::ffi::c_void;
+pub type ImageFeatureDescriptor = *mut ::core::ffi::c_void;
+pub type ImageFeatureValue = *mut ::core::ffi::c_void;
+pub type LearningModel = *mut ::core::ffi::c_void;
+pub type LearningModelBinding = *mut ::core::ffi::c_void;
+pub type LearningModelDevice = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"AI_MachineLearning\"`*"]
+#[repr(transparent)]
+pub struct LearningModelDeviceKind(pub i32);
+impl LearningModelDeviceKind {
+ pub const Default: Self = Self(0i32);
+ pub const Cpu: Self = Self(1i32);
+ pub const DirectX: Self = Self(2i32);
+ pub const DirectXHighPerformance: Self = Self(3i32);
+ pub const DirectXMinPower: Self = Self(4i32);
+}
+impl ::core::marker::Copy for LearningModelDeviceKind {}
+impl ::core::clone::Clone for LearningModelDeviceKind {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type LearningModelEvaluationResult = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"AI_MachineLearning\"`*"]
+#[repr(transparent)]
+pub struct LearningModelFeatureKind(pub i32);
+impl LearningModelFeatureKind {
+ pub const Tensor: Self = Self(0i32);
+ pub const Sequence: Self = Self(1i32);
+ pub const Map: Self = Self(2i32);
+ pub const Image: Self = Self(3i32);
+}
+impl ::core::marker::Copy for LearningModelFeatureKind {}
+impl ::core::clone::Clone for LearningModelFeatureKind {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+#[doc = "*Required features: `\"AI_MachineLearning\"`*"]
+#[repr(transparent)]
+pub struct LearningModelPixelRange(pub i32);
+impl LearningModelPixelRange {
+ pub const ZeroTo255: Self = Self(0i32);
+ pub const ZeroToOne: Self = Self(1i32);
+ pub const MinusOneToOne: Self = Self(2i32);
+}
+impl ::core::marker::Copy for LearningModelPixelRange {}
+impl ::core::clone::Clone for LearningModelPixelRange {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type LearningModelSession = *mut ::core::ffi::c_void;
+pub type LearningModelSessionOptions = *mut ::core::ffi::c_void;
+pub type MapFeatureDescriptor = *mut ::core::ffi::c_void;
+pub type SequenceFeatureDescriptor = *mut ::core::ffi::c_void;
+pub type TensorBoolean = *mut ::core::ffi::c_void;
+pub type TensorDouble = *mut ::core::ffi::c_void;
+pub type TensorFeatureDescriptor = *mut ::core::ffi::c_void;
+pub type TensorFloat = *mut ::core::ffi::c_void;
+pub type TensorFloat16Bit = *mut ::core::ffi::c_void;
+pub type TensorInt16Bit = *mut ::core::ffi::c_void;
+pub type TensorInt32Bit = *mut ::core::ffi::c_void;
+pub type TensorInt64Bit = *mut ::core::ffi::c_void;
+pub type TensorInt8Bit = *mut ::core::ffi::c_void;
+#[doc = "*Required features: `\"AI_MachineLearning\"`*"]
+#[repr(transparent)]
+pub struct TensorKind(pub i32);
+impl TensorKind {
+ pub const Undefined: Self = Self(0i32);
+ pub const Float: Self = Self(1i32);
+ pub const UInt8: Self = Self(2i32);
+ pub const Int8: Self = Self(3i32);
+ pub const UInt16: Self = Self(4i32);
+ pub const Int16: Self = Self(5i32);
+ pub const Int32: Self = Self(6i32);
+ pub const Int64: Self = Self(7i32);
+ pub const String: Self = Self(8i32);
+ pub const Boolean: Self = Self(9i32);
+ pub const Float16: Self = Self(10i32);
+ pub const Double: Self = Self(11i32);
+ pub const UInt32: Self = Self(12i32);
+ pub const UInt64: Self = Self(13i32);
+ pub const Complex64: Self = Self(14i32);
+ pub const Complex128: Self = Self(15i32);
+}
+impl ::core::marker::Copy for TensorKind {}
+impl ::core::clone::Clone for TensorKind {
+ fn clone(&self) -> Self {
+ *self
+ }
+}
+pub type TensorString = *mut ::core::ffi::c_void;
+pub type TensorUInt16Bit = *mut ::core::ffi::c_void;
+pub type TensorUInt32Bit = *mut ::core::ffi::c_void;
+pub type TensorUInt64Bit = *mut ::core::ffi::c_void;
+pub type TensorUInt8Bit = *mut ::core::ffi::c_void;
diff --git a/vendor/windows-sys/src/Windows/AI/mod.rs b/vendor/windows-sys/src/Windows/AI/mod.rs
new file mode 100644
index 000000000..7724efe41
--- /dev/null
+++ b/vendor/windows-sys/src/Windows/AI/mod.rs
@@ -0,0 +1,2 @@
+#[cfg(feature = "AI_MachineLearning")]
+pub mod MachineLearning;