mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
[metal] allow access to command buffer (#8166)
This commit is contained in:
parent
5a24e2474d
commit
e58223bedf
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user