vulkan: Rename name mistake to handle
This commit is contained in:
parent
dd8a5a97ea
commit
001547dbc2
5 changed files with 22 additions and 22 deletions
|
@ -10,7 +10,7 @@ pub struct VkShaderModule {
|
|||
}
|
||||
|
||||
impl VkShaderModule {
|
||||
pub fn from_spv_file<P: AsRef<Path>>(device: Arc<VkDevice>, path: P) -> anyhow::Result<Self> {
|
||||
pub fn from_spv_file<P: AsRef<Path>>(device: &Arc<VkDevice>, path: P) -> anyhow::Result<Self> {
|
||||
let mut file = std::fs::File::open(&path)?;
|
||||
let frag_shader_str = ash::util::read_spv(&mut file)?;
|
||||
|
||||
|
@ -26,7 +26,7 @@ impl VkShaderModule {
|
|||
);
|
||||
|
||||
Ok(Self {
|
||||
device,
|
||||
device: device.clone(),
|
||||
handle: shader_module,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue