pub struct RenderDevice {
pub context: GpuContext,
/* private fields */
}Fields§
§context: GpuContextImplementations§
Source§impl RenderDevice
impl RenderDevice
pub fn new( context: GpuContext, surface_format: TextureFormat, size: (u32, u32), ) -> Self
pub async fn recover(&mut self) -> Result<()>
pub fn resize(&mut self, new_size: (u32, u32))
Sourcepub fn scene_view(&self) -> Option<&TextureView>
pub fn scene_view(&self) -> Option<&TextureView>
Scene-pass target priority: this, then the swapchain view.
Sourcepub fn target_format(&self) -> TextureFormat
pub fn target_format(&self) -> TextureFormat
Pipeline constructors take this, not the surface format.
pub fn composite_to_swap( &self, encoder: &mut CommandEncoder, swap_view: &TextureView, )
Methods from Deref<Target = GpuContext>§
pub fn take_device_loss(&self) -> Option<DeviceLoss>
pub fn take_uncaptured_error(&self) -> Option<UncapturedGpuError>
Trait Implementations§
Source§impl Deref for RenderDevice
impl Deref for RenderDevice
Source§type Target = GpuContext
type Target = GpuContext
The resulting type after dereferencing.
Source§fn deref(&self) -> &GpuContext
fn deref(&self) -> &GpuContext
Dereferences the value.
Auto Trait Implementations§
impl Freeze for RenderDevice
impl !RefUnwindSafe for RenderDevice
impl Send for RenderDevice
impl Sync for RenderDevice
impl Unpin for RenderDevice
impl UnsafeUnpin for RenderDevice
impl !UnwindSafe for RenderDevice
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