#[repr(transparent)]pub struct Surface(_);
Expand description
[docs.microsoft.com] (extends Resource) A dense 2-dimensional region of data, often belonging to a Texture
Methods from Deref<Target = Resource>
pub fn check_compatible_with(
&self,
device: &impl IDirect3DDevice9Ext,
method: &'static str
) -> Result<(), MethodError>
pub fn check_compatible_with(
&self,
device: &impl IDirect3DDevice9Ext,
method: &'static str
) -> Result<(), MethodError>
Check if self
is compatible with device
, returning an Err(...)
if it isn’t.
Trait Implementations
Performs the conversion.
Performs the conversion.
type Raw = IDirect3DSurface9
type Raw = IDirect3DSurface9
The raw underlying winapi type
Take ownership from a raw winapi type, panicing if raw
is null. Read more
Auto Trait Implementations
impl RefUnwindSafe for Surface
impl UnwindSafe for Surface
Blanket Implementations
Mutably borrows from an owned value. Read more