We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b65188 commit 88b98a2Copy full SHA for 88b98a2
Apps/UnitTests/Source/App_macOS.mm
@@ -34,11 +34,11 @@ int main()
34
35
// Create a simple test texture descriptor to check format support
36
auto checkTextureFormat = [device](MTLPixelFormat format, const char* name) {
37
- MTLTextureDescriptor* desc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format
+ @try {
38
+ MTLTextureDescriptor* desc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format
39
width:64
40
height:64
41
mipmapped:NO];
- @try {
42
id<MTLTexture> testTexture = [device newTextureWithDescriptor:desc];
43
NSLog(@" %s: %@", name, testTexture != nil ? @"YES" : @"NO");
44
}
0 commit comments