all: remove unnecessary mem:: prefix
This commit is contained in:
parent
c00ef63afe
commit
1e45a243de
22 changed files with 61 additions and 76 deletions
|
|
@ -20,7 +20,7 @@ use {
|
|||
PrimitiveTopology, PushConstantRange, SampleCountFlags, ShaderStageFlags,
|
||||
},
|
||||
},
|
||||
std::{mem, rc::Rc, slice},
|
||||
std::{rc::Rc, slice},
|
||||
};
|
||||
|
||||
pub(super) struct VulkanPipeline {
|
||||
|
|
@ -45,7 +45,7 @@ impl VulkanDevice {
|
|||
&self,
|
||||
info: PipelineCreateInfo,
|
||||
) -> Result<Rc<VulkanPipeline>, VulkanError> {
|
||||
self.create_pipeline_(info, mem::size_of::<V>() as _, mem::size_of::<F>() as _)
|
||||
self.create_pipeline_(info, size_of::<V>() as _, size_of::<F>() as _)
|
||||
}
|
||||
|
||||
fn create_pipeline_(
|
||||
|
|
|
|||
|
|
@ -590,7 +590,7 @@ impl VulkanRenderer {
|
|||
buf,
|
||||
pipeline.pipeline_layout,
|
||||
ShaderStageFlags::FRAGMENT,
|
||||
mem::size_of_val(&vert) as _,
|
||||
size_of_val(&vert) as _,
|
||||
uapi::as_bytes(&frag),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue