Struct pilka_dyn::ash::VkDevice[]

pub struct VkDevice {
    pub device: Arc<RawDevice>,
    pub physical_device: PhysicalDevice,
}

Fields

device: Arc<RawDevice>physical_device: PhysicalDevice

Implementations

impl VkDevice

pub fn get_device_properties(&self, instance: &VkInstance) -> VkDeviceProperties

pub fn create_fence(&self, signaled: bool) -> Result<Fence, Result>

pub fn create_semaphore(&self) -> Result<Semaphore, Result>

pub fn create_vk_command_pool(
    &self,
    queue_family_index: u32,
    num_command_buffers: u32
) -> Result<VkCommandPool, Result>

pub fn create_vk_render_pass(
    &self,
    format: Format
) -> Result<VkRenderPass, Result>

pub fn create_swapchain(
    &self,
    swapchain_loader: Swapchain,
    surface: &VkSurface,
    queues: &VkQueues
) -> Result<VkSwapchain, Result>

pub fn alloc_memory(
    &self,
    memory_properties: &PhysicalDeviceMemoryProperties,
    allocation_reqs: MemoryRequirements,
    flags: MemoryPropertyFlags
) -> Result<DeviceMemory, Result>

Methods from Deref<Target = Device>

pub fn handle(&self) -> Device

Trait Implementations

impl Deref for VkDevice

type Target = Device

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.