#[repr(C)]pub struct VeloxHostAdapterConfig {
pub has_luid: u8,
pub adapter_luid: [u8; 8],
pub has_uuid: u8,
pub device_uuid: [u8; 16],
pub prefer_gpu: u8,
pub transparent_bg: u8,
}Expand description
宿主传入的物理显卡对齐与后端初始化配置(#[repr(C)])。
Fields§
§has_luid: u81 表示 adapter_luid 有效(Windows DX12 同卡对齐)。
adapter_luid: [u8; 8]Windows DXGI 8 字节 AdapterLuid。
has_uuid: u81 表示 device_uuid 有效(Linux/Android Vulkan 同卡对齐)。
device_uuid: [u8; 16]Vulkan 16 字节 deviceUUID。
prefer_gpu: u81 优先启用硬件 GPU 零拷贝导出,0 强制使用内置软件光栅器。
transparent_bg: u81 启用预乘 Alpha 全透明背景(用于悬浮镂空 HUD 合成),0 为不透明背景。
Trait Implementations§
Source§impl Clone for VeloxHostAdapterConfig
impl Clone for VeloxHostAdapterConfig
impl Copy for VeloxHostAdapterConfig
Source§impl Debug for VeloxHostAdapterConfig
impl Debug for VeloxHostAdapterConfig
Auto Trait Implementations§
impl Forget for VeloxHostAdapterConfig
impl Freeze for VeloxHostAdapterConfig
impl Move for VeloxHostAdapterConfig
impl RefUnwindSafe for VeloxHostAdapterConfig
impl Send for VeloxHostAdapterConfig
impl Sync for VeloxHostAdapterConfig
impl Unpin for VeloxHostAdapterConfig
impl UnsafeUnpin for VeloxHostAdapterConfig
impl UnwindSafe for VeloxHostAdapterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。