Skip to content

Commit

Permalink
Merge pull request #360 from mitchmindtree/update_conrod_and_vulkano
Browse files Browse the repository at this point in the history
Update to vulkano 0.13 and conrod 0.66
  • Loading branch information
mitchmindtree authored Jul 19, 2019
2 parents 68a098b + 2e0816a commit add5fb2
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ edition = "2018"
[dependencies]
approx = "0.1"
cgmath = { version = "0.16", features = ["serde"] }
conrod_core = "0.65"
conrod_winit = "0.65"
conrod_vulkano = "0.65"
conrod_core = "0.66"
conrod_winit = "0.66"
conrod_vulkano = "0.66"
daggy = "0.6"
find_folder = "0.3"
image = "0.21"
Expand All @@ -27,9 +27,9 @@ serde = "1"
serde_derive = "1"
serde_json = "1"
toml = "0.4"
vulkano = "0.12"
vulkano-win = "0.12"
vulkano-shaders = "0.12"
vulkano = "0.13"
vulkano-win = "0.13"
vulkano-shaders = "0.13"
winit = "0.19"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_hotload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Model {
device: Arc<vk::Device>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Model {
desciptor_set: Arc<dyn vk::DescriptorSet + Send + Sync>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_image_sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Model {
desciptor_set: Arc<dyn vk::DescriptorSet + Send + Sync>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct Model {
desciptor_set: Arc<dyn vk::DescriptorSet + Send + Sync>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
4 changes: 2 additions & 2 deletions examples/vulkan/vk_quad_warp/vk_quad_warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ vk::impl_vertex!(Normal, normal);

// Teapot data, sourced from `vulkano-examples`.

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
pub struct Vertex {
position: (f32, f32, f32),
}

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
pub struct Normal {
normal: (f32, f32, f32),
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_quad_warp/warp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct Warp {
sampler: Arc<vk::Sampler>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 3],
v_tex_coords: [f32; 2],
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_shader_include/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Model {
view_fbo: RefCell<ViewFbo>,
}

#[derive(Debug, Clone)]
#[derive(Clone, Debug, Default)]
struct Vertex {
position: [f32; 2],
}
Expand Down
4 changes: 2 additions & 2 deletions examples/vulkan/vk_teapot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ struct Graphics {
view_fbo: ViewFbo,
}

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
struct Vertex {
position: (f32, f32, f32),
}

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
struct Normal {
normal: (f32, f32, f32),
}
Expand Down
4 changes: 2 additions & 2 deletions examples/vulkan/vk_teapot_camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ struct Camera {
yaw: f32,
}

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
struct Vertex {
position: (f32, f32, f32),
}

#[derive(Copy, Clone)]
#[derive(Copy, Clone, Default)]
struct Normal {
normal: (f32, f32, f32),
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Model {
view_fbo: RefCell<ViewFbo>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
2 changes: 1 addition & 1 deletion examples/vulkan/vk_triangle_raw_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct Model {
framebuffers: RefCell<window::SwapchainFramebuffers>,
}

#[derive(Debug, Clone)]
#[derive(Debug, Default, Clone)]
struct Vertex {
position: [f32; 2],
}
Expand Down
2 changes: 1 addition & 1 deletion src/draw/backend/vulkano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct Renderer {
}

/// The `Vertex` type passed to the vertex shader.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, Default)]
pub struct Vertex {
// /// The mode with which the `Vertex` will be drawn within the fragment shader.
// ///
Expand Down
6 changes: 5 additions & 1 deletion src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ pub enum DrawToFrameError {
/// The subpass type to which the `Ui` may be rendered.
pub type Subpass = vk::framebuffer::Subpass<Arc<dyn vk::RenderPassAbstract + Send + Sync>>;

/// The image type compatible with nannou's UI image map.
///
/// The `vk::Format` format type allows for specifying dynamically determined image formats.
pub type Image = Arc<vk::ImmutableImage<vk::Format>>;

/// A map from `image::Id`s to their associated `Texture2d`.
pub type ImageMap = conrod_core::image::Map<conrod_vulkano::Image>;

Expand Down Expand Up @@ -683,7 +688,6 @@ pub fn draw_primitives(
}

mod conrod_winit_conv {
use crate::conrod_winit::*;
conrod_winit::conversion_fns!();
}

Expand Down

0 comments on commit add5fb2

Please sign in to comment.