]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Graphics/DirectX/Direct3D11/mod.rs
7a93a1b8cf69930381fc1db33f3792660e39741b
[rustc.git] / vendor / windows-sys / src / Windows / Graphics / DirectX / Direct3D11 / mod.rs
1 #[doc = "*Required features: `\"Graphics_DirectX_Direct3D11\"`*"]
2 #[repr(transparent)]
3 pub struct Direct3DBindings(pub u32);
4 impl Direct3DBindings {
5 pub const VertexBuffer: Self = Self(1u32);
6 pub const IndexBuffer: Self = Self(2u32);
7 pub const ConstantBuffer: Self = Self(4u32);
8 pub const ShaderResource: Self = Self(8u32);
9 pub const StreamOutput: Self = Self(16u32);
10 pub const RenderTarget: Self = Self(32u32);
11 pub const DepthStencil: Self = Self(64u32);
12 pub const UnorderedAccess: Self = Self(128u32);
13 pub const Decoder: Self = Self(512u32);
14 pub const VideoEncoder: Self = Self(1024u32);
15 }
16 impl ::core::marker::Copy for Direct3DBindings {}
17 impl ::core::clone::Clone for Direct3DBindings {
18 fn clone(&self) -> Self {
19 *self
20 }
21 }
22 #[repr(C)]
23 #[doc = "*Required features: `\"Graphics_DirectX_Direct3D11\"`*"]
24 pub struct Direct3DMultisampleDescription {
25 pub Count: i32,
26 pub Quality: i32,
27 }
28 impl ::core::marker::Copy for Direct3DMultisampleDescription {}
29 impl ::core::clone::Clone for Direct3DMultisampleDescription {
30 fn clone(&self) -> Self {
31 *self
32 }
33 }
34 #[repr(C)]
35 #[doc = "*Required features: `\"Graphics_DirectX_Direct3D11\"`*"]
36 pub struct Direct3DSurfaceDescription {
37 pub Width: i32,
38 pub Height: i32,
39 pub Format: super::DirectXPixelFormat,
40 pub MultisampleDescription: Direct3DMultisampleDescription,
41 }
42 impl ::core::marker::Copy for Direct3DSurfaceDescription {}
43 impl ::core::clone::Clone for Direct3DSurfaceDescription {
44 fn clone(&self) -> Self {
45 *self
46 }
47 }
48 #[doc = "*Required features: `\"Graphics_DirectX_Direct3D11\"`*"]
49 #[repr(transparent)]
50 pub struct Direct3DUsage(pub i32);
51 impl Direct3DUsage {
52 pub const Default: Self = Self(0i32);
53 pub const Immutable: Self = Self(1i32);
54 pub const Dynamic: Self = Self(2i32);
55 pub const Staging: Self = Self(3i32);
56 }
57 impl ::core::marker::Copy for Direct3DUsage {}
58 impl ::core::clone::Clone for Direct3DUsage {
59 fn clone(&self) -> Self {
60 *self
61 }
62 }
63 pub type IDirect3DDevice = *mut ::core::ffi::c_void;
64 pub type IDirect3DSurface = *mut ::core::ffi::c_void;