]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/AI/MachineLearning/mod.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / AI / MachineLearning / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[cfg(feature = "AI_MachineLearning_Preview")]
3 pub mod Preview;
4 pub type ILearningModelFeatureDescriptor = *mut ::core::ffi::c_void;
5 pub type ILearningModelFeatureValue = *mut ::core::ffi::c_void;
6 pub type ILearningModelOperatorProvider = *mut ::core::ffi::c_void;
7 pub type ITensor = *mut ::core::ffi::c_void;
8 pub type ImageFeatureDescriptor = *mut ::core::ffi::c_void;
9 pub type ImageFeatureValue = *mut ::core::ffi::c_void;
10 pub type LearningModel = *mut ::core::ffi::c_void;
11 pub type LearningModelBinding = *mut ::core::ffi::c_void;
12 pub type LearningModelDevice = *mut ::core::ffi::c_void;
13 #[doc = "*Required features: `\"AI_MachineLearning\"`*"]
14 #[repr(transparent)]
15 pub struct LearningModelDeviceKind(pub i32);
16 impl LearningModelDeviceKind {
17 pub const Default: Self = Self(0i32);
18 pub const Cpu: Self = Self(1i32);
19 pub const DirectX: Self = Self(2i32);
20 pub const DirectXHighPerformance: Self = Self(3i32);
21 pub const DirectXMinPower: Self = Self(4i32);
22 }
23 impl ::core::marker::Copy for LearningModelDeviceKind {}
24 impl ::core::clone::Clone for LearningModelDeviceKind {
25 fn clone(&self) -> Self {
26 *self
27 }
28 }
29 pub type LearningModelEvaluationResult = *mut ::core::ffi::c_void;
30 #[doc = "*Required features: `\"AI_MachineLearning\"`*"]
31 #[repr(transparent)]
32 pub struct LearningModelFeatureKind(pub i32);
33 impl LearningModelFeatureKind {
34 pub const Tensor: Self = Self(0i32);
35 pub const Sequence: Self = Self(1i32);
36 pub const Map: Self = Self(2i32);
37 pub const Image: Self = Self(3i32);
38 }
39 impl ::core::marker::Copy for LearningModelFeatureKind {}
40 impl ::core::clone::Clone for LearningModelFeatureKind {
41 fn clone(&self) -> Self {
42 *self
43 }
44 }
45 #[doc = "*Required features: `\"AI_MachineLearning\"`*"]
46 #[repr(transparent)]
47 pub struct LearningModelPixelRange(pub i32);
48 impl LearningModelPixelRange {
49 pub const ZeroTo255: Self = Self(0i32);
50 pub const ZeroToOne: Self = Self(1i32);
51 pub const MinusOneToOne: Self = Self(2i32);
52 }
53 impl ::core::marker::Copy for LearningModelPixelRange {}
54 impl ::core::clone::Clone for LearningModelPixelRange {
55 fn clone(&self) -> Self {
56 *self
57 }
58 }
59 pub type LearningModelSession = *mut ::core::ffi::c_void;
60 pub type LearningModelSessionOptions = *mut ::core::ffi::c_void;
61 pub type MapFeatureDescriptor = *mut ::core::ffi::c_void;
62 pub type SequenceFeatureDescriptor = *mut ::core::ffi::c_void;
63 pub type TensorBoolean = *mut ::core::ffi::c_void;
64 pub type TensorDouble = *mut ::core::ffi::c_void;
65 pub type TensorFeatureDescriptor = *mut ::core::ffi::c_void;
66 pub type TensorFloat = *mut ::core::ffi::c_void;
67 pub type TensorFloat16Bit = *mut ::core::ffi::c_void;
68 pub type TensorInt16Bit = *mut ::core::ffi::c_void;
69 pub type TensorInt32Bit = *mut ::core::ffi::c_void;
70 pub type TensorInt64Bit = *mut ::core::ffi::c_void;
71 pub type TensorInt8Bit = *mut ::core::ffi::c_void;
72 #[doc = "*Required features: `\"AI_MachineLearning\"`*"]
73 #[repr(transparent)]
74 pub struct TensorKind(pub i32);
75 impl TensorKind {
76 pub const Undefined: Self = Self(0i32);
77 pub const Float: Self = Self(1i32);
78 pub const UInt8: Self = Self(2i32);
79 pub const Int8: Self = Self(3i32);
80 pub const UInt16: Self = Self(4i32);
81 pub const Int16: Self = Self(5i32);
82 pub const Int32: Self = Self(6i32);
83 pub const Int64: Self = Self(7i32);
84 pub const String: Self = Self(8i32);
85 pub const Boolean: Self = Self(9i32);
86 pub const Float16: Self = Self(10i32);
87 pub const Double: Self = Self(11i32);
88 pub const UInt32: Self = Self(12i32);
89 pub const UInt64: Self = Self(13i32);
90 pub const Complex64: Self = Self(14i32);
91 pub const Complex128: Self = Self(15i32);
92 }
93 impl ::core::marker::Copy for TensorKind {}
94 impl ::core::clone::Clone for TensorKind {
95 fn clone(&self) -> Self {
96 *self
97 }
98 }
99 pub type TensorString = *mut ::core::ffi::c_void;
100 pub type TensorUInt16Bit = *mut ::core::ffi::c_void;
101 pub type TensorUInt32Bit = *mut ::core::ffi::c_void;
102 pub type TensorUInt64Bit = *mut ::core::ffi::c_void;
103 pub type TensorUInt8Bit = *mut ::core::ffi::c_void;