Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/aurora_core.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ if (AURORA_ENABLE_GX)
target_compile_definitions(aurora_core PRIVATE DAWN_ENABLE_BACKEND_METAL)
target_sources(aurora_core PRIVATE lib/dawn/MetalBinding.mm)
set_source_files_properties(lib/dawn/MetalBinding.mm PROPERTIES COMPILE_FLAGS -fobjc-arc)
target_link_options(aurora_core PUBLIC "LINKER:-weak_framework,Metal")
endif ()
if (DAWN_ENABLE_D3D11)
target_compile_definitions(aurora_core PRIVATE DAWN_ENABLE_BACKEND_D3D11)
Expand Down
13 changes: 0 additions & 13 deletions lib/dawn/MetalBinding.mm
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
#include "BackendBinding.hpp"

#import <Foundation/Foundation.h>

// Shim for macOS 15+ Metal classes to allow running on macOS 14
#ifndef __MAC_15_0
@interface MTLLogStateDescriptor : NSObject
@end
@implementation MTLLogStateDescriptor
@end
@interface MTLLogState : NSObject
@end
@implementation MTLLogState
@end
#endif

#include <SDL3/SDL_metal.h>

namespace aurora::webgpu::utils {
Expand Down
Loading