Skip to content

Commit 65fc392

Browse files
committed
More logs
1 parent 17df3d1 commit 65fc392

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Apps/UnitTests/Source/App_macOS.mm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

Apps/UnitTests/Source/Utils_Metal.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Babylon::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];

0 commit comments

Comments
 (0)