This commit is contained in:
parent
c0367144a6
commit
dd8a5a97ea
9 changed files with 83 additions and 13 deletions
|
@ -6,7 +6,6 @@ use std::sync::Arc;
|
|||
|
||||
pub struct VkGraphicsPipeline {
|
||||
device: Arc<VkDevice>,
|
||||
swapchain: Arc<VkSwapchain>,
|
||||
render_pass: Arc<VkRenderPass>,
|
||||
|
||||
pub(super) pipeline_layout: vk::PipelineLayout,
|
||||
|
@ -18,7 +17,6 @@ pub struct VkGraphicsPipeline {
|
|||
impl VkGraphicsPipeline {
|
||||
pub fn new(
|
||||
device: &Arc<VkDevice>,
|
||||
swapchain: &Arc<VkSwapchain>,
|
||||
render_pass: &Arc<VkRenderPass>,
|
||||
) -> anyhow::Result<Self> {
|
||||
let shader_entry_name = CStr::from_bytes_with_nul(b"main\0")?;
|
||||
|
@ -99,7 +97,6 @@ impl VkGraphicsPipeline {
|
|||
|
||||
Ok(Self {
|
||||
device: device.clone(),
|
||||
swapchain: swapchain.clone(),
|
||||
render_pass: render_pass.clone(),
|
||||
pipeline_layout,
|
||||
pipeline,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue