pub struct RenderContext {
pub instance: Instance,
pub adapter: Adapter,
pub device: Arc<Device>,
pub queue: Arc<Queue>,
}Expand description
Contexto principal de GPU administrando la instancia de wgpu, adaptador, dispositivo y cola de comandos.
Fields§
§instance: Instance§adapter: Adapter§device: Arc<Device>§queue: Arc<Queue>Implementations§
Source§impl RenderContext
impl RenderContext
Sourcepub async fn new_async() -> Result<Self, String>
pub async fn new_async() -> Result<Self, String>
Inicializa el contexto de GPU de forma asíncrona seleccionando el backend nativo por hardware (Vulkan, Metal o D3D12).
Sourcepub fn new_blocking() -> Result<Self, String>
pub fn new_blocking() -> Result<Self, String>
Inicialización bloqueante (sincrónica) para integraciones directas en hilos principales.
Auto Trait Implementations§
impl !RefUnwindSafe for RenderContext
impl !UnwindSafe for RenderContext
impl Freeze for RenderContext
impl Send for RenderContext
impl Sync for RenderContext
impl Unpin for RenderContext
impl UnsafeUnpin for RenderContext
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more