Trait windows::Win32::Graphics::Direct3D9::IDirect3D9_Impl
pub trait IDirect3D9_Impl: Sized {
Show 14 methods
// Required methods
fn RegisterSoftwareDevice(
&self,
pinitializefunction: *mut c_void,
) -> Result<()>;
fn GetAdapterCount(&self) -> u32;
fn GetAdapterIdentifier(
&self,
adapter: u32,
flags: u32,
pidentifier: *mut D3DADAPTER_IDENTIFIER9,
) -> Result<()>;
fn GetAdapterModeCount(&self, adapter: u32, format: D3DFORMAT) -> u32;
fn EnumAdapterModes(
&self,
adapter: u32,
format: D3DFORMAT,
mode: u32,
pmode: *mut D3DDISPLAYMODE,
) -> Result<()>;
fn GetAdapterDisplayMode(
&self,
adapter: u32,
pmode: *mut D3DDISPLAYMODE,
) -> Result<()>;
fn CheckDeviceType(
&self,
adapter: u32,
devtype: D3DDEVTYPE,
adapterformat: D3DFORMAT,
backbufferformat: D3DFORMAT,
bwindowed: BOOL,
) -> Result<()>;
fn CheckDeviceFormat(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
adapterformat: D3DFORMAT,
usage: u32,
rtype: D3DRESOURCETYPE,
checkformat: D3DFORMAT,
) -> Result<()>;
fn CheckDeviceMultiSampleType(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
surfaceformat: D3DFORMAT,
windowed: BOOL,
multisampletype: D3DMULTISAMPLE_TYPE,
pqualitylevels: *mut u32,
) -> Result<()>;
fn CheckDepthStencilMatch(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
adapterformat: D3DFORMAT,
rendertargetformat: D3DFORMAT,
depthstencilformat: D3DFORMAT,
) -> Result<()>;
fn CheckDeviceFormatConversion(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
sourceformat: D3DFORMAT,
targetformat: D3DFORMAT,
) -> Result<()>;
fn GetDeviceCaps(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
pcaps: *mut D3DCAPS9,
) -> Result<()>;
fn GetAdapterMonitor(&self, adapter: u32) -> HMONITOR;
fn CreateDevice(
&self,
adapter: u32,
devicetype: D3DDEVTYPE,
hfocuswindow: HWND,
behaviorflags: u32,
ppresentationparameters: *mut D3DPRESENT_PARAMETERS,
ppreturneddeviceinterface: *mut Option<IDirect3DDevice9>,
) -> Result<()>;
}
Required Methods§
fn RegisterSoftwareDevice(&self, pinitializefunction: *mut c_void) -> Result<()>
fn GetAdapterCount(&self) -> u32
fn GetAdapterIdentifier( &self, adapter: u32, flags: u32, pidentifier: *mut D3DADAPTER_IDENTIFIER9, ) -> Result<()>
fn GetAdapterModeCount(&self, adapter: u32, format: D3DFORMAT) -> u32
fn EnumAdapterModes( &self, adapter: u32, format: D3DFORMAT, mode: u32, pmode: *mut D3DDISPLAYMODE, ) -> Result<()>
fn GetAdapterDisplayMode( &self, adapter: u32, pmode: *mut D3DDISPLAYMODE, ) -> Result<()>
fn CheckDeviceType( &self, adapter: u32, devtype: D3DDEVTYPE, adapterformat: D3DFORMAT, backbufferformat: D3DFORMAT, bwindowed: BOOL, ) -> Result<()>
fn CheckDeviceFormat( &self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, usage: u32, rtype: D3DRESOURCETYPE, checkformat: D3DFORMAT, ) -> Result<()>
fn CheckDeviceMultiSampleType( &self, adapter: u32, devicetype: D3DDEVTYPE, surfaceformat: D3DFORMAT, windowed: BOOL, multisampletype: D3DMULTISAMPLE_TYPE, pqualitylevels: *mut u32, ) -> Result<()>
fn CheckDepthStencilMatch( &self, adapter: u32, devicetype: D3DDEVTYPE, adapterformat: D3DFORMAT, rendertargetformat: D3DFORMAT, depthstencilformat: D3DFORMAT, ) -> Result<()>
fn CheckDeviceFormatConversion( &self, adapter: u32, devicetype: D3DDEVTYPE, sourceformat: D3DFORMAT, targetformat: D3DFORMAT, ) -> Result<()>
fn GetDeviceCaps( &self, adapter: u32, devicetype: D3DDEVTYPE, pcaps: *mut D3DCAPS9, ) -> Result<()>
fn GetAdapterMonitor(&self, adapter: u32) -> HMONITOR
fn CreateDevice( &self, adapter: u32, devicetype: D3DDEVTYPE, hfocuswindow: HWND, behaviorflags: u32, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ppreturneddeviceinterface: *mut Option<IDirect3DDevice9>, ) -> Result<()>
Object Safety§
This trait is not object safe.