with different colors) works fine on Vision Pro simulator. I have generated a box in RealityKit with splitFaces property set to true to allow different materials on each cube side.Īpplying different SimpleMaterials (e.g. I hoped that this example would be an easy way to get experience with metal, but I've not got the experience I need to interpret what I should change to address the "doesn't specify MTLTextureUsageShaderRead" error. I'm using a Macbook pro, macos 12.2 and Xcode 13.3. The error occurs in the drawBox:rendererEncoder at the code below when boxIndex = 1įor(MTKSubmesh *submesh in _meshes.submeshes) :5252: failed assertion `Draw Errors Validationįragment Function(blendFragmentShader): Shader reads texture (prevColor) whose usage (0x04) doesn't specify MTLTextureUsageShaderRead (0x01) I get the error below when running the simulator on all the above devices. I've downloaded Apple's metal simulator example from hereĪnd tried simulating an iphone 11 with 11.5 and 12 using iOS, and iPad 9th gen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |