mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
[metal] allow access to command buffer (#8166)
This commit is contained in:
1 parent
5a24e2474d
commit
e58223bedf
1 file changed
+4
@@ -33,6 +33,10 @@ impl Default for super::CommandState {
|
||||
}
|
||||
|
||||
impl super::CommandEncoder {
|
||||
pub fn raw_command_buffer(&self) -> Option<&metal::CommandBuffer> {
|
||||
self.raw_cmd_buf.as_ref()
|
||||
}
|
||||
|
||||
fn enter_blit(&mut self) -> &metal::BlitCommandEncoderRef {
|
||||
if self.state.blit.is_none() {
|
||||
debug_assert!(self.state.render.is_none() && self.state.compute.is_none());
|
||||
|
||||
Reference in new issue
Block a user