moves vertex and index buffer handling to scene
This commit is contained in:
parent
0b3be29525
commit
32577d548b
6 changed files with 111 additions and 79 deletions
src
|
@ -1,14 +1,10 @@
|
|||
use vulkanalia::prelude::v1_0::*;
|
||||
|
||||
use crate::vertex;
|
||||
use crate::scene;
|
||||
|
||||
// The Vulkan handles and associated properties used by our Vulkan app.
|
||||
// The Vulkan handles and associated properties used by our Vulkan app.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct AppData {
|
||||
|
||||
pub vertices: Vec<vertex::Vertex>,
|
||||
pub indices: Vec<u32>,
|
||||
|
||||
pub surface: vk::SurfaceKHR,
|
||||
pub messenger: vk::DebugUtilsMessengerEXT,
|
||||
pub physical_device: vk::PhysicalDevice,
|
||||
|
@ -35,12 +31,6 @@ pub struct AppData {
|
|||
|
||||
pub in_flight_fences: Vec<vk::Fence>,
|
||||
pub images_in_flight: Vec<vk::Fence>,
|
||||
|
||||
pub vertex_buffer: vk::Buffer,
|
||||
pub vertex_buffer_memory: vk::DeviceMemory,
|
||||
|
||||
pub index_buffer: vk::Buffer,
|
||||
pub index_buffer_memory: vk::DeviceMemory,
|
||||
|
||||
pub uniform_buffers: Vec<vk::Buffer>,
|
||||
pub uniform_buffers_memory: Vec<vk::DeviceMemory>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue