MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / surface_capabilities

Method surface_capabilities

examples/runners/ash/src/main.rs:480–486  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

478 }
479
480 pub fn surface_capabilities(&self) -> vk::SurfaceCapabilitiesKHR {
481 unsafe {
482 self.surface_loader
483 .get_physical_device_surface_capabilities(self.pdevice, self.surface)
484 .unwrap()
485 }
486 }
487
488 pub fn create_swapchain(&self) -> (vk::SwapchainKHR, vk::Extent2D) {
489 let surface_capabilities = self.surface_capabilities();

Callers 2

surface_resolutionMethod · 0.80
create_swapchainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected