Trait thindx::d3d9::IDirect3DStateBlock9Ext
source · [−]pub trait IDirect3DStateBlock9Ext: AsSafe<IDirect3DStateBlock9> {
fn apply(&self) -> Result<(), MethodError> { ... }
fn capture(&self) -> Result<(), MethodError> { ... }
fn get_device(&self) -> Result<Device, MethodError> { ... }
}
Expand description
[docs.microsoft.com] IDirect3DStateBlock9 extension methods
Methods
Provided methods
fn apply(&self) -> Result<(), MethodError>
fn apply(&self) -> Result<(), MethodError>
[docs.microsoft.com] IDirect3DStateBlock9::Apply
Apply the state block to the current device state.
Returns
- D3DERR::INVALIDCALL
- Ok(
()
)
fn capture(&self) -> Result<(), MethodError>
fn capture(&self) -> Result<(), MethodError>
[docs.microsoft.com] IDirect3DStateBlock9::Capture
Capture the current value of states that are included in a stateblock.
Returns
- D3DERR::INVALIDCALL
- Ok(
()
)
fn get_device(&self) -> Result<Device, MethodError>
fn get_device(&self) -> Result<Device, MethodError>
[docs.microsoft.com] IDirect3DStateBlock9::GetDevice
Gets the device.
Returns
- D3DERR::INVALIDCALL (Pure device?)
- Ok(Device)