Skip to content

Commit

Permalink
Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Nov 26, 2023
1 parent 36dd070 commit b49b69e
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 683 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

6 changes: 0 additions & 6 deletions Examples/visionOS/Assets.xcassets/Contents.json

This file was deleted.

22 changes: 0 additions & 22 deletions Examples/visionOS/Example_visionOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,11 @@ import SwiftUI

let logger = LBLogger.with("com.haishinkit.HaishinKit.visionOSApp")

struct ContentStageConfiguration: CompositorLayerConfiguration {
func makeConfiguration(capabilities: LayerRenderer.Capabilities, configuration: inout LayerRenderer.Configuration) {
configuration.depthFormat = .depth32Float
configuration.colorFormat = .bgra8Unorm_srgb

let foveationEnabled = capabilities.supportsFoveation
configuration.isFoveationEnabled = foveationEnabled

let options: LayerRenderer.Capabilities.SupportedLayoutsOptions = foveationEnabled ? [.foveationEnabled] : []
let supportedLayouts = capabilities.supportedLayouts(options: options)

configuration.layout = supportedLayouts.contains(.layered) ? .layered : .dedicated
}
}

@main
struct TestingApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}

ImmersiveSpace(id: "ImmersiveSpace") {
CompositorLayer(configuration: ContentStageConfiguration()) { layerRenderer in
let renderer = Renderer(layerRenderer)
renderer.startRenderLoop()
}
}.immersionStyle(selection: .constant(.full), in: .full)
}
}

This file was deleted.

Loading

0 comments on commit b49b69e

Please sign in to comment.