File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,12 @@ int main()
1717 NSLog (@" Removable: %@ " , device.isRemovable ? @" YES" : @" NO" );
1818 NSLog (@" Registry ID: %llu " , device.registryID);
1919 NSLog (@" Max Threads Per Threadgroup: %lu " , (unsigned long )device.maxThreadsPerThreadgroup.width);
20+ NSLog (@" Supports Family Apple1: %@ " , [device supportsFamily: MTLGPUFamilyApple1 ] ? @" YES" : @" NO" );
21+ NSLog (@" Supports Family Apple2: %@ " , [device supportsFamily: MTLGPUFamilyApple2 ] ? @" YES" : @" NO" );
22+ NSLog (@" Supports Family Apple3: %@ " , [device supportsFamily: MTLGPUFamilyApple3 ] ? @" YES" : @" NO" );
23+ NSLog (@" Supports Family Apple4: %@ " , [device supportsFamily: MTLGPUFamilyApple4 ] ? @" YES" : @" NO" );
24+ NSLog (@" Supports Family Apple5: %@ " , [device supportsFamily: MTLGPUFamilyApple5 ] ? @" YES" : @" NO" );
25+ NSLog (@" Supports Family Apple6: %@ " , [device supportsFamily: MTLGPUFamilyApple6] ? @" YES" : @" NO" );
2026 NSLog (@" Supports Family Apple7: %@ " , [device supportsFamily: MTLGPUFamilyApple7] ? @" YES" : @" NO" );
2127 NSLog (@" Supports Family Apple8: %@ " , [device supportsFamily: MTLGPUFamilyApple8] ? @" YES" : @" NO" );
2228 NSLog (@" Supports Family Apple9: %@ " , [device supportsFamily: MTLGPUFamilyApple9] ? @" YES" : @" NO" );
Original file line number Diff line number Diff line change 55Babylon::Graphics::TextureT CreateTestTexture (Babylon::Graphics::DeviceT device, uint32_t width, uint32_t height)
66{
77 MTLTextureDescriptor * descriptor = [MTLTextureDescriptor
8- texture2DDescriptorWithPixelFormat: MTLPixelFormatBGRA8Unorm
8+ texture2DDescriptorWithPixelFormat: MTLPixelFormatRGBA8Unorm
99 width: width
1010 height: height
1111 mipmapped: NO ];
You can’t perform that action at this time.
0 commit comments