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