pub struct D3D12FrameInfo {
pub resource: u64,
pub fence: u64,
pub fence_value: u64,
pub device: u64,
pub dxgi_format: u32,
pub width: i32,
pub height: i32,
pub software_format: i32,
pub surface_width: u32,
pub surface_height: u32,
}Expand description
D3D12 resource and decode fence retained by one hardware frame.
Defined on every target, with its conversion from the shim’s record, so that a change to that record’s fields fails to compile everywhere, not only on Windows, where the shim and its callers are built.
Fields§
§resource: u64Borrowed ID3D12Resource pointer.
fence: u64Borrowed decode ID3D12Fence pointer.
fence_value: u64Fence value signaled after decode completes.
device: u64ID3D12Device identity that allocated the resource.
dxgi_format: u32Native DXGI_FORMAT value.
width: i32The frame’s width: its picture with the right crop applied and the left crop still on the frame.
height: i32The frame’s height, with the bottom crop applied and the top crop still on the frame.
software_format: i32Software pixel format represented by the hardware frame.
surface_width: u32Width of the texture the frame was decoded into.
surface_height: u32Height of the texture the frame was decoded into.