1 | use super::{ID3D12CommandQueue, ID3D12Device, IDXGIAdapter1, MemoryAllocator}; |
---|---|
2 | use crate::gpu; |
3 | use skia_bindings::GrD3DBackendContext; |
4 | |
5 | #[repr(C)] |
6 | #[derive(Clone, Debug)] |
7 | pub struct BackendContext { |
8 | pub adapter: IDXGIAdapter1, |
9 | pub device: ID3D12Device, |
10 | pub queue: ID3D12CommandQueue, |
11 | pub memory_allocator: Option<MemoryAllocator>, |
12 | pub protected_context: gpu::Protected, |
13 | } |
14 | |
15 | native_transmutable!(GrD3DBackendContext, BackendContext, backend_context_layout); |
16 |