Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored Nov 6, 2023
1 parent a4b1d81 commit 7f6f9ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wgpu-hal/src/metal/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {
let raw = self.raw_cmd_buf.as_ref().unwrap();

objc::rc::autoreleasepool(|| {
// TimeStamp Queries and ComputePassDescriptor were both introduced in Metal 2.3 (macOS 11, iOS 14)
// and we currently only need ComputePassDescriptor for timestamp queries
let encoder = if self.shared.private_caps.timestamp_query_support.is_empty() {
raw.new_compute_command_encoder()
} else {
Expand Down

0 comments on commit 7f6f9ff

Please sign in to comment.