![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Metal
MK_Derek
展开
-
Metal iOS deployment target
Set iOS deployment target -mios-version-min= "10.0"原创 2021-04-20 14:29:22 · 155 阅读 · 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 · 355 阅读 · 0 评论 -
Texture at colorAttachment[0] has usage (0x03) which doesn‘t specify
textureDescriptor.usage = [.renderTarget,.shaderRead, .shaderWrite]原创 2020-12-16 15:53:22 · 214 阅读 · 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 Macxcrun -sdk macosx metal -c MyLibrary.metal -o MyLibrary.airxcrun -sdk macosx metallib MyLibrary.air -o MyLibrary.metallibFor iOSxcrun -sdk iph原创 2020-12-15 19:35:12 · 1400 阅读 · 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 · 178 阅读 · 0 评论 -
GPUImage3 整个框架 理解
昨天 做完视频的 旋转 缩放 平移 正交投影后 花了一天的时间 简单的看了下GPUImage3的整个框架 想看看能自己结合GUPImage3的思路 想出一个套更加 合理的多级渲染协议 所以就简单的 过了一遍GPUImage3的基础源码 总结如下字写的不好看 有读者的话 就凑合一下吧 只是自己做笔记当备忘录的下面是主要的几个类 和 协议1. ImageSourcepublic extension ImageSource { func addTarget(_ target:ImageCon原创 2020-08-18 18:08:54 · 1098 阅读 · 0 评论 -
TextureCoord OpenGL ES Metal
笔记记录一下 老是忘记 TextureCoord 在 OpenGL ES 和 Metal 的区别在 OpenGL ES 中 原电坐标是在左下角 (0.0)在 Metal 中 原点坐标的在左上角 和 UI的 原点坐标相同原创 2020-06-04 11:28:48 · 474 阅读 · 0 评论