Skip to content

Commit d77cc6d

Browse files
authored
Fix example-runner-ash's validation layer errors (#700)
1 parent 819365c commit d77cc6d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/runners/ash/src/main.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ impl RenderBase {
286286
.application_version(0)
287287
.engine_name(&app_name)
288288
.engine_version(0)
289-
.api_version(vk::make_version(1, 1, 0));
289+
.api_version(vk::make_version(1, 2, 0));
290290

291291
let instance_create_info = vk::InstanceCreateInfo::builder()
292292
.application_info(&appinfo)
@@ -369,7 +369,14 @@ impl RenderBase {
369369
.queue_family_index(queue_family_index)
370370
.queue_priorities(&priorities)
371371
.build()];
372+
373+
let mut vulkan_memory_model_features =
374+
vk::PhysicalDeviceVulkanMemoryModelFeatures::builder()
375+
.vulkan_memory_model(true)
376+
.build();
377+
372378
let device_create_info = vk::DeviceCreateInfo::builder()
379+
.push_next(&mut vulkan_memory_model_features)
373380
.queue_create_infos(&queue_info)
374381
.enabled_extension_names(&device_extension_names_raw)
375382
.enabled_features(&features);

0 commit comments

Comments
 (0)