https://developer.apple.com/documentation/metal/mtlcommandencoder/1458041-pushdebuggroup

PushDebugGroups

https://developer.apple.com/documentation/metal/mtlcommandencoder

这个encoder我之前在其它api里没见过 就对应我tbdr里面提到的renderpass

有四种

MTLRenderCommandEncoder

An encoder used for graphics rendering tasks.

MTLComputeCommandEncoder

An encoder used for computational tasks.

MTLBlitCommandEncoder

An encoder used for memory management tasks.

MTLParallelRenderCommandEncoder

An encoder used for multiple graphics rendering tasks encoded in parallel.

https://developer.apple.com/documentation/metal/mtlcommandbuffer/1639924-gpustarttime

https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442997-addcompletedhandler

https://developer.apple.com/documentation/metal/mtlcommandbuffer?language=objc

看了下cmdqueue和cmdbuffer和其它是一致的 只是往cmdbuffer上写命令的时候需要用到以上四种不同encoder来写不同功能的命令并且它们可以

按照次序(一次只能用一种)多个encoder写到一块cmdbuffer上 这样是不是我还是没法用cmd的

commandBuffer.addCompletedHandler { cb in
let executionDuration = cb.gpuEndTime - cb.gpuStartTime
/* ... */
}
拿到renderpass的时间。。。

最新文章

  1. Provider:SSL Provider,error:0-等待的操作过时
  2. Web的26项基本概念和技术
  3. [转]结合轮廓显示,实现完整的框选目标(附Demo代码)
  4. HTML+CSS入门
  5. UVa 699 The Falling Leaves
  6. 自己实现Single LinkedList
  7. js 中 json对象 与 json字符串 间相互转换
  8. 在iis中调试asp.net程序
  9. Activity和View的区别:
  10. Winform无边框窗体(FormBorderStyle属性设为None)自定义移动
  11. Mysql连接问题:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException
  12. python cookbook 小结
  13. 使用ORM进行前后端数据交互
  14. Dev修改gridview 背景色
  15. Ubuntu下修改CMake版本
  16. [转]一个故事讲清楚NIO
  17. HTTP 协议 详解
  18. Log4J日志配置与Juit测试
  19. Java中的==符号与equals()的使用(测试两个变量是否相等)
  20. 基于python的接口测试框架设计(二)配置一些参数及文件

热门文章

  1. python中的偏函数partial
  2. 201. Non Absorbing DFA
  3. Python基础系列----环境的搭建及简单输入、输出
  4. node-java模块
  5. Codeforces Round #496 (Div. 3) E2 - Median on Segments (General Case Edition)
  6. 洛谷 P3128 [USACO15DEC]最大流Max Flow-树上差分(点权/点覆盖)(模板题)
  7. ZOJ 3781 Paint the Grid Reloaded
  8. sql 预编译 in
  9. 第3天:YAML语法
  10. Linux基础系列-系统密码破解