pub trait NativeSurfaceWindow: PlatformWindow {
// Required method
fn present_surface(
&mut self,
pixels: &[u8],
width: u32,
height: u32,
) -> Result<(), PresentError>;
}Expand description
Contract for platform windows supporting direct software/swapchain pixel blitting.
Required Methods§
Sourcefn present_surface(
&mut self,
pixels: &[u8],
width: u32,
height: u32,
) -> Result<(), PresentError>
fn present_surface( &mut self, pixels: &[u8], width: u32, height: u32, ) -> Result<(), PresentError>
Blits a 32-bit BGRA uncompressed buffer to the window client area.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".