cargo fmt
TODO: Rest of https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Validation_layers
This commit is contained in:
parent
0e523e13ba
commit
d01b2bf8b8
1 changed files with 5 additions and 5 deletions
10
src/main.rs
10
src/main.rs
|
@ -45,10 +45,7 @@ impl VulkanApp {
|
||||||
let app_title = CString::new("Vulkan").unwrap();
|
let app_title = CString::new("Vulkan").unwrap();
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::glfwInit();
|
ffi::glfwInit();
|
||||||
ffi::glfwWindowHint(
|
ffi::glfwWindowHint(ffi::GLFW_CLIENT_API as i32, ffi::GLFW_NO_API as i32);
|
||||||
ffi::GLFW_CLIENT_API as i32,
|
|
||||||
ffi::GLFW_NO_API as i32,
|
|
||||||
);
|
|
||||||
ffi::glfwWindowHint(ffi::GLFW_RESIZABLE as i32, ffi::GLFW_FALSE as i32);
|
ffi::glfwWindowHint(ffi::GLFW_RESIZABLE as i32, ffi::GLFW_FALSE as i32);
|
||||||
self.window = ffi::glfwCreateWindow(
|
self.window = ffi::glfwCreateWindow(
|
||||||
WINDOW_WIDTH,
|
WINDOW_WIDTH,
|
||||||
|
@ -137,7 +134,10 @@ impl VulkanApp {
|
||||||
);
|
);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
ffi::vkEnumerateInstanceLayerProperties(std::ptr::addr_of_mut!(layer_count), layers.as_mut_ptr());
|
ffi::vkEnumerateInstanceLayerProperties(
|
||||||
|
std::ptr::addr_of_mut!(layer_count),
|
||||||
|
layers.as_mut_ptr(),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for layer_name in VALIDATION_LAYERS {
|
for layer_name in VALIDATION_LAYERS {
|
||||||
|
|
Loading…
Reference in a new issue