Under macos when i do :
MTLRenderPassDescriptor* renderPassDesc = [MTLRenderPassDescriptor renderPassDescriptor];
MTLRenderPassColorAttachmentDescriptor* colorAttachmentDesc = [MTLRenderPassColorAttachmentDescriptor new];
colorAttachmentDesc.texture = drawable.texture;
colorAttachmentDesc.loadAction = MTLLoadActionClear;
colorAttachmentDesc.storeAction = MTLStoreActionStore;
colorAttachmentDesc.clearColor = MTLClearColorMake(1, 1, 1, 1);
and when after I inspect the value of colorAttachmentDesc.clearColor
I can that see that I still have (0, 0, 0, 1) instead of (1, 1, 1, 1) !!
On ios it's work perfectly, but on macOS with NSView instead of UIView I don't understand why it's not work. did I miss something?