File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ pub mod khr;
77pub mod mvk;
88pub mod nn;
99pub mod nv;
10+ pub mod ohos;
Original file line number Diff line number Diff line change 1+ pub mod surface;
Original file line number Diff line number Diff line change 1+ //! <https://docs.vulkan.org/refpages/latest/refpages/source/VK_OHOS_surface.html>
2+
3+ use crate :: vk;
4+ use crate :: RawPtr ;
5+ use crate :: VkResult ;
6+ use core:: mem;
7+
8+ impl crate :: ohos:: surface:: Instance {
9+ /// <https://docs.vulkan.org/refpages/latest/refpages/source/vkCreateSurfaceOHOS.html>
10+ #[ inline]
11+ pub unsafe fn create_surface (
12+ & self ,
13+ create_info : & vk:: SurfaceCreateInfoOHOS < ' _ > ,
14+ allocation_callbacks : Option < & vk:: AllocationCallbacks > ,
15+ ) -> VkResult < vk:: SurfaceKHR > {
16+ let mut surface = mem:: MaybeUninit :: uninit ( ) ;
17+ ( self . fp . create_surface_ohos ) (
18+ self . handle ,
19+ create_info,
20+ allocation_callbacks. to_raw_ptr ( ) ,
21+ surface. as_mut_ptr ( ) ,
22+ )
23+ . assume_init_on_success ( surface)
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments