Skip to content

Commit

Permalink
Making some changes to be able to own the command buffer (not sure if…
Browse files Browse the repository at this point in the history
… sound yet.).
  • Loading branch information
Narsil committed Nov 1, 2023
1 parent cec862c commit 09406d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/commandqueue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ impl CommandQueueRef {
unsafe { msg_send![self, commandBuffer] }
}

pub fn new_owned_command_buffer(&self) -> CommandBuffer{
unsafe { msg_send![self, commandBuffer] }
}


pub fn new_command_buffer_with_unretained_references(&self) -> &CommandBufferRef {
unsafe { msg_send![self, commandBufferWithUnretainedReferences] }
}
Expand Down
1 change: 0 additions & 1 deletion src/mps/custom_kernels.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/mps/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use objc::runtime::{BOOL, YES};

use super::*;

pub mod custom_kernels;
pub mod matrix;
pub mod raytracing;

Expand Down

0 comments on commit 09406d8

Please sign in to comment.