skia-safe 0.97.0

Safe Skia Bindings for Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use skia_bindings::GrD3DBackendContext;

use crate::gpu::{
    self,
    d3d::{ID3D12CommandQueue, ID3D12Device, IDXGIAdapter1, MemoryAllocator},
};

#[repr(C)]
#[derive(Clone, Debug)]
pub struct BackendContext {
    pub adapter: IDXGIAdapter1,
    pub device: ID3D12Device,
    pub queue: ID3D12CommandQueue,
    pub memory_allocator: Option<MemoryAllocator>,
    pub protected_context: gpu::Protected,
}

native_transmutable!(GrD3DBackendContext, BackendContext);