summaryrefslogtreecommitdiffstats
path: root/third_party/rust/wgpu-core/src/hub.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:43:14 +0000
commit8dd16259287f58f9273002717ec4d27e97127719 (patch)
tree3863e62a53829a84037444beab3abd4ed9dfc7d0 /third_party/rust/wgpu-core/src/hub.rs
parentReleasing progress-linux version 126.0.1-1~progress7.99u1. (diff)
downloadfirefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz
firefox-8dd16259287f58f9273002717ec4d27e97127719.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/wgpu-core/src/hub.rs')
-rw-r--r--third_party/rust/wgpu-core/src/hub.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/third_party/rust/wgpu-core/src/hub.rs b/third_party/rust/wgpu-core/src/hub.rs
index 0f4589c8b3..eb57411d98 100644
--- a/third_party/rust/wgpu-core/src/hub.rs
+++ b/third_party/rust/wgpu-core/src/hub.rs
@@ -169,23 +169,23 @@ impl HubReport {
///
/// [`A::hub(global)`]: HalApi::hub
pub struct Hub<A: HalApi> {
- pub adapters: Registry<Adapter<A>>,
- pub devices: Registry<Device<A>>,
- pub queues: Registry<Queue<A>>,
- pub pipeline_layouts: Registry<PipelineLayout<A>>,
- pub shader_modules: Registry<ShaderModule<A>>,
- pub bind_group_layouts: Registry<BindGroupLayout<A>>,
- pub bind_groups: Registry<BindGroup<A>>,
- pub command_buffers: Registry<CommandBuffer<A>>,
- pub render_bundles: Registry<RenderBundle<A>>,
- pub render_pipelines: Registry<RenderPipeline<A>>,
- pub compute_pipelines: Registry<ComputePipeline<A>>,
- pub query_sets: Registry<QuerySet<A>>,
- pub buffers: Registry<Buffer<A>>,
- pub staging_buffers: Registry<StagingBuffer<A>>,
- pub textures: Registry<Texture<A>>,
- pub texture_views: Registry<TextureView<A>>,
- pub samplers: Registry<Sampler<A>>,
+ pub(crate) adapters: Registry<Adapter<A>>,
+ pub(crate) devices: Registry<Device<A>>,
+ pub(crate) queues: Registry<Queue<A>>,
+ pub(crate) pipeline_layouts: Registry<PipelineLayout<A>>,
+ pub(crate) shader_modules: Registry<ShaderModule<A>>,
+ pub(crate) bind_group_layouts: Registry<BindGroupLayout<A>>,
+ pub(crate) bind_groups: Registry<BindGroup<A>>,
+ pub(crate) command_buffers: Registry<CommandBuffer<A>>,
+ pub(crate) render_bundles: Registry<RenderBundle<A>>,
+ pub(crate) render_pipelines: Registry<RenderPipeline<A>>,
+ pub(crate) compute_pipelines: Registry<ComputePipeline<A>>,
+ pub(crate) query_sets: Registry<QuerySet<A>>,
+ pub(crate) buffers: Registry<Buffer<A>>,
+ pub(crate) staging_buffers: Registry<StagingBuffer<A>>,
+ pub(crate) textures: Registry<Texture<A>>,
+ pub(crate) texture_views: Registry<TextureView<A>>,
+ pub(crate) samplers: Registry<Sampler<A>>,
}
impl<A: HalApi> Hub<A> {
@@ -241,7 +241,7 @@ impl<A: HalApi> Hub<A> {
if let Element::Occupied(ref surface, _epoch) = *element {
if let Some(ref mut present) = surface.presentation.lock().take() {
if let Some(device) = present.device.downcast_ref::<A>() {
- let suf = A::get_surface(surface);
+ let suf = A::surface_as_hal(surface);
unsafe {
suf.unwrap().unconfigure(device.raw());
//TODO: we could destroy the surface here