style cleanup
This commit is contained in:
parent
0eaf851afa
commit
3db84ba1eb
2 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,6 @@ impl Device {
|
||||||
self.device_fn.destroy_command_pool(self.handle, pool, allocation_callbacks.as_raw_ptr());
|
self.device_fn.destroy_command_pool(self.handle, pool, allocation_callbacks.as_raw_ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub unsafe fn destroy_image_view(&self,
|
pub unsafe fn destroy_image_view(&self,
|
||||||
image_view: vk::ImageView,
|
image_view: vk::ImageView,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>) {
|
allocation_callbacks: Option<&vk::AllocationCallbacks>) {
|
||||||
|
@ -175,6 +174,7 @@ impl Device {
|
||||||
regions.len() as u32,
|
regions.len() as u32,
|
||||||
regions.as_ptr());
|
regions.as_ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn cmd_copy_buffer_to_image(&self,
|
pub unsafe fn cmd_copy_buffer_to_image(&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
src_buffer: vk::Buffer,
|
src_buffer: vk::Buffer,
|
||||||
|
@ -218,6 +218,7 @@ impl Device {
|
||||||
_ => Err(err_code),
|
_ => Err(err_code),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn create_descriptor_set_layout(&self,
|
pub fn create_descriptor_set_layout(&self,
|
||||||
create_info: &vk::DescriptorSetLayoutCreateInfo,
|
create_info: &vk::DescriptorSetLayoutCreateInfo,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
||||||
|
@ -235,6 +236,7 @@ impl Device {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn device_wait_idle(&self) -> VkResult<()> {
|
pub fn device_wait_idle(&self) -> VkResult<()> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let err_code = self.device_fn.device_wait_idle(self.handle);
|
let err_code = self.device_fn.device_wait_idle(self.handle);
|
||||||
|
@ -386,7 +388,6 @@ impl Device {
|
||||||
viewports.as_ptr());
|
viewports.as_ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn create_semaphore(&self,
|
pub fn create_semaphore(&self,
|
||||||
create_info: &vk::SemaphoreCreateInfo,
|
create_info: &vk::SemaphoreCreateInfo,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
||||||
|
@ -462,6 +463,7 @@ impl Device {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn map_memory<T>(&self,
|
pub unsafe fn map_memory<T>(&self,
|
||||||
memory: vk::DeviceMemory,
|
memory: vk::DeviceMemory,
|
||||||
offset: vk::DeviceSize,
|
offset: vk::DeviceSize,
|
||||||
|
@ -681,7 +683,6 @@ impl Device {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn create_image(&self,
|
pub fn create_image(&self,
|
||||||
create_info: &vk::ImageCreateInfo,
|
create_info: &vk::ImageCreateInfo,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
allocation_callbacks: Option<&vk::AllocationCallbacks>)
|
||||||
|
|
|
@ -101,7 +101,6 @@ impl Instance {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn enumerate_physical_devices(&self) -> VkResult<Vec<vk::PhysicalDevice>> {
|
pub fn enumerate_physical_devices(&self) -> VkResult<Vec<vk::PhysicalDevice>> {
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut num = mem::uninitialized();
|
let mut num = mem::uninitialized();
|
||||||
|
|
Loading…
Add table
Reference in a new issue