Metal
MK_Derek
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Metal iOS deployment target
Set iOS deployment target -mios-version-min= "10.0"原创 2021-04-20 14:29:22 · 263 阅读 · 0 评论 -
DYPShaderDebuggerErrorDomain:1 “Failed to find library source“
DYPShaderDebuggerErrorDomain:1 "Failed to find library source" Library source required. Under the target's Build Settings, ensure the Metal Compiler Build Options produces debugging information and includes source code. If building with the 'metal' comm原创 2020-12-16 18:12:58 · 533 阅读 · 0 评论 -
Texture at colorAttachment[0] has usage (0x03) which doesn‘t specify
textureDescriptor.usage = [.renderTarget,.shaderRead, .shaderWrite]原创 2020-12-16 15:53:22 · 322 阅读 · 0 评论 -
“This library format is not supported on this platform “
This library format is not supported on this platform (or was built with an old version of the tools) For Mac xcrun -sdk macosx metal -c MyLibrary.metal -o MyLibrary.air xcrun -sdk macosx metallib MyLibrary.air -o MyLibrary.metallib For iOS xcrun -sdk iph原创 2020-12-15 19:35:12 · 1722 阅读 · 0 评论 -
MTLBuffer The data copied from the pointer parameter is 0 error 数据类型需要明确定义声明
MTLBuffer 设置数组数据的时候 总是为 0 的错误 代码如下: let textureData = [ 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 1.0, 1.0 ] var ptransformMatrix4x4 = simd_float4x4(transform) textCoordBuffer = metalMana原创 2020-10-26 18:59:47 · 333 阅读 · 0 评论 -
GPUImage3 整个框架 理解
昨天 做完视频的 旋转 缩放 平移 正交投影后 花了一天的时间 简单的看了下GPUImage3的整个框架 想看看能自己结合GUPImage3的思路 想出一个套更加 合理的多级渲染协议 所以就简单的 过了一遍GPUImage3的基础源码 总结如下 字写的不好看 有读者的话 就凑合一下吧 只是自己做笔记当备忘录的 下面是主要的几个类 和 协议 1. ImageSource public extension ImageSource { func addTarget(_ target:ImageCon原创 2020-08-18 18:08:54 · 1701 阅读 · 0 评论 -
TextureCoord OpenGL ES Metal
笔记记录一下 老是忘记 TextureCoord 在 OpenGL ES 和 Metal 的区别 在 OpenGL ES 中 原电坐标是在左下角 (0.0) 在 Metal 中 原点坐标的在左上角 和 UI的 原点坐标相同原创 2020-06-04 11:28:48 · 616 阅读 · 0 评论
分享