First render !!!
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 1s

This commit is contained in:
Florian RICHER 2024-11-22 17:06:39 +01:00
parent 2590db0a06
commit c0367144a6
9 changed files with 123 additions and 70 deletions

View file

@ -9,13 +9,13 @@ pub struct VkSemaphore {
}
impl VkSemaphore {
pub fn new(device: Arc<VkDevice>) -> anyhow::Result<Self> {
pub fn new(device: &Arc<VkDevice>) -> anyhow::Result<Self> {
let semaphore_info = vk::SemaphoreCreateInfo::default();
let semaphore = unsafe { device.handle.create_semaphore(&semaphore_info, None)? };
log::debug!("Semaphore created ({semaphore:?})");
Ok(Self {
device,
device: device.clone(),
handle: semaphore,
})
}