Skip to content

Commit

Permalink
Remove use of VK_LAYER_KHRONOS_validation
Browse files Browse the repository at this point in the history
I have no idea what this is supposed to do, but it is causing the
demo app to crash with a LAYER_NOT_INITIALIZED error.
  • Loading branch information
wjk committed Dec 31, 2023
1 parent f942b08 commit 54bfc81
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Volcano/Sources/Volcano/Instance.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public final class Instance: SharedPointerStorage<VkInstance_T> {
public init(extensions: Set<InstanceExtension> = []) {
do {
let vulkanVersion: CUnsignedInt = (1 << 22) | (3 << 12) | 0

var layers: [String] = []
let layers: [String] = []

var extensions = extensions + [
.getPhysicalDeviceProperties2Khr,
Expand All @@ -65,11 +64,6 @@ public final class Instance: SharedPointerStorage<VkInstance_T> {
extensions.insert(.externalFenceCapabilitiesKhr)
#endif

#if DEBUG
layers.append("VK_LAYER_KHRONOS_validation")
extensions.insert(.debugUtilsExt)
#endif

let handle = try VkInstanceCreateInfo.lava {
(\.enabledLayerCount, \.ppEnabledLayerNames) <- layers
\.pApplicationInfo <- {
Expand Down

0 comments on commit 54bfc81

Please sign in to comment.