Skip to content

Commit

Permalink
Update vulkan headers to 1.3.296 and bump version to 1.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
amerkoleci committed Oct 3, 2024
1 parent 7339287 commit b5d9ccb
Show file tree
Hide file tree
Showing 8 changed files with 1,117 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://github.com/amerkoleci/Vortice.Vulkan/blob/main/LICENSE)
[![Build status](https://github.com/amerkoleci/Vortice.Vulkan/workflows/Build/badge.svg)](https://github.com/amerkoleci/Vortice.Vulkan/actions)
[![Vulkan](https://img.shields.io/badge/vulkan-1.3.295-brightgreen.svg)](https://www.khronos.org/vulkan/)
[![Vulkan](https://img.shields.io/badge/vulkan-1.3.296-brightgreen.svg)](https://www.khronos.org/vulkan/)
[![NuGet](https://img.shields.io/nuget/v/Vortice.Vulkan.svg)](https://www.nuget.org/packages/Vortice.Vulkan)

**Vortice.Vulkan** is **.NET 8** and **.NET 9** low-level bindings for [Vulkan](https://www.khronos.org/vulkan/), [VulkanMemoryAllocator](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator), [SPIRV-Cross](https://github.com/KhronosGroup/SPIRV-Cross) and [shaderc](https://github.com/google/shaderc).
Expand Down
346 changes: 345 additions & 1 deletion src/Generator/vulkan/vulkan_core.h

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions src/Vortice.Vulkan/Generated/Commands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ unsafe partial class Vulkan
private static delegate* unmanaged<VkDevice, VkShaderEXT, VkAllocationCallbacks*, void> vkDestroyShaderEXT_ptr;
private static delegate* unmanaged<VkDevice, VkShaderEXT, nuint*, void*, VkResult> vkGetShaderBinaryDataEXT_ptr;
private static delegate* unmanaged<VkCommandBuffer, uint, VkShaderStageFlags*, VkShaderEXT*, void> vkCmdBindShadersEXT_ptr;
private static delegate* unmanaged<VkCommandBuffer, VkDepthClampModeEXT, VkDepthClampRangeEXT*, void> vkCmdSetDepthClampRangeEXT_ptr;
private static delegate* unmanaged<VkDevice, VkFramebuffer, uint*, VkTilePropertiesQCOM*, VkResult> vkGetFramebufferTilePropertiesQCOM_ptr;
private static delegate* unmanaged<VkDevice, VkRenderingInfo*, VkTilePropertiesQCOM*, VkResult> vkGetDynamicRenderingTilePropertiesQCOM_ptr;
private static delegate* unmanaged<VkDevice, VkSwapchainKHR, VkLatencySleepModeInfoNV*, VkResult> vkSetLatencySleepModeNV_ptr;
Expand All @@ -620,6 +621,15 @@ unsafe partial class Vulkan
private static delegate* unmanaged<VkDevice, VkSwapchainKHR, VkGetLatencyMarkerInfoNV*, void> vkGetLatencyTimingsNV_ptr;
private static delegate* unmanaged<VkQueue, VkOutOfBandQueueTypeInfoNV*, void> vkQueueNotifyOutOfBandNV_ptr;
private static delegate* unmanaged<VkCommandBuffer, VkImageAspectFlags, void> vkCmdSetAttachmentFeedbackLoopEnableEXT_ptr;
private static delegate* unmanaged<VkDevice, VkGeneratedCommandsMemoryRequirementsInfoEXT*, VkMemoryRequirements2*, void> vkGetGeneratedCommandsMemoryRequirementsEXT_ptr;
private static delegate* unmanaged<VkCommandBuffer, VkGeneratedCommandsInfoEXT*, VkCommandBuffer, void> vkCmdPreprocessGeneratedCommandsEXT_ptr;
private static delegate* unmanaged<VkCommandBuffer, VkBool32, VkGeneratedCommandsInfoEXT*, void> vkCmdExecuteGeneratedCommandsEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectCommandsLayoutCreateInfoEXT*, VkAllocationCallbacks*, VkIndirectCommandsLayoutEXT*, VkResult> vkCreateIndirectCommandsLayoutEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectCommandsLayoutEXT, VkAllocationCallbacks*, void> vkDestroyIndirectCommandsLayoutEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectExecutionSetCreateInfoEXT*, VkAllocationCallbacks*, VkIndirectExecutionSetEXT*, VkResult> vkCreateIndirectExecutionSetEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, VkAllocationCallbacks*, void> vkDestroyIndirectExecutionSetEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, uint, VkWriteIndirectExecutionSetPipelineEXT*, void> vkUpdateIndirectExecutionSetPipelineEXT_ptr;
private static delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, uint, VkWriteIndirectExecutionSetShaderEXT*, void> vkUpdateIndirectExecutionSetShaderEXT_ptr;
private static delegate* unmanaged<VkDevice, VkAccelerationStructureCreateInfoKHR*, VkAllocationCallbacks*, VkAccelerationStructureKHR*, VkResult> vkCreateAccelerationStructureKHR_ptr;
private static delegate* unmanaged<VkDevice, VkAccelerationStructureKHR, VkAllocationCallbacks*, void> vkDestroyAccelerationStructureKHR_ptr;
private static delegate* unmanaged<VkCommandBuffer, uint, VkAccelerationStructureBuildGeometryInfoKHR*, VkAccelerationStructureBuildRangeInfoKHR**, void> vkCmdBuildAccelerationStructuresKHR_ptr;
Expand Down Expand Up @@ -4812,6 +4822,11 @@ public static void vkCmdBindShadersEXT(VkCommandBuffer commandBuffer, uint stage
vkCmdBindShadersEXT_ptr(commandBuffer, stageCount, stages, shaders);
}

public static void vkCmdSetDepthClampRangeEXT(VkCommandBuffer commandBuffer, VkDepthClampModeEXT depthClampMode, VkDepthClampRangeEXT* depthClampRange)
{
vkCmdSetDepthClampRangeEXT_ptr(commandBuffer, depthClampMode, depthClampRange);
}

public static VkResult vkGetFramebufferTilePropertiesQCOM(VkDevice device, VkFramebuffer framebuffer, uint* propertiesCount, VkTilePropertiesQCOM* properties)
{
return vkGetFramebufferTilePropertiesQCOM_ptr(device, framebuffer, propertiesCount, properties);
Expand Down Expand Up @@ -4852,6 +4867,67 @@ public static void vkCmdSetAttachmentFeedbackLoopEnableEXT(VkCommandBuffer comma
vkCmdSetAttachmentFeedbackLoopEnableEXT_ptr(commandBuffer, aspectMask);
}

public static void vkGetGeneratedCommandsMemoryRequirementsEXT(VkDevice device, VkGeneratedCommandsMemoryRequirementsInfoEXT* info, VkMemoryRequirements2* memoryRequirements)
{
vkGetGeneratedCommandsMemoryRequirementsEXT_ptr(device, info, memoryRequirements);
}

public static void vkCmdPreprocessGeneratedCommandsEXT(VkCommandBuffer commandBuffer, VkGeneratedCommandsInfoEXT* generatedCommandsInfo, VkCommandBuffer stateCommandBuffer)
{
vkCmdPreprocessGeneratedCommandsEXT_ptr(commandBuffer, generatedCommandsInfo, stateCommandBuffer);
}

public static void vkCmdExecuteGeneratedCommandsEXT(VkCommandBuffer commandBuffer, VkBool32 isPreprocessed, VkGeneratedCommandsInfoEXT* generatedCommandsInfo)
{
vkCmdExecuteGeneratedCommandsEXT_ptr(commandBuffer, isPreprocessed, generatedCommandsInfo);
}

public static VkResult vkCreateIndirectCommandsLayoutEXT(VkDevice device, VkIndirectCommandsLayoutCreateInfoEXT* createInfo, VkAllocationCallbacks* allocator, VkIndirectCommandsLayoutEXT* indirectCommandsLayout)
{
return vkCreateIndirectCommandsLayoutEXT_ptr(device, createInfo, allocator, indirectCommandsLayout);
}

public static VkResult vkCreateIndirectCommandsLayoutEXT(VkDevice device, in VkIndirectCommandsLayoutCreateInfoEXT createInfo, VkAllocationCallbacks* allocator, VkIndirectCommandsLayoutEXT* indirectCommandsLayout)
{
fixed (VkIndirectCommandsLayoutCreateInfoEXT* createInfoPtr = &createInfo)
{
return vkCreateIndirectCommandsLayoutEXT_ptr(device, createInfoPtr, allocator, indirectCommandsLayout);
}
}

public static void vkDestroyIndirectCommandsLayoutEXT(VkDevice device, VkIndirectCommandsLayoutEXT indirectCommandsLayout, VkAllocationCallbacks* allocator = default)
{
vkDestroyIndirectCommandsLayoutEXT_ptr(device, indirectCommandsLayout, allocator);
}

public static VkResult vkCreateIndirectExecutionSetEXT(VkDevice device, VkIndirectExecutionSetCreateInfoEXT* createInfo, VkAllocationCallbacks* allocator, VkIndirectExecutionSetEXT* indirectExecutionSet)
{
return vkCreateIndirectExecutionSetEXT_ptr(device, createInfo, allocator, indirectExecutionSet);
}

public static VkResult vkCreateIndirectExecutionSetEXT(VkDevice device, in VkIndirectExecutionSetCreateInfoEXT createInfo, VkAllocationCallbacks* allocator, VkIndirectExecutionSetEXT* indirectExecutionSet)
{
fixed (VkIndirectExecutionSetCreateInfoEXT* createInfoPtr = &createInfo)
{
return vkCreateIndirectExecutionSetEXT_ptr(device, createInfoPtr, allocator, indirectExecutionSet);
}
}

public static void vkDestroyIndirectExecutionSetEXT(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, VkAllocationCallbacks* allocator = default)
{
vkDestroyIndirectExecutionSetEXT_ptr(device, indirectExecutionSet, allocator);
}

public static void vkUpdateIndirectExecutionSetPipelineEXT(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, uint executionSetWriteCount, VkWriteIndirectExecutionSetPipelineEXT* executionSetWrites)
{
vkUpdateIndirectExecutionSetPipelineEXT_ptr(device, indirectExecutionSet, executionSetWriteCount, executionSetWrites);
}

public static void vkUpdateIndirectExecutionSetShaderEXT(VkDevice device, VkIndirectExecutionSetEXT indirectExecutionSet, uint executionSetWriteCount, VkWriteIndirectExecutionSetShaderEXT* executionSetWrites)
{
vkUpdateIndirectExecutionSetShaderEXT_ptr(device, indirectExecutionSet, executionSetWriteCount, executionSetWrites);
}

public static VkResult vkCreateAccelerationStructureKHR(VkDevice device, VkAccelerationStructureCreateInfoKHR* createInfo, VkAllocationCallbacks* allocator, VkAccelerationStructureKHR* accelerationStructure)
{
return vkCreateAccelerationStructureKHR_ptr(device, createInfo, allocator, accelerationStructure);
Expand Down Expand Up @@ -5944,6 +6020,7 @@ private static void GenLoadDevice(IntPtr context, LoadFunction load)
vkDestroyShaderEXT_ptr = (delegate* unmanaged<VkDevice, VkShaderEXT, VkAllocationCallbacks*, void>) load(context, nameof(vkDestroyShaderEXT));
vkGetShaderBinaryDataEXT_ptr = (delegate* unmanaged<VkDevice, VkShaderEXT, nuint*, void*, VkResult>) load(context, nameof(vkGetShaderBinaryDataEXT));
vkCmdBindShadersEXT_ptr = (delegate* unmanaged<VkCommandBuffer, uint, VkShaderStageFlags*, VkShaderEXT*, void>) load(context, nameof(vkCmdBindShadersEXT));
vkCmdSetDepthClampRangeEXT_ptr = (delegate* unmanaged<VkCommandBuffer, VkDepthClampModeEXT, VkDepthClampRangeEXT*, void>) load(context, nameof(vkCmdSetDepthClampRangeEXT));
vkGetFramebufferTilePropertiesQCOM_ptr = (delegate* unmanaged<VkDevice, VkFramebuffer, uint*, VkTilePropertiesQCOM*, VkResult>) load(context, nameof(vkGetFramebufferTilePropertiesQCOM));
vkGetDynamicRenderingTilePropertiesQCOM_ptr = (delegate* unmanaged<VkDevice, VkRenderingInfo*, VkTilePropertiesQCOM*, VkResult>) load(context, nameof(vkGetDynamicRenderingTilePropertiesQCOM));
vkSetLatencySleepModeNV_ptr = (delegate* unmanaged<VkDevice, VkSwapchainKHR, VkLatencySleepModeInfoNV*, VkResult>) load(context, nameof(vkSetLatencySleepModeNV));
Expand All @@ -5952,6 +6029,15 @@ private static void GenLoadDevice(IntPtr context, LoadFunction load)
vkGetLatencyTimingsNV_ptr = (delegate* unmanaged<VkDevice, VkSwapchainKHR, VkGetLatencyMarkerInfoNV*, void>) load(context, nameof(vkGetLatencyTimingsNV));
vkQueueNotifyOutOfBandNV_ptr = (delegate* unmanaged<VkQueue, VkOutOfBandQueueTypeInfoNV*, void>) load(context, nameof(vkQueueNotifyOutOfBandNV));
vkCmdSetAttachmentFeedbackLoopEnableEXT_ptr = (delegate* unmanaged<VkCommandBuffer, VkImageAspectFlags, void>) load(context, nameof(vkCmdSetAttachmentFeedbackLoopEnableEXT));
vkGetGeneratedCommandsMemoryRequirementsEXT_ptr = (delegate* unmanaged<VkDevice, VkGeneratedCommandsMemoryRequirementsInfoEXT*, VkMemoryRequirements2*, void>) load(context, nameof(vkGetGeneratedCommandsMemoryRequirementsEXT));
vkCmdPreprocessGeneratedCommandsEXT_ptr = (delegate* unmanaged<VkCommandBuffer, VkGeneratedCommandsInfoEXT*, VkCommandBuffer, void>) load(context, nameof(vkCmdPreprocessGeneratedCommandsEXT));
vkCmdExecuteGeneratedCommandsEXT_ptr = (delegate* unmanaged<VkCommandBuffer, VkBool32, VkGeneratedCommandsInfoEXT*, void>) load(context, nameof(vkCmdExecuteGeneratedCommandsEXT));
vkCreateIndirectCommandsLayoutEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectCommandsLayoutCreateInfoEXT*, VkAllocationCallbacks*, VkIndirectCommandsLayoutEXT*, VkResult>) load(context, nameof(vkCreateIndirectCommandsLayoutEXT));
vkDestroyIndirectCommandsLayoutEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectCommandsLayoutEXT, VkAllocationCallbacks*, void>) load(context, nameof(vkDestroyIndirectCommandsLayoutEXT));
vkCreateIndirectExecutionSetEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectExecutionSetCreateInfoEXT*, VkAllocationCallbacks*, VkIndirectExecutionSetEXT*, VkResult>) load(context, nameof(vkCreateIndirectExecutionSetEXT));
vkDestroyIndirectExecutionSetEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, VkAllocationCallbacks*, void>) load(context, nameof(vkDestroyIndirectExecutionSetEXT));
vkUpdateIndirectExecutionSetPipelineEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, uint, VkWriteIndirectExecutionSetPipelineEXT*, void>) load(context, nameof(vkUpdateIndirectExecutionSetPipelineEXT));
vkUpdateIndirectExecutionSetShaderEXT_ptr = (delegate* unmanaged<VkDevice, VkIndirectExecutionSetEXT, uint, VkWriteIndirectExecutionSetShaderEXT*, void>) load(context, nameof(vkUpdateIndirectExecutionSetShaderEXT));
vkCreateAccelerationStructureKHR_ptr = (delegate* unmanaged<VkDevice, VkAccelerationStructureCreateInfoKHR*, VkAllocationCallbacks*, VkAccelerationStructureKHR*, VkResult>) load(context, nameof(vkCreateAccelerationStructureKHR));
vkDestroyAccelerationStructureKHR_ptr = (delegate* unmanaged<VkDevice, VkAccelerationStructureKHR, VkAllocationCallbacks*, void>) load(context, nameof(vkDestroyAccelerationStructureKHR));
vkCmdBuildAccelerationStructuresKHR_ptr = (delegate* unmanaged<VkCommandBuffer, uint, VkAccelerationStructureBuildGeometryInfoKHR*, VkAccelerationStructureBuildRangeInfoKHR**, void>) load(context, nameof(vkCmdBuildAccelerationStructuresKHR));
Expand Down
Loading

0 comments on commit b5d9ccb

Please sign in to comment.