vulkan: Rename name mistake to handle

This commit is contained in:
Florian RICHER 2024-11-27 20:48:34 +01:00
parent dd8a5a97ea
commit 001547dbc2
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
5 changed files with 22 additions and 22 deletions

View file

@ -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,
})
}