mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 16:31:11 +01:00
21 lines
676 B
Rust
21 lines
676 B
Rust
pub use wgpu_core_remote_types::id::*;
|
|
|
|
/// Reference wgpu objects via numeric IDs assigned by [`wgpu_core_remote_types::identity::IdentityManager`].
|
|
#[derive(Clone, Debug)]
|
|
pub struct IdReferences;
|
|
|
|
impl wgpu_core::command::ReferenceType for IdReferences {
|
|
type Buffer = BufferId;
|
|
type Surface = SurfaceId;
|
|
type Texture = TextureId;
|
|
type TextureView = TextureViewId;
|
|
type ExternalTexture = ExternalTextureId;
|
|
type QuerySet = QuerySetId;
|
|
type BindGroup = BindGroupId;
|
|
type RenderPipeline = RenderPipelineId;
|
|
type RenderBundle = RenderBundleId;
|
|
type ComputePipeline = ComputePipelineId;
|
|
type Blas = BlasId;
|
|
type Tlas = TlasId;
|
|
}
|