mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 01:49:47 +00:00
vulkan: apply enabled layers to device creation. also remove the layer setting from the example.
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@118 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
MwVulkanConfig vulkan_config = {
|
||||
.api_version = VK_API_VERSION_1_0,
|
||||
.vk_version = VK_VERSION_1_0,
|
||||
.validation_layers = VK_TRUE,
|
||||
.validation_layers = VK_FALSE,
|
||||
};
|
||||
|
||||
// convienence macro for handling vulkan errors
|
||||
@@ -351,8 +351,8 @@ static MwErrorEnum vulkan_devices_setup(MwWidget handle, vulkan_t* o) {
|
||||
.pEnabledFeatures = NULL,
|
||||
.enabledExtensionCount = o->vkDeviceExtensionCount,
|
||||
.ppEnabledExtensionNames = o->vkDeviceExtensions,
|
||||
.enabledLayerCount = 0,
|
||||
.ppEnabledLayerNames = NULL,
|
||||
.enabledLayerCount = o->vkLayerCount,
|
||||
.ppEnabledLayerNames = o->vkLayers,
|
||||
};
|
||||
|
||||
VK_CMD(_vkCreateDevice(o->vkPhysicalDevice, &createInfo, NULL, &o->vkLogicalDevice) != VK_SUCCESS);
|
||||
|
||||
Reference in New Issue
Block a user