pre vertex buffer
This commit is contained in:
commit
017cfcf82f
14 changed files with 2856 additions and 0 deletions
src
30
src/app_data.rs
Normal file
30
src/app_data.rs
Normal file
|
@ -0,0 +1,30 @@
|
|||
use vulkanalia::prelude::v1_0::*;
|
||||
// The Vulkan handles and associated properties used by our Vulkan app.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct AppData {
|
||||
pub surface: vk::SurfaceKHR,
|
||||
pub messenger: vk::DebugUtilsMessengerEXT,
|
||||
pub physical_device: vk::PhysicalDevice,
|
||||
pub graphics_queue: vk::Queue,
|
||||
pub present_queue: vk::Queue,
|
||||
|
||||
pub swapchain_format: vk::Format,
|
||||
pub swapchain_extent: vk::Extent2D,
|
||||
pub swapchain: vk::SwapchainKHR,
|
||||
pub swapchain_images: Vec<vk::Image>,
|
||||
|
||||
pub swapchain_image_views: Vec<vk::ImageView>,
|
||||
|
||||
pub pipeline_layout: vk::PipelineLayout,
|
||||
pub render_pass: vk::RenderPass,
|
||||
pub pipeline: vk::Pipeline,
|
||||
pub framebuffers: Vec<vk::Framebuffer>,
|
||||
pub command_pool: vk::CommandPool,
|
||||
pub command_buffers: Vec<vk::CommandBuffer>,
|
||||
|
||||
pub image_available_semaphores: Vec<vk::Semaphore>,
|
||||
pub render_finished_semaphores: Vec<vk::Semaphore>,
|
||||
|
||||
pub in_flight_fences: Vec<vk::Fence>,
|
||||
pub images_in_flight: Vec<vk::Fence>,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue