Run cargo fmt
This commit is contained in:
parent
1ba1d46eb2
commit
634b618852
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
use crate::vk;
|
||||||
|
use crate::RawPtr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::os::raw::c_void;
|
use std::os::raw::c_void;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use crate::vk;
|
|
||||||
use crate::RawPtr;
|
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
pub trait DeviceV1_1: DeviceV1_0 {
|
pub trait DeviceV1_1: DeviceV1_0 {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
use crate::instance::Instance;
|
use crate::instance::Instance;
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
use crate::vk;
|
||||||
|
use crate::RawPtr;
|
||||||
use shared_library::dynamic_library::DynamicLibrary;
|
use shared_library::dynamic_library::DynamicLibrary;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
@ -9,8 +11,6 @@ use std::os::raw::c_void;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use crate::vk;
|
|
||||||
use crate::RawPtr;
|
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
const LIB_PATH: &'static str = "vulkan-1.dll";
|
const LIB_PATH: &'static str = "vulkan-1.dll";
|
||||||
|
|
|
@ -23,9 +23,9 @@
|
||||||
*
|
*
|
||||||
**********************************************************************************************************************/
|
**********************************************************************************************************************/
|
||||||
|
|
||||||
|
use crate::vk::*;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use std::os::raw::*;
|
use std::os::raw::*;
|
||||||
use crate::vk::*;
|
|
||||||
|
|
||||||
// Extension: `VK_AMD_gpa_interface`
|
// Extension: `VK_AMD_gpa_interface`
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{DeviceV1_0, InstanceV1_0};
|
use crate::version::{DeviceV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DebugMarker {
|
pub struct DebugMarker {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DebugReport {
|
pub struct DebugReport {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::{vk, RawPtr};
|
use crate::{vk, RawPtr};
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DebugUtils {
|
pub struct DebugUtils {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct AndroidSurface {
|
pub struct AndroidSurface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{DeviceV1_0, InstanceV1_0};
|
use crate::version::{DeviceV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct DisplaySwapchain {
|
pub struct DisplaySwapchain {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use std::ptr;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
use std::ptr;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Surface {
|
pub struct Surface {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use std::ptr;
|
|
||||||
use crate::version::{DeviceV1_0, InstanceV1_0};
|
use crate::version::{DeviceV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
use std::ptr;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Swapchain {
|
pub struct Swapchain {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct WaylandSurface {
|
pub struct WaylandSurface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Win32Surface {
|
pub struct Win32Surface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct XcbSurface {
|
pub struct XcbSurface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct XlibSurface {
|
pub struct XlibSurface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct IOSSurface {
|
pub struct IOSSurface {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{EntryV1_0, InstanceV1_0};
|
use crate::version::{EntryV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct MacOSSurface {
|
pub struct MacOSSurface {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{DeviceV1_0, InstanceV1_0};
|
use crate::version::{DeviceV1_0, InstanceV1_0};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct MeshShader {
|
pub struct MeshShader {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
use std::ffi::CStr;
|
|
||||||
use std::mem;
|
|
||||||
use crate::version::{DeviceV1_0, InstanceV1_0, InstanceV1_1};
|
use crate::version::{DeviceV1_0, InstanceV1_0, InstanceV1_1};
|
||||||
use crate::vk;
|
use crate::vk;
|
||||||
use crate::RawPtr;
|
use crate::RawPtr;
|
||||||
|
use std::ffi::CStr;
|
||||||
|
use std::mem;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct RayTracing {
|
pub struct RayTracing {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
use crate::device::Device;
|
use crate::device::Device;
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
use crate::vk;
|
||||||
|
use crate::RawPtr;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use std::os::raw::c_char;
|
use std::os::raw::c_char;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use crate::vk;
|
|
||||||
use crate::RawPtr;
|
|
||||||
|
|
||||||
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkInstance.html>"]
|
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkInstance.html>"]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
|
use crate::vk;
|
||||||
use std::iter::Iterator;
|
use std::iter::Iterator;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
use std::os::raw::c_void;
|
use std::os::raw::c_void;
|
||||||
use std::{io, slice};
|
use std::{io, slice};
|
||||||
use crate::vk;
|
|
||||||
|
|
||||||
/// `Align` handles dynamic alignment. The is useful for dynamic uniform buffers where
|
/// `Align` handles dynamic alignment. The is useful for dynamic uniform buffers where
|
||||||
/// the alignment might be different. For example a 4x4 f32 matrix has a size of 64 bytes
|
/// the alignment might be different. For example a 4x4 f32 matrix has a size of 64 bytes
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
use ash::vk;
|
use ash::vk;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
use generator::write_source_code;
|
use generator::write_source_code;
|
||||||
use std::path::Path;
|
use std::path::Path;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate nom;
|
extern crate nom;
|
||||||
use proc_macro2;
|
use proc_macro2;
|
||||||
|
|
Loading…
Reference in a new issue