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:
IoIxD
2025-10-01 22:19:52 +00:00
parent ada9ef307b
commit ee16da54bd
2 changed files with 4 additions and 5 deletions

View File

@@ -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);