metal &object c
https://developer.apple.com/documentation/metal/mtlcommandencoder/1458041-pushdebuggroup
PushDebugGroups
https://developer.apple.com/documentation/metal/mtlcommandencoder
这个encoder我之前在其它api里没见过 就对应我tbdr里面提到的renderpass
有四种
An encoder used for graphics rendering tasks. |
|
An encoder used for computational tasks. |
|
An encoder used for memory management tasks. |
|
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的时间。。。
最新文章
- Provider:SSL Provider,error:0-等待的操作过时
- Web的26项基本概念和技术
- [转]结合轮廓显示,实现完整的框选目标(附Demo代码)
- HTML+CSS入门
- UVa 699 The Falling Leaves
- 自己实现Single LinkedList
- js 中 json对象 与 json字符串 间相互转换
- 在iis中调试asp.net程序
- Activity和View的区别:
- Winform无边框窗体(FormBorderStyle属性设为None)自定义移动
- Mysql连接问题:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException
- python cookbook 小结
- 使用ORM进行前后端数据交互
- Dev修改gridview 背景色
- Ubuntu下修改CMake版本
- [转]一个故事讲清楚NIO
- HTTP 协议 详解
- Log4J日志配置与Juit测试
- Java中的==符号与equals()的使用(测试两个变量是否相等)
- 基于python的接口测试框架设计(二)配置一些参数及文件
热门文章
- python中的偏函数partial
- 201. Non Absorbing DFA
- Python基础系列----环境的搭建及简单输入、输出
- node-java模块
- Codeforces Round #496 (Div. 3) E2 - Median on Segments (General Case Edition)
- 洛谷 P3128 [USACO15DEC]最大流Max Flow-树上差分(点权/点覆盖)(模板题)
- ZOJ 3781 Paint the Grid Reloaded
- sql 预编译 in
- 第3天:YAML语法
- Linux基础系列-系统密码破解