mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 08:14:20 +00:00
Add support for VK_KHR_push_descriptor
This commit is contained in:
parent
ffeba972da
commit
236f5301fc
@ -174,6 +174,7 @@ pub const STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2_KHR: u32 = 10000590
|
||||
pub const STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2_KHR: u32 = 1000059007;
|
||||
pub const STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2_KHR: u32 = 1000059008;
|
||||
pub const STRUCTURE_TYPE_VI_SURFACE_CREATE_INFO_NN: u32 = 1000062000;
|
||||
pub const STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: u32 = 1000080000;
|
||||
pub const STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO_KHR: u32 = 1000085000;
|
||||
|
||||
pub type SystemAllocationScope = u32;
|
||||
@ -987,13 +988,15 @@ pub const DEBUG_REPORT_ERROR_BIT_EXT: u32 = 0x00000008;
|
||||
pub const DEBUG_REPORT_DEBUG_BIT_EXT: u32 = 0x00000010;
|
||||
pub type DebugReportFlagsEXT = Flags;
|
||||
|
||||
pub type DescriptorSetLayoutCreateFlagBits = u32;
|
||||
pub const DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR: u32 = 0x00000001;
|
||||
|
||||
pub type DescriptorUpdateTemplateTypeKHR = u32;
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR: u32 = 0;
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR: u32 = 1;
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_BEGIN_RANGE_KHR: u32 = DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR;
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_END_RANGE_KHR: u32 = DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR;
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_RANGE_SIZE_KHR: u32 = (DESCRIPTOR_UPDATE_TEMPLATE_TYPE_PUSH_DESCRIPTORS_KHR - DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET_KHR + 1);
|
||||
pub const DESCRIPTOR_UPDATE_TEMPLATE_TYPE_MAX_ENUM_KHR: u32 = 0x7FFFFFFF;
|
||||
pub type DescriptorUpdateTemplateCreateFlagsKHR = Flags;
|
||||
|
||||
pub type PFN_vkAllocationFunction = extern "system" fn(*mut c_void, usize, usize, SystemAllocationScope) -> *mut c_void;
|
||||
@ -2488,6 +2491,13 @@ pub struct ViSurfaceCreateInfoNN {
|
||||
pub window: *const c_void,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct PhysicalDevicePushDescriptorPropertiesKHR {
|
||||
pub sType: StructureType,
|
||||
pub pNext: *const c_void,
|
||||
pub maxPushDescriptors: u32,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct DescriptorUpdateTemplateEntryKHR {
|
||||
pub dstBinding: u32,
|
||||
@ -2746,6 +2756,7 @@ ptrs!(DevicePointers, {
|
||||
GetPhysicalDeviceQueueFamilyProperties2KHR => (physicalDevice: PhysicalDevice, pQueueFamilyPropertiesCount: *mut u32, pQueueFamilyProperties: *mut QueueFamilyProperties2KHR) -> (),
|
||||
GetPhysicalDeviceMemoryProperties2KHR => (physicalDevice: PhysicalDevice, pMemoryProperties: *mut PhysicalDeviceMemoryProperties2KHR) -> (),
|
||||
GetPhysicalDeviceSparseImageFormatProperties2KHR => (physicalDevice: PhysicalDevice, pFormatInfo: *const PhysicalDeviceSparseImageFormatInfo2KHR, pPropertyCount: *mut u32, pProperties: *mut SparseImageFormatProperties2KHR) -> (),
|
||||
CmdPushDescriptorSetKHR => (commandBuffer: CommandBuffer, pipelineBindPoint: PipelineBindPoint, layout: PipelineLayout, set: u32, descriptorWriteCount: u32, pDescriptorWrites: *const WriteDescriptorSet) -> (),
|
||||
CreateDescriptorUpdateTemplateKHR => (device: Device, pCreateInfo: *const DescriptorUpdateTemplateCreateInfoKHR, pAllocator: *const AllocationCallbacks, pDescriptorUpdateTemplate: *mut DescriptorUpdateTemplateKHR) -> Result,
|
||||
DestroyDescriptorUpdateTemplateKHR => (device: Device, descriptorUpdateTemplate: DescriptorUpdateTemplateKHR, pAllocator: *const AllocationCallbacks) -> (),
|
||||
UpdateDescriptorSetWithTemplateKHR => (device: Device, descriptorSet: DescriptorSet, descriptorUpdateTemplate: DescriptorUpdateTemplateKHR, pData: *const c_void) -> (),
|
||||
|
@ -165,6 +165,7 @@ extensions! {
|
||||
khr_display_swapchain => b"VK_KHR_display_swapchain",
|
||||
khr_maintenance1 => b"VK_KHR_maintenance1",
|
||||
khr_descriptor_update_template => b"VK_KHR_descriptor_update_template",
|
||||
khr_push_descriptor => b"VK_KHR_push_descriptor",
|
||||
}
|
||||
|
||||
/// Error that can happen when loading the list of layers.
|
||||
|
Loading…
Reference in New Issue
Block a user