Struct ash::extensions::khr::GetSurfaceCapabilities2
source · [−]pub struct GetSurfaceCapabilities2 { /* private fields */ }
Implementations
sourceimpl GetSurfaceCapabilities2
impl GetSurfaceCapabilities2
pub fn new(entry: &Entry, instance: &Instance) -> Self
sourcepub unsafe fn get_physical_device_surface_capabilities2(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<SurfaceCapabilities2KHR>
pub unsafe fn get_physical_device_surface_capabilities2(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<SurfaceCapabilities2KHR>
sourcepub unsafe fn get_physical_device_surface_formats2_len(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<usize>
pub unsafe fn get_physical_device_surface_formats2_len(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR
) -> VkResult<usize>
Retrieve the number of elements to pass to get_physical_device_surface_formats2()
sourcepub unsafe fn get_physical_device_surface_formats2(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR,
out: &mut [SurfaceFormat2KHR]
) -> VkResult<()>
pub unsafe fn get_physical_device_surface_formats2(
&self,
physical_device: PhysicalDevice,
surface_info: &PhysicalDeviceSurfaceInfo2KHR,
out: &mut [SurfaceFormat2KHR]
) -> VkResult<()>
Call get_physical_device_surface_formats2_len()
to query the number of elements to pass to out
.
Be sure to Default::default()
-initialize these elements and optionally set their p_next
pointer.
pub fn name() -> &'static CStr
pub fn fp(&self) -> &KhrGetSurfaceCapabilities2Fn
Trait Implementations
sourceimpl Clone for GetSurfaceCapabilities2
impl Clone for GetSurfaceCapabilities2
sourcefn clone(&self) -> GetSurfaceCapabilities2
fn clone(&self) -> GetSurfaceCapabilities2
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for GetSurfaceCapabilities2
impl Send for GetSurfaceCapabilities2
impl Sync for GetSurfaceCapabilities2
impl Unpin for GetSurfaceCapabilities2
impl UnwindSafe for GetSurfaceCapabilities2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more