Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Vulkan headers to 1.3.278 #1430

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions framework/decode/pointer_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class PointerDecoder : public PointerDecoderBase

// clang-format off
size_t DecodeInt8(const uint8_t* buffer, size_t buffer_size) { return DecodeFrom<int8_t>(buffer, buffer_size); }
size_t DecodeInt16(const uint8_t* buffer, size_t buffer_size) { return DecodeFrom<int16_t>(buffer, buffer_size); }
size_t DecodeUInt16(const uint8_t* buffer, size_t buffer_size) { return DecodeFrom<uint16_t>(buffer, buffer_size); }
size_t DecodeInt32(const uint8_t* buffer, size_t buffer_size) { return DecodeFrom<int32_t>(buffer, buffer_size); }
size_t DecodeUInt32(const uint8_t* buffer, size_t buffer_size) { return DecodeFrom<uint32_t>(buffer, buffer_size); }
Expand Down
1 change: 1 addition & 0 deletions framework/decode/value_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class ValueDecoder
// Values
static size_t DecodeInt8Value(const uint8_t* buffer, size_t buffer_size, int8_t* value) { return DecodeValue(buffer, buffer_size, value); }
static size_t DecodeUInt8Value(const uint8_t* buffer, size_t buffer_size, uint8_t* value) { return DecodeValue(buffer, buffer_size, value); }
static size_t DecodeInt16Value(const uint8_t* buffer, size_t buffer_size, int16_t* value) { return DecodeValue(buffer, buffer_size, value); }
static size_t DecodeUInt16Value(const uint8_t* buffer, size_t buffer_size, uint16_t* value) { return DecodeValue(buffer, buffer_size, value); }
static size_t DecodeInt32Value(const uint8_t* buffer, size_t buffer_size, int32_t* value) { return DecodeValue(buffer, buffer_size, value); }
static size_t DecodeUInt32Value(const uint8_t* buffer, size_t buffer_size, uint32_t* value) { return DecodeValue(buffer, buffer_size, value); }
Expand Down
5 changes: 5 additions & 0 deletions framework/encode/parameter_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class ParameterEncoder

// Pointers
void EncodeUInt8Ptr(const uint8_t* ptr, bool omit_data = false, bool omit_addr = false) { EncodePointer(ptr, omit_data, omit_addr); }
void EncodeUInt16Ptr(const uint16_t* ptr, bool omit_data = false, bool omit_addr = false) { EncodePointer(ptr, omit_data, omit_addr); }
void EncodeInt32Ptr(const int32_t* ptr, bool omit_data = false, bool omit_addr = false) { EncodePointer(ptr, omit_data, omit_addr); }
void EncodeUInt32Ptr(const uint32_t* ptr, bool omit_data = false, bool omit_addr = false) { EncodePointer(ptr, omit_data, omit_addr); }

Expand Down Expand Up @@ -167,7 +168,11 @@ class ParameterEncoder
template <size_t N, size_t M>
void EncodeInt82DMatrix(const int8_t (&arr)[N][M], size_t n, size_t m, bool omit_data = false, bool omit_addr = false) { assert((N == n) && (M == m)); EncodeArray(reinterpret_cast<const int8_t*>(arr), n * m, omit_data, omit_addr); }
template <size_t N, size_t M>
void EncodeInt162DMatrix(const int16_t (&arr)[N][M], size_t n, size_t m, bool omit_data = false, bool omit_addr = false) { assert((N == n) && (M == m)); EncodeArray(reinterpret_cast<const int16_t*>(arr), n * m, omit_data, omit_addr); }
template <size_t N, size_t M>
void EncodeUInt162DMatrix(const uint16_t (&arr)[N][M], size_t n, size_t m, bool omit_data = false, bool omit_addr = false) { assert((N == n) && (M == m)); EncodeArray(reinterpret_cast<const uint16_t*>(arr), n * m, omit_data, omit_addr); }
template <size_t N, size_t M>
void EncodeInt322DMatrix(const int32_t (&arr)[N][M], size_t n, size_t m, bool omit_data = false, bool omit_addr = false) { assert((N == n) && (M == m)); EncodeArray(reinterpret_cast<const int32_t*>(arr), n * m, omit_data, omit_addr); }

// clang-format on

Expand Down
3 changes: 3 additions & 0 deletions framework/format/api_call_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,9 @@ enum ApiCallId : uint32_t
ApiCall_vkCmdPushDescriptorSetWithTemplate2KHR = MakeApiCallId(ApiFamily_Vulkan, 0x12e2),
ApiCall_vkCmdSetDescriptorBufferOffsets2EXT = MakeApiCallId(ApiFamily_Vulkan, 0x12e3),
ApiCall_vkCmdBindDescriptorBufferEmbeddedSamplers2EXT = MakeApiCallId(ApiFamily_Vulkan, 0x12e4),
ApiCall_vkCmdSetRenderingAttachmentLocationsKHR = MakeApiCallId(ApiFamily_Vulkan, 0x12e5),
ApiCall_vkCmdSetRenderingInputAttachmentIndicesKHR = MakeApiCallId(ApiFamily_Vulkan, 0x12e6),
ApiCall_vkCmdSetLineStippleKHR = MakeApiCallId(ApiFamily_Vulkan, 0x12e7),

ApiCall_VulkanLast,

Expand Down
100 changes: 84 additions & 16 deletions framework/generated/generated_decode_pnext_struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,22 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceFragmentShadingRatePropertiesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_LOCAL_READ_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceDynamicRenderingLocalReadFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_RENDERING_ATTACHMENT_LOCATION_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkRenderingAttachmentLocationInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_RENDERING_INPUT_ATTACHMENT_INDEX_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkRenderingInputAttachmentIndexInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_QUAD_CONTROL_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderQuadControlFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkSurfaceProtectedCapabilitiesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand Down Expand Up @@ -883,6 +899,14 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_ROTATE_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderSubgroupRotateFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_MAXIMAL_RECONVERGENCE_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderMaximalReconvergenceFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_5_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceMaintenance5FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand Down Expand Up @@ -911,6 +935,26 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceCooperativeMatrixPropertiesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PROFILE_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkVideoDecodeAV1ProfileInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_CAPABILITIES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkVideoDecodeAV1CapabilitiesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_SESSION_PARAMETERS_CREATE_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkVideoDecodeAV1SessionParametersCreateInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_PICTURE_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkVideoDecodeAV1PictureInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_VIDEO_DECODE_AV1_DPB_SLOT_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkVideoDecodeAV1DpbSlotInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceVideoMaintenance1FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand All @@ -931,6 +975,30 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceVertexAttributeDivisorFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderFloatControls2FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceIndexTypeUint8FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceLineRasterizationFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceLineRasterizationPropertiesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPipelineRasterizationLineStateCreateInfoKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_EXPECT_ASSUME_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderExpectAssumeFeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_6_FEATURES_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceMaintenance6FeaturesKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand Down Expand Up @@ -1395,26 +1463,10 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkSurfaceFullScreenExclusiveWin32InfoEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceLineRasterizationFeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceLineRasterizationPropertiesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPipelineRasterizationLineStateCreateInfoEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceIndexTypeUint8FeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand All @@ -1435,6 +1487,18 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkHostImageCopyDevicePerformanceQueryEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAP_MEMORY_PLACED_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceMapMemoryPlacedFeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAP_MEMORY_PLACED_PROPERTIES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceMapMemoryPlacedPropertiesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_MEMORY_MAP_PLACED_INFO_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkMemoryMapPlacedInfoEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand Down Expand Up @@ -2107,6 +2171,10 @@ size_t DecodePNextStruct(const uint8_t* parameter_buffer, size_t buffer_size, P
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceDescriptorPoolOverallocationFeaturesNV>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT16_VECTOR_FEATURES_NV:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkPhysicalDeviceShaderAtomicFloat16VectorFeaturesNV>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
break;
case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR:
(*pNext) = DecodeAllocator::Allocate<PNextTypedNode<Decoded_VkWriteDescriptorSetAccelerationStructureKHR>>();
bytes_read = (*pNext)->Decode(parameter_buffer, buffer_size);
Expand Down
Loading
Loading