a little cleanup
This commit is contained in:
parent
200b28ac31
commit
84d59f731a
2 changed files with 5 additions and 5 deletions
|
@ -61,10 +61,10 @@ createLogicalDevice physDevice surface = do
|
||||||
extensionNames = V.singleton Vk.KHR_SWAPCHAIN_EXTENSION_NAME
|
extensionNames = V.singleton Vk.KHR_SWAPCHAIN_EXTENSION_NAME
|
||||||
queueCreateInfo = Vk.zero
|
queueCreateInfo = Vk.zero
|
||||||
{ Vk.queueFamilyIndex = 0
|
{ Vk.queueFamilyIndex = 0
|
||||||
, Vk.queuePriorities = priorities
|
, Vk.queuePriorities = priorities
|
||||||
}
|
}
|
||||||
deviceCreateInfo = Vk.zero
|
deviceCreateInfo = Vk.zero
|
||||||
{ Vk.queueCreateInfos = V.singleton (Vk.SomeStruct queueCreateInfo)
|
{ Vk.queueCreateInfos = V.singleton (Vk.SomeStruct queueCreateInfo)
|
||||||
, Vk.enabledExtensionNames = extensionNames
|
, Vk.enabledExtensionNames = extensionNames
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,14 +20,14 @@ createInstance window = do
|
||||||
print ("activating followinfg extensions:" :: String)
|
print ("activating followinfg extensions:" :: String)
|
||||||
print windowExtensions
|
print windowExtensions
|
||||||
let createInfo = Vk.zero
|
let createInfo = Vk.zero
|
||||||
{ Vk.applicationInfo = Just Vk.zero
|
{ Vk.applicationInfo = Just Vk.zero
|
||||||
{ Vk.applicationName = Nothing
|
{ Vk.applicationName = Just "Haskell ❤️ Vulkan"
|
||||||
, Vk.apiVersion = Vk.API_VERSION_1_3
|
, Vk.apiVersion = Vk.API_VERSION_1_3
|
||||||
}
|
}
|
||||||
-- enable debug util extension for debugging purposes
|
-- enable debug util extension for debugging purposes
|
||||||
, Vk.enabledExtensionNames = V.fromList windowExtensions
|
, Vk.enabledExtensionNames = V.fromList windowExtensions
|
||||||
-- enable validation layer for debugging purposes
|
-- enable validation layer for debugging purposes
|
||||||
, Vk.enabledLayerNames = V.singleton "VK_LAYER_KHRONOS_validation"
|
, Vk.enabledLayerNames = V.singleton "VK_LAYER_KHRONOS_validation"
|
||||||
}
|
}
|
||||||
|
|
||||||
(_, inst) <- allocate
|
(_, inst) <- allocate
|
||||||
|
|
Loading…
Reference in a new issue