1use super::{ID3D12CommandQueue, ID3D12Device, IDXGIAdapter1, MemoryAllocator};
2use crate::gpu;
3use skia_bindings::GrD3DBackendContext;
4
5#[repr(C)]
6#[derive(Clone, Debug)]
7pub 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
15native_transmutable!(GrD3DBackendContext, BackendContext, backend_context_layout);
16