Struct script::dom::identityhub::Identities
source · pub struct Identities {
vk_hub: IdentityHub,
gl_hub: IdentityHub,
dummy_hub: IdentityHub,
}
Fields§
§vk_hub: IdentityHub
§gl_hub: IdentityHub
§dummy_hub: IdentityHub
Implementations§
source§impl Identities
impl Identities
pub fn new() -> Self
fn select(&self, backend: Backend) -> &IdentityHub
fn hubs(&self) -> Vec<(&IdentityHub, Backend)>
pub fn create_device_id(&self, backend: Backend) -> DeviceId
pub fn free_device_id(&self, id: DeviceId)
pub fn create_adapter_ids(&self) -> SmallVec<[AdapterId; 4]>
pub fn free_adapter_id(&self, id: AdapterId)
pub fn create_buffer_id(&self, backend: Backend) -> BufferId
pub fn free_buffer_id(&self, id: BufferId)
pub fn create_bind_group_id(&self, backend: Backend) -> BindGroupId
pub fn free_bind_group_id(&self, id: BindGroupId)
pub fn create_bind_group_layout_id(&self, backend: Backend) -> BindGroupLayoutId
pub fn free_bind_group_layout_id(&self, id: BindGroupLayoutId)
pub fn create_compute_pipeline_id(&self, backend: Backend) -> ComputePipelineId
pub fn free_compute_pipeline_id(&self, id: ComputePipelineId)
pub fn create_pipeline_layout_id(&self, backend: Backend) -> PipelineLayoutId
pub fn free_pipeline_layout_id(&self, id: PipelineLayoutId)
pub fn create_shader_module_id(&self, backend: Backend) -> ShaderModuleId
pub fn free_shader_module_id(&self, id: ShaderModuleId)
pub fn create_command_encoder_id(&self, backend: Backend) -> CommandEncoderId
pub fn free_command_buffer_id(&self, id: CommandEncoderId)
pub fn create_sampler_id(&self, backend: Backend) -> SamplerId
pub fn free_sampler_id(&self, id: SamplerId)
pub fn create_render_pipeline_id(&self, backend: Backend) -> RenderPipelineId
pub fn free_render_pipeline_id(&self, id: RenderPipelineId)
pub fn create_texture_id(&self, backend: Backend) -> TextureId
pub fn free_texture_id(&self, id: TextureId)
pub fn create_texture_view_id(&self, backend: Backend) -> TextureViewId
pub fn free_texture_view_id(&self, id: TextureViewId)
pub fn create_render_bundle_id(&self, backend: Backend) -> RenderBundleId
pub fn free_render_bundle_id(&self, id: RenderBundleId)
pub fn create_compute_pass_id(&self, backend: Backend) -> ComputePassId
pub fn free_compute_pass_id(&self, id: ComputePassId)
pub fn create_render_pass_id(&self, backend: Backend) -> RenderPassId
pub fn free_render_pass_id(&self, id: RenderPassId)
Trait Implementations§
source§impl Debug for Identities
impl Debug for Identities
Auto Trait Implementations§
impl !Freeze for Identities
impl !RefUnwindSafe for Identities
impl Send for Identities
impl Sync for Identities
impl Unpin for Identities
impl UnwindSafe for Identities
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.