@@ -6,7 +6,6 @@ use hal::DynResource;
66use crate :: {
77 device:: Device ,
88 global:: Global ,
9- hal_api:: HalApi ,
109 id:: {
1110 AdapterId , BlasId , BufferId , CommandEncoderId , DeviceId , QueueId , SurfaceId , TextureId ,
1211 TextureViewId , TlasId ,
@@ -226,7 +225,7 @@ impl Global {
226225 /// # Safety
227226 ///
228227 /// - The raw buffer handle must not be manually destroyed
229- pub unsafe fn buffer_as_hal < A : HalApi > (
228+ pub unsafe fn buffer_as_hal < A : hal :: Api > (
230229 & self ,
231230 id : BufferId ,
232231 ) -> Option < impl Deref < Target = A :: Buffer > > {
@@ -242,7 +241,7 @@ impl Global {
242241 /// # Safety
243242 ///
244243 /// - The raw texture handle must not be manually destroyed
245- pub unsafe fn texture_as_hal < A : HalApi > (
244+ pub unsafe fn texture_as_hal < A : hal :: Api > (
246245 & self ,
247246 id : TextureId ,
248247 ) -> Option < impl Deref < Target = A :: Texture > > {
@@ -258,7 +257,7 @@ impl Global {
258257 /// # Safety
259258 ///
260259 /// - The raw texture view handle must not be manually destroyed
261- pub unsafe fn texture_view_as_hal < A : HalApi > (
260+ pub unsafe fn texture_view_as_hal < A : hal :: Api > (
262261 & self ,
263262 id : TextureViewId ,
264263 ) -> Option < impl Deref < Target = A :: TextureView > > {
@@ -274,7 +273,7 @@ impl Global {
274273 /// # Safety
275274 ///
276275 /// - The raw adapter handle must not be manually destroyed
277- pub unsafe fn adapter_as_hal < A : HalApi > (
276+ pub unsafe fn adapter_as_hal < A : hal :: Api > (
278277 & self ,
279278 id : AdapterId ,
280279 ) -> Option < impl Deref < Target = A :: Adapter > > {
@@ -291,7 +290,7 @@ impl Global {
291290 /// # Safety
292291 ///
293292 /// - The raw device handle must not be manually destroyed
294- pub unsafe fn device_as_hal < A : HalApi > (
293+ pub unsafe fn device_as_hal < A : hal :: Api > (
295294 & self ,
296295 id : DeviceId ,
297296 ) -> Option < impl Deref < Target = A :: Device > > {
@@ -305,7 +304,7 @@ impl Global {
305304 /// # Safety
306305 ///
307306 /// - The raw fence handle must not be manually destroyed
308- pub unsafe fn device_fence_as_hal < A : HalApi > (
307+ pub unsafe fn device_fence_as_hal < A : hal :: Api > (
309308 & self ,
310309 id : DeviceId ,
311310 ) -> Option < impl Deref < Target = A :: Fence > > {
@@ -318,7 +317,7 @@ impl Global {
318317
319318 /// # Safety
320319 /// - The raw surface handle must not be manually destroyed
321- pub unsafe fn surface_as_hal < A : HalApi > (
320+ pub unsafe fn surface_as_hal < A : hal :: Api > (
322321 & self ,
323322 id : SurfaceId ,
324323 ) -> Option < impl Deref < Target = A :: Surface > > {
@@ -335,7 +334,7 @@ impl Global {
335334 ///
336335 /// - The raw command encoder handle must not be manually destroyed
337336 pub unsafe fn command_encoder_as_hal_mut <
338- A : HalApi ,
337+ A : hal :: Api ,
339338 F : FnOnce ( Option < & mut A :: CommandEncoder > ) -> R ,
340339 R ,
341340 > (
@@ -363,7 +362,7 @@ impl Global {
363362 /// # Safety
364363 ///
365364 /// - The raw queue handle must not be manually destroyed
366- pub unsafe fn queue_as_hal < A : HalApi > (
365+ pub unsafe fn queue_as_hal < A : hal :: Api > (
367366 & self ,
368367 id : QueueId ,
369368 ) -> Option < impl Deref < Target = A :: Queue > > {
@@ -377,7 +376,7 @@ impl Global {
377376 /// # Safety
378377 ///
379378 /// - The raw blas handle must not be manually destroyed
380- pub unsafe fn blas_as_hal < A : HalApi > (
379+ pub unsafe fn blas_as_hal < A : hal :: Api > (
381380 & self ,
382381 id : BlasId ,
383382 ) -> Option < impl Deref < Target = A :: AccelerationStructure > > {
@@ -393,7 +392,7 @@ impl Global {
393392 /// # Safety
394393 ///
395394 /// - The raw tlas handle must not be manually destroyed
396- pub unsafe fn tlas_as_hal < A : HalApi > (
395+ pub unsafe fn tlas_as_hal < A : hal :: Api > (
397396 & self ,
398397 id : TlasId ,
399398 ) -> Option < impl Deref < Target = A :: AccelerationStructure > > {
0 commit comments