mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-08 13:01:05 +01:00
pomelo scraps
This commit is contained in:
parent
f48e2f9647
commit
5f894ea6e5
29 changed files with 2258 additions and 11 deletions
23
src/ios/MetalView.swift
Normal file
23
src/ios/MetalView.swift
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
// SPDX-FileCopyrightText: Copyright 2024 Pomelo, Stossy11
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
import SwiftUI
|
||||
import Metal
|
||||
import AppUI
|
||||
|
||||
struct MetalView: UIViewRepresentable {
|
||||
let device: MTLDevice?
|
||||
let configure: (UIView) -> Void
|
||||
|
||||
func makeUIView(context: Context) -> EmulationScreenView {
|
||||
let view = EmulationScreenView()
|
||||
configure(view.primaryScreen)
|
||||
return view
|
||||
}
|
||||
|
||||
func updateUIView(_ uiView: EmulationScreenView, context: Context) {
|
||||
//
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue