You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing a null value to WriteDescriptorSet.p_image_info should be allowed when the VK_EXT_descriptor_indexing extrension is enabled. (Unless I'm missing something)
The original intention was to put undefined here, and that should work for now. Perhaps these types of pointers should be replaced by optionals though, yes.
Passing a null value to WriteDescriptorSet.p_image_info should be allowed when the VK_EXT_descriptor_indexing extrension is enabled. (Unless I'm missing something)
pub const DEVICE_EXTENSIONS = [_][*:0]const u8{ vk.extensions.khr_swapchain.name, vk.extensions.ext_descriptor_indexing.name };
// ......
var create_info = vk.DeviceCreateInfo
{
.flags = .{},
.queue_create_info_count = queue_create_info.len,
.p_queue_create_infos = &queue_create_info,
.enabled_layer_count = 0,
.pp_enabled_layer_names = undefined,
.enabled_extension_count = renderer.DEVICE_EXTENSIONS.len,
.pp_enabled_extension_names = &renderer.DEVICE_EXTENSIONS,
.p_enabled_features = null,
};
// ......
const write_descriptor_set = vk.WriteDescriptorSet {
.dst_set = descriptor_sets[0],
.dst_binding = 0,
.descriptor_count = 1,
.descriptor_type = vk.DescriptorType.uniform_buffer,
.dst_array_element = 0,
.p_image_info = null, //ERROR HERE:
.p_buffer_info = &buffer_infos };
The text was updated successfully, but these errors were encountered: