vkr: do not assert VkStructureType

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Chia-I Wu 3 years ago
parent 0f12c46073
commit 0fdb1e5dd6
  1. 2
      src/venus-protocol/vn_protocol_renderer.h
  2. 21
      src/venus-protocol/vn_protocol_renderer_buffer.h
  3. 3
      src/venus-protocol/vn_protocol_renderer_buffer_view.h
  4. 36
      src/venus-protocol/vn_protocol_renderer_command_buffer.h
  5. 3
      src/venus-protocol/vn_protocol_renderer_command_pool.h
  6. 3
      src/venus-protocol/vn_protocol_renderer_descriptor_pool.h
  7. 12
      src/venus-protocol/vn_protocol_renderer_descriptor_set.h
  8. 12
      src/venus-protocol/vn_protocol_renderer_descriptor_set_layout.h
  9. 3
      src/venus-protocol/vn_protocol_renderer_descriptor_update_template.h
  10. 255
      src/venus-protocol/vn_protocol_renderer_device.h
  11. 24
      src/venus-protocol/vn_protocol_renderer_device_memory.h
  12. 3
      src/venus-protocol/vn_protocol_renderer_event.h
  13. 6
      src/venus-protocol/vn_protocol_renderer_fence.h
  14. 9
      src/venus-protocol/vn_protocol_renderer_framebuffer.h
  15. 36
      src/venus-protocol/vn_protocol_renderer_image.h
  16. 6
      src/venus-protocol/vn_protocol_renderer_image_view.h
  17. 6
      src/venus-protocol/vn_protocol_renderer_instance.h
  18. 42
      src/venus-protocol/vn_protocol_renderer_pipeline.h
  19. 3
      src/venus-protocol/vn_protocol_renderer_pipeline_cache.h
  20. 3
      src/venus-protocol/vn_protocol_renderer_pipeline_layout.h
  21. 3
      src/venus-protocol/vn_protocol_renderer_query_pool.h
  22. 18
      src/venus-protocol/vn_protocol_renderer_queue.h
  23. 33
      src/venus-protocol/vn_protocol_renderer_render_pass.h
  24. 6
      src/venus-protocol/vn_protocol_renderer_sampler.h
  25. 3
      src/venus-protocol/vn_protocol_renderer_sampler_ycbcr_conversion.h
  26. 12
      src/venus-protocol/vn_protocol_renderer_semaphore.h
  27. 3
      src/venus-protocol/vn_protocol_renderer_shader_module.h
  28. 18
      src/venus-protocol/vn_protocol_renderer_structs.h
  29. 9
      src/venus-protocol/vn_protocol_renderer_transport.h

@ -1,4 +1,4 @@
/* This file is generated by venus-protocol git-742fcf25. */ /* This file is generated by venus-protocol git-b183acfe. */
/* /*
* Copyright 2020 Google LLC * Copyright 2020 Google LLC

@ -33,7 +33,8 @@ vn_decode_VkExternalMemoryBufferCreateInfo_temp(struct vn_cs_decoder *dec, VkExt
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkExternalMemoryBufferCreateInfo_pnext_temp(dec);
@ -89,7 +90,8 @@ vn_decode_VkBufferOpaqueCaptureAddressCreateInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferOpaqueCaptureAddressCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkBufferOpaqueCaptureAddressCreateInfo_pnext_temp(dec);
@ -186,7 +188,8 @@ vn_decode_VkBufferCreateInfo_temp(struct vn_cs_decoder *dec, VkBufferCreateInfo
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkBufferCreateInfo_pnext_temp(dec);
@ -291,7 +294,8 @@ vn_decode_VkBindBufferMemoryDeviceGroupInfo_temp(struct vn_cs_decoder *dec, VkBi
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindBufferMemoryDeviceGroupInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindBufferMemoryDeviceGroupInfo_pnext_temp(dec);
@ -411,7 +415,8 @@ vn_decode_VkBindBufferMemoryInfo_temp(struct vn_cs_decoder *dec, VkBindBufferMem
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindBufferMemoryInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindBufferMemoryInfo_pnext_temp(dec);
@ -472,7 +477,8 @@ vn_decode_VkBufferMemoryRequirementsInfo2_temp(struct vn_cs_decoder *dec, VkBuff
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2); if (stype != VK_STRUCTURE_TYPE_BUFFER_MEMORY_REQUIREMENTS_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferMemoryRequirementsInfo2_pnext_temp(dec); val->pNext = vn_decode_VkBufferMemoryRequirementsInfo2_pnext_temp(dec);
@ -551,7 +557,8 @@ vn_decode_VkBufferDeviceAddressInfo_temp(struct vn_cs_decoder *dec, VkBufferDevi
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO); if (stype != VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferDeviceAddressInfo_pnext_temp(dec); val->pNext = vn_decode_VkBufferDeviceAddressInfo_pnext_temp(dec);

@ -37,7 +37,8 @@ vn_decode_VkBufferViewCreateInfo_temp(struct vn_cs_decoder *dec, VkBufferViewCre
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferViewCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkBufferViewCreateInfo_pnext_temp(dec);

@ -35,7 +35,8 @@ vn_decode_VkCommandBufferAllocateInfo_temp(struct vn_cs_decoder *dec, VkCommandB
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkCommandBufferAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkCommandBufferAllocateInfo_pnext_temp(dec);
@ -126,7 +127,8 @@ vn_decode_VkCommandBufferInheritanceInfo_temp(struct vn_cs_decoder *dec, VkComma
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO); if (stype != VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkCommandBufferInheritanceInfo_pnext_temp(dec); val->pNext = vn_decode_VkCommandBufferInheritanceInfo_pnext_temp(dec);
@ -210,7 +212,8 @@ vn_decode_VkDeviceGroupCommandBufferBeginInfo_temp(struct vn_cs_decoder *dec, Vk
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceGroupCommandBufferBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceGroupCommandBufferBeginInfo_pnext_temp(dec);
@ -334,7 +337,8 @@ vn_decode_VkCommandBufferBeginInfo_temp(struct vn_cs_decoder *dec, VkCommandBuff
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkCommandBufferBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkCommandBufferBeginInfo_pnext_temp(dec);
@ -636,7 +640,8 @@ vn_decode_VkMemoryBarrier_temp(struct vn_cs_decoder *dec, VkMemoryBarrier *val)
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_BARRIER); if (stype != VK_STRUCTURE_TYPE_MEMORY_BARRIER)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryBarrier_pnext_temp(dec); val->pNext = vn_decode_VkMemoryBarrier_pnext_temp(dec);
@ -699,7 +704,8 @@ vn_decode_VkBufferMemoryBarrier_temp(struct vn_cs_decoder *dec, VkBufferMemoryBa
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER); if (stype != VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBufferMemoryBarrier_pnext_temp(dec); val->pNext = vn_decode_VkBufferMemoryBarrier_pnext_temp(dec);
@ -768,7 +774,8 @@ vn_decode_VkImageMemoryBarrier_temp(struct vn_cs_decoder *dec, VkImageMemoryBarr
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER); if (stype != VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageMemoryBarrier_pnext_temp(dec); val->pNext = vn_decode_VkImageMemoryBarrier_pnext_temp(dec);
@ -842,7 +849,8 @@ vn_decode_VkDeviceGroupRenderPassBeginInfo_temp(struct vn_cs_decoder *dec, VkDev
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceGroupRenderPassBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceGroupRenderPassBeginInfo_pnext_temp(dec);
@ -913,7 +921,8 @@ vn_decode_VkRenderPassAttachmentBeginInfo_temp(struct vn_cs_decoder *dec, VkRend
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassAttachmentBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassAttachmentBeginInfo_pnext_temp(dec);
@ -1014,7 +1023,8 @@ vn_decode_VkRenderPassBeginInfo_temp(struct vn_cs_decoder *dec, VkRenderPassBegi
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassBeginInfo_pnext_temp(dec);
@ -1080,7 +1090,8 @@ vn_decode_VkSubpassBeginInfo_temp(struct vn_cs_decoder *dec, VkSubpassBeginInfo
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO); if (stype != VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubpassBeginInfo_pnext_temp(dec); val->pNext = vn_decode_VkSubpassBeginInfo_pnext_temp(dec);
@ -1135,7 +1146,8 @@ vn_decode_VkSubpassEndInfo_temp(struct vn_cs_decoder *dec, VkSubpassEndInfo *val
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBPASS_END_INFO); if (stype != VK_STRUCTURE_TYPE_SUBPASS_END_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubpassEndInfo_pnext_temp(dec); val->pNext = vn_decode_VkSubpassEndInfo_pnext_temp(dec);

@ -34,7 +34,8 @@ vn_decode_VkCommandPoolCreateInfo_temp(struct vn_cs_decoder *dec, VkCommandPoolC
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkCommandPoolCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkCommandPoolCreateInfo_pnext_temp(dec);

@ -61,7 +61,8 @@ vn_decode_VkDescriptorPoolCreateInfo_temp(struct vn_cs_decoder *dec, VkDescripto
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorPoolCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorPoolCreateInfo_pnext_temp(dec);

@ -48,7 +48,8 @@ vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_temp(struct vn_cs_d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorSetVariableDescriptorCountAllocateInfo_pnext_temp(dec);
@ -136,7 +137,8 @@ vn_decode_VkDescriptorSetAllocateInfo_temp(struct vn_cs_decoder *dec, VkDescript
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorSetAllocateInfo_pnext_temp(dec);
@ -270,7 +272,8 @@ vn_decode_VkWriteDescriptorSet_temp(struct vn_cs_decoder *dec, VkWriteDescriptor
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET); if (stype != VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkWriteDescriptorSet_pnext_temp(dec); val->pNext = vn_decode_VkWriteDescriptorSet_pnext_temp(dec);
@ -348,7 +351,8 @@ vn_decode_VkCopyDescriptorSet_temp(struct vn_cs_decoder *dec, VkCopyDescriptorSe
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET); if (stype != VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkCopyDescriptorSet_pnext_temp(dec); val->pNext = vn_decode_VkCopyDescriptorSet_pnext_temp(dec);

@ -77,7 +77,8 @@ vn_decode_VkDescriptorSetLayoutBindingFlagsCreateInfo_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetLayoutBindingFlagsCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorSetLayoutBindingFlagsCreateInfo_pnext_temp(dec);
@ -165,7 +166,8 @@ vn_decode_VkDescriptorSetLayoutCreateInfo_temp(struct vn_cs_decoder *dec, VkDesc
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetLayoutCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorSetLayoutCreateInfo_pnext_temp(dec);
@ -252,7 +254,8 @@ vn_decode_VkDescriptorSetVariableDescriptorCountLayoutSupport_partial_temp(struc
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetVariableDescriptorCountLayoutSupport_pnext_partial_temp(dec); val->pNext = vn_decode_VkDescriptorSetVariableDescriptorCountLayoutSupport_pnext_partial_temp(dec);
@ -341,7 +344,8 @@ vn_decode_VkDescriptorSetLayoutSupport_partial_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_SUPPORT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorSetLayoutSupport_pnext_partial_temp(dec); val->pNext = vn_decode_VkDescriptorSetLayoutSupport_pnext_partial_temp(dec);

@ -73,7 +73,8 @@ vn_decode_VkDescriptorUpdateTemplateCreateInfo_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DESCRIPTOR_UPDATE_TEMPLATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDescriptorUpdateTemplateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDescriptorUpdateTemplateCreateInfo_pnext_temp(dec);

@ -700,7 +700,8 @@ vn_decode_VkDeviceQueueCreateInfo_temp(struct vn_cs_decoder *dec, VkDeviceQueueC
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceQueueCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceQueueCreateInfo_pnext_temp(dec);
@ -784,7 +785,8 @@ vn_decode_VkPhysicalDeviceVariablePointersFeatures_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVariablePointersFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVariablePointersFeatures_pnext_temp(dec);
@ -813,7 +815,8 @@ vn_decode_VkPhysicalDeviceVariablePointersFeatures_partial_temp(struct vn_cs_dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVariablePointersFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVariablePointersFeatures_pnext_partial_temp(dec);
@ -897,7 +900,8 @@ vn_decode_VkPhysicalDeviceMultiviewFeatures_temp(struct vn_cs_decoder *dec, VkPh
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceMultiviewFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceMultiviewFeatures_pnext_temp(dec);
@ -927,7 +931,8 @@ vn_decode_VkPhysicalDeviceMultiviewFeatures_partial_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceMultiviewFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceMultiviewFeatures_pnext_partial_temp(dec);
@ -1014,7 +1019,8 @@ vn_decode_VkPhysicalDevice16BitStorageFeatures_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDevice16BitStorageFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDevice16BitStorageFeatures_pnext_temp(dec);
@ -1045,7 +1051,8 @@ vn_decode_VkPhysicalDevice16BitStorageFeatures_partial_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDevice16BitStorageFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDevice16BitStorageFeatures_pnext_partial_temp(dec);
@ -1127,7 +1134,8 @@ vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_temp(struct vn_cs_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_pnext_temp(dec);
@ -1155,7 +1163,8 @@ vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_partial_temp(struc
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures_pnext_partial_temp(dec);
@ -1234,7 +1243,8 @@ vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_temp(struct vn_cs_decod
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_pnext_temp(dec);
@ -1262,7 +1272,8 @@ vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_partial_temp(struct vn_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSamplerYcbcrConversionFeatures_pnext_partial_temp(dec);
@ -1341,7 +1352,8 @@ vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_temp(struct vn_cs_decoder *dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_pnext_temp(dec);
@ -1369,7 +1381,8 @@ vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_partial_temp(struct vn_cs_deco
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryFeatures_pnext_partial_temp(dec);
@ -1448,7 +1461,8 @@ vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_pnext_temp(dec);
@ -1476,7 +1490,8 @@ vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_partial_temp(struct vn_cs
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderDrawParametersFeatures_pnext_partial_temp(dec);
@ -1557,7 +1572,8 @@ vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_pnext_temp(dec);
@ -1586,7 +1602,8 @@ vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderFloat16Int8Features_pnext_partial_temp(dec);
@ -1666,7 +1683,8 @@ vn_decode_VkPhysicalDeviceHostQueryResetFeatures_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceHostQueryResetFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceHostQueryResetFeatures_pnext_temp(dec);
@ -1694,7 +1712,8 @@ vn_decode_VkPhysicalDeviceHostQueryResetFeatures_partial_temp(struct vn_cs_decod
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceHostQueryResetFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceHostQueryResetFeatures_pnext_partial_temp(dec);
@ -1811,7 +1830,8 @@ vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_temp(struct vn_cs_decoder *
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_pnext_temp(dec);
@ -1858,7 +1878,8 @@ vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_partial_temp(struct vn_cs_d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingFeatures_pnext_partial_temp(dec);
@ -1956,7 +1977,8 @@ vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_pnext_temp(dec);
@ -1984,7 +2006,8 @@ vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreFeatures_pnext_partial_temp(dec);
@ -2067,7 +2090,8 @@ vn_decode_VkPhysicalDevice8BitStorageFeatures_temp(struct vn_cs_decoder *dec, Vk
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDevice8BitStorageFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDevice8BitStorageFeatures_pnext_temp(dec);
@ -2097,7 +2121,8 @@ vn_decode_VkPhysicalDevice8BitStorageFeatures_partial_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDevice8BitStorageFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDevice8BitStorageFeatures_pnext_partial_temp(dec);
@ -2182,7 +2207,8 @@ vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_pnext_temp(dec);
@ -2212,7 +2238,8 @@ vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkanMemoryModelFeatures_pnext_partial_temp(dec);
@ -2295,7 +2322,8 @@ vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_pnext_temp(dec);
@ -2324,7 +2352,8 @@ vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceShaderAtomicInt64Features_pnext_partial_temp(dec);
@ -2406,7 +2435,8 @@ vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_pnext_temp(dec);
@ -2435,7 +2465,8 @@ vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_partial_temp(struct vn_cs
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackFeaturesEXT_pnext_partial_temp(dec);
@ -2515,7 +2546,8 @@ vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_pnext_temp(dec);
@ -2543,7 +2575,8 @@ vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceScalarBlockLayoutFeatures_pnext_partial_temp(dec);
@ -2622,7 +2655,8 @@ vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_temp(struct vn_cs_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_pnext_temp(dec);
@ -2650,7 +2684,8 @@ vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_partial_temp(struc
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceUniformBufferStandardLayoutFeatures_pnext_partial_temp(dec);
@ -2733,7 +2768,8 @@ vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_pnext_temp(dec);
@ -2763,7 +2799,8 @@ vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_partial_temp(struct vn_cs_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceBufferDeviceAddressFeatures_pnext_partial_temp(dec);
@ -2844,7 +2881,8 @@ vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_pnext_temp(dec);
@ -2872,7 +2910,8 @@ vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_partial_temp(struct vn_cs
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceImagelessFramebufferFeatures_pnext_partial_temp(dec);
@ -2951,7 +2990,8 @@ vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_temp(struct vn_cs_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_pnext_temp(dec);
@ -2979,7 +3019,8 @@ vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_partial_temp(struc
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures_pnext_partial_temp(dec);
@ -3080,7 +3121,8 @@ vn_decode_VkPhysicalDeviceVulkan11Features_temp(struct vn_cs_decoder *dec, VkPhy
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan11Features_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan11Features_pnext_temp(dec);
@ -3119,7 +3161,8 @@ vn_decode_VkPhysicalDeviceVulkan11Features_partial_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan11Features_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan11Features_pnext_partial_temp(dec);
@ -3301,7 +3344,8 @@ vn_decode_VkPhysicalDeviceVulkan12Features_temp(struct vn_cs_decoder *dec, VkPhy
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan12Features_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan12Features_pnext_temp(dec);
@ -3375,7 +3419,8 @@ vn_decode_VkPhysicalDeviceVulkan12Features_partial_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan12Features_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan12Features_pnext_partial_temp(dec);
@ -3830,7 +3875,8 @@ vn_decode_VkPhysicalDeviceFeatures2_temp(struct vn_cs_decoder *dec, VkPhysicalDe
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceFeatures2_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceFeatures2_pnext_temp(dec);
@ -4046,7 +4092,8 @@ vn_decode_VkPhysicalDeviceFeatures2_partial_temp(struct vn_cs_decoder *dec, VkPh
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceFeatures2_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceFeatures2_pnext_partial_temp(dec);
@ -4178,7 +4225,8 @@ vn_decode_VkDeviceGroupDeviceCreateInfo_temp(struct vn_cs_decoder *dec, VkDevice
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceGroupDeviceCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceGroupDeviceCreateInfo_pnext_temp(dec);
@ -4490,7 +4538,8 @@ vn_decode_VkDeviceCreateInfo_temp(struct vn_cs_decoder *dec, VkDeviceCreateInfo
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceCreateInfo_pnext_temp(dec);
@ -4680,7 +4729,8 @@ vn_decode_VkPhysicalDeviceDriverProperties_partial_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceDriverProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceDriverProperties_pnext_partial_temp(dec);
@ -4744,7 +4794,8 @@ vn_decode_VkPhysicalDeviceIDProperties_partial_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceIDProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceIDProperties_pnext_partial_temp(dec);
@ -4799,7 +4850,8 @@ vn_decode_VkPhysicalDeviceMultiviewProperties_partial_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceMultiviewProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceMultiviewProperties_pnext_partial_temp(dec);
@ -4858,7 +4910,8 @@ vn_decode_VkPhysicalDeviceSubgroupProperties_partial_temp(struct vn_cs_decoder *
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSubgroupProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSubgroupProperties_pnext_partial_temp(dec);
@ -4911,7 +4964,8 @@ vn_decode_VkPhysicalDevicePointClippingProperties_partial_temp(struct vn_cs_deco
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDevicePointClippingProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDevicePointClippingProperties_pnext_partial_temp(dec);
@ -4964,7 +5018,8 @@ vn_decode_VkPhysicalDeviceProtectedMemoryProperties_partial_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceProtectedMemoryProperties_pnext_partial_temp(dec);
@ -5019,7 +5074,8 @@ vn_decode_VkPhysicalDeviceSamplerFilterMinmaxProperties_partial_temp(struct vn_c
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSamplerFilterMinmaxProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSamplerFilterMinmaxProperties_pnext_partial_temp(dec);
@ -5074,7 +5130,8 @@ vn_decode_VkPhysicalDeviceMaintenance3Properties_partial_temp(struct vn_cs_decod
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceMaintenance3Properties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceMaintenance3Properties_pnext_partial_temp(dec);
@ -5159,7 +5216,8 @@ vn_decode_VkPhysicalDeviceFloatControlsProperties_partial_temp(struct vn_cs_deco
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceFloatControlsProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceFloatControlsProperties_pnext_partial_temp(dec);
@ -5256,7 +5314,8 @@ vn_decode_VkPhysicalDeviceDescriptorIndexingProperties_partial_temp(struct vn_cs
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceDescriptorIndexingProperties_pnext_partial_temp(dec);
@ -5309,7 +5368,8 @@ vn_decode_VkPhysicalDeviceTimelineSemaphoreProperties_partial_temp(struct vn_cs_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTimelineSemaphoreProperties_pnext_partial_temp(dec);
@ -5368,7 +5428,8 @@ vn_decode_VkPhysicalDeviceDepthStencilResolveProperties_partial_temp(struct vn_c
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceDepthStencilResolveProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceDepthStencilResolveProperties_pnext_partial_temp(dec);
@ -5439,7 +5500,8 @@ vn_decode_VkPhysicalDeviceTransformFeedbackPropertiesEXT_partial_temp(struct vn_
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackPropertiesEXT_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceTransformFeedbackPropertiesEXT_pnext_partial_temp(dec);
@ -5523,7 +5585,8 @@ vn_decode_VkPhysicalDeviceVulkan11Properties_partial_temp(struct vn_cs_decoder *
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan11Properties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan11Properties_pnext_partial_temp(dec);
@ -5680,7 +5743,8 @@ vn_decode_VkPhysicalDeviceVulkan12Properties_partial_temp(struct vn_cs_decoder *
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceVulkan12Properties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceVulkan12Properties_pnext_partial_temp(dec);
@ -5965,7 +6029,8 @@ vn_decode_VkPhysicalDeviceProperties2_partial_temp(struct vn_cs_decoder *dec, Vk
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceProperties2_pnext_partial_temp(dec);
@ -6053,7 +6118,8 @@ vn_decode_VkDrmFormatModifierPropertiesListEXT_partial_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT); if (stype != VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDrmFormatModifierPropertiesListEXT_pnext_partial_temp(dec); val->pNext = vn_decode_VkDrmFormatModifierPropertiesListEXT_pnext_partial_temp(dec);
@ -6142,7 +6208,8 @@ vn_decode_VkFormatProperties2_partial_temp(struct vn_cs_decoder *dec, VkFormatPr
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkFormatProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkFormatProperties2_pnext_partial_temp(dec);
@ -6172,7 +6239,8 @@ vn_decode_VkPhysicalDeviceExternalImageFormatInfo_temp(struct vn_cs_decoder *dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceExternalImageFormatInfo_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceExternalImageFormatInfo_pnext_temp(dec);
@ -6239,7 +6307,8 @@ vn_decode_VkPhysicalDeviceImageDrmFormatModifierInfoEXT_temp(struct vn_cs_decode
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceImageDrmFormatModifierInfoEXT_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceImageDrmFormatModifierInfoEXT_pnext_temp(dec);
@ -6346,7 +6415,8 @@ vn_decode_VkPhysicalDeviceImageFormatInfo2_temp(struct vn_cs_decoder *dec, VkPhy
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceImageFormatInfo2_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceImageFormatInfo2_pnext_temp(dec);
@ -6459,7 +6529,8 @@ vn_decode_VkExternalImageFormatProperties_partial_temp(struct vn_cs_decoder *dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalImageFormatProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkExternalImageFormatProperties_pnext_partial_temp(dec);
@ -6512,7 +6583,8 @@ vn_decode_VkSamplerYcbcrConversionImageFormatProperties_partial_temp(struct vn_c
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSamplerYcbcrConversionImageFormatProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkSamplerYcbcrConversionImageFormatProperties_pnext_partial_temp(dec);
@ -6615,7 +6687,8 @@ vn_decode_VkImageFormatProperties2_partial_temp(struct vn_cs_decoder *dec, VkIma
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageFormatProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkImageFormatProperties2_pnext_partial_temp(dec);
@ -6668,7 +6741,8 @@ vn_decode_VkQueueFamilyProperties2_partial_temp(struct vn_cs_decoder *dec, VkQue
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_QUEUE_FAMILY_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkQueueFamilyProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkQueueFamilyProperties2_pnext_partial_temp(dec);
@ -6721,7 +6795,8 @@ vn_decode_VkPhysicalDeviceMemoryProperties2_partial_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceMemoryProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceMemoryProperties2_pnext_partial_temp(dec);
@ -6755,7 +6830,8 @@ vn_decode_VkPhysicalDeviceSparseImageFormatInfo2_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SPARSE_IMAGE_FORMAT_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceSparseImageFormatInfo2_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceSparseImageFormatInfo2_pnext_temp(dec);
@ -6838,7 +6914,8 @@ vn_decode_VkSparseImageFormatProperties2_partial_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2); if (stype != VK_STRUCTURE_TYPE_SPARSE_IMAGE_FORMAT_PROPERTIES_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSparseImageFormatProperties2_pnext_partial_temp(dec); val->pNext = vn_decode_VkSparseImageFormatProperties2_pnext_partial_temp(dec);
@ -6870,7 +6947,8 @@ vn_decode_VkPhysicalDeviceExternalBufferInfo_temp(struct vn_cs_decoder *dec, VkP
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_BUFFER_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceExternalBufferInfo_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceExternalBufferInfo_pnext_temp(dec);
@ -6951,7 +7029,8 @@ vn_decode_VkExternalBufferProperties_partial_temp(struct vn_cs_decoder *dec, VkE
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_BUFFER_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalBufferProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkExternalBufferProperties_pnext_partial_temp(dec);
@ -7001,7 +7080,8 @@ vn_decode_VkPhysicalDeviceExternalSemaphoreInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_SEMAPHORE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceExternalSemaphoreInfo_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceExternalSemaphoreInfo_pnext_temp(dec);
@ -7087,7 +7167,8 @@ vn_decode_VkExternalSemaphoreProperties_partial_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_SEMAPHORE_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalSemaphoreProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkExternalSemaphoreProperties_pnext_partial_temp(dec);
@ -7117,7 +7198,8 @@ vn_decode_VkPhysicalDeviceExternalFenceInfo_temp(struct vn_cs_decoder *dec, VkPh
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FENCE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceExternalFenceInfo_pnext_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceExternalFenceInfo_pnext_temp(dec);
@ -7200,7 +7282,8 @@ vn_decode_VkExternalFenceProperties_partial_temp(struct vn_cs_decoder *dec, VkEx
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_FENCE_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalFenceProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkExternalFenceProperties_pnext_partial_temp(dec);
@ -7263,7 +7346,8 @@ vn_decode_VkPhysicalDeviceGroupProperties_partial_temp(struct vn_cs_decoder *dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES); if (stype != VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GROUP_PROPERTIES)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPhysicalDeviceGroupProperties_pnext_partial_temp(dec); val->pNext = vn_decode_VkPhysicalDeviceGroupProperties_pnext_partial_temp(dec);
@ -7295,7 +7379,8 @@ vn_decode_VkDeviceQueueInfo2_temp(struct vn_cs_decoder *dec, VkDeviceQueueInfo2
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2); if (stype != VK_STRUCTURE_TYPE_DEVICE_QUEUE_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceQueueInfo2_pnext_temp(dec); val->pNext = vn_decode_VkDeviceQueueInfo2_pnext_temp(dec);

@ -40,7 +40,8 @@ vn_decode_VkExportMemoryAllocateInfo_temp(struct vn_cs_decoder *dec, VkExportMem
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExportMemoryAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkExportMemoryAllocateInfo_pnext_temp(dec);
@ -97,7 +98,8 @@ vn_decode_VkMemoryAllocateFlagsInfo_temp(struct vn_cs_decoder *dec, VkMemoryAllo
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO); if (stype != VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryAllocateFlagsInfo_pnext_temp(dec); val->pNext = vn_decode_VkMemoryAllocateFlagsInfo_pnext_temp(dec);
@ -155,7 +157,8 @@ vn_decode_VkMemoryDedicatedAllocateInfo_temp(struct vn_cs_decoder *dec, VkMemory
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryDedicatedAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkMemoryDedicatedAllocateInfo_pnext_temp(dec);
@ -212,7 +215,8 @@ vn_decode_VkMemoryOpaqueCaptureAddressAllocateInfo_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryOpaqueCaptureAddressAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkMemoryOpaqueCaptureAddressAllocateInfo_pnext_temp(dec);
@ -268,7 +272,8 @@ vn_decode_VkImportMemoryResourceInfoMESA_temp(struct vn_cs_decoder *dec, VkImpor
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA); if (stype != VK_STRUCTURE_TYPE_IMPORT_MEMORY_RESOURCE_INFO_MESA)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImportMemoryResourceInfoMESA_pnext_temp(dec); val->pNext = vn_decode_VkImportMemoryResourceInfoMESA_pnext_temp(dec);
@ -378,7 +383,8 @@ vn_decode_VkMemoryAllocateInfo_temp(struct vn_cs_decoder *dec, VkMemoryAllocateI
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO); if (stype != VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryAllocateInfo_pnext_temp(dec); val->pNext = vn_decode_VkMemoryAllocateInfo_pnext_temp(dec);
@ -478,7 +484,8 @@ vn_decode_VkMappedMemoryRange_temp(struct vn_cs_decoder *dec, VkMappedMemoryRang
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE); if (stype != VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMappedMemoryRange_pnext_temp(dec); val->pNext = vn_decode_VkMappedMemoryRange_pnext_temp(dec);
@ -559,7 +566,8 @@ vn_decode_VkDeviceMemoryOpaqueCaptureAddressInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_MEMORY_OPAQUE_CAPTURE_ADDRESS_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceMemoryOpaqueCaptureAddressInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceMemoryOpaqueCaptureAddressInfo_pnext_temp(dec);

@ -33,7 +33,8 @@ vn_decode_VkEventCreateInfo_temp(struct vn_cs_decoder *dec, VkEventCreateInfo *v
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EVENT_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_EVENT_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkEventCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkEventCreateInfo_pnext_temp(dec);

@ -33,7 +33,8 @@ vn_decode_VkExportFenceCreateInfo_temp(struct vn_cs_decoder *dec, VkExportFenceC
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExportFenceCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkExportFenceCreateInfo_pnext_temp(dec);
@ -109,7 +110,8 @@ vn_decode_VkFenceCreateInfo_temp(struct vn_cs_decoder *dec, VkFenceCreateInfo *v
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_FENCE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_FENCE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkFenceCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkFenceCreateInfo_pnext_temp(dec);

@ -47,7 +47,8 @@ vn_decode_VkFramebufferAttachmentImageInfo_temp(struct vn_cs_decoder *dec, VkFra
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFO); if (stype != VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENT_IMAGE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp(dec); val->pNext = vn_decode_VkFramebufferAttachmentImageInfo_pnext_temp(dec);
@ -119,7 +120,8 @@ vn_decode_VkFramebufferAttachmentsCreateInfo_temp(struct vn_cs_decoder *dec, VkF
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkFramebufferAttachmentsCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkFramebufferAttachmentsCreateInfo_pnext_temp(dec);
@ -214,7 +216,8 @@ vn_decode_VkFramebufferCreateInfo_temp(struct vn_cs_decoder *dec, VkFramebufferC
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkFramebufferCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkFramebufferCreateInfo_pnext_temp(dec);

@ -55,7 +55,8 @@ vn_decode_VkExternalMemoryImageCreateInfo_temp(struct vn_cs_decoder *dec, VkExte
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkExternalMemoryImageCreateInfo_pnext_temp(dec);
@ -120,7 +121,8 @@ vn_decode_VkImageDrmFormatModifierListCreateInfoEXT_temp(struct vn_cs_decoder *d
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT); if (stype != VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageDrmFormatModifierListCreateInfoEXT_pnext_temp(dec); val->pNext = vn_decode_VkImageDrmFormatModifierListCreateInfoEXT_pnext_temp(dec);
@ -230,7 +232,8 @@ vn_decode_VkImageDrmFormatModifierExplicitCreateInfoEXT_temp(struct vn_cs_decode
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT); if (stype != VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageDrmFormatModifierExplicitCreateInfoEXT_pnext_temp(dec); val->pNext = vn_decode_VkImageDrmFormatModifierExplicitCreateInfoEXT_pnext_temp(dec);
@ -363,7 +366,8 @@ vn_decode_VkImageCreateInfo_temp(struct vn_cs_decoder *dec, VkImageCreateInfo *v
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkImageCreateInfo_pnext_temp(dec);
@ -503,7 +507,8 @@ vn_decode_VkBindImageMemoryDeviceGroupInfo_temp(struct vn_cs_decoder *dec, VkBin
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindImageMemoryDeviceGroupInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindImageMemoryDeviceGroupInfo_pnext_temp(dec);
@ -588,7 +593,8 @@ vn_decode_VkBindImagePlaneMemoryInfo_temp(struct vn_cs_decoder *dec, VkBindImage
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindImagePlaneMemoryInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindImagePlaneMemoryInfo_pnext_temp(dec);
@ -721,7 +727,8 @@ vn_decode_VkBindImageMemoryInfo_temp(struct vn_cs_decoder *dec, VkBindImageMemor
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindImageMemoryInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindImageMemoryInfo_pnext_temp(dec);
@ -785,7 +792,8 @@ vn_decode_VkImagePlaneMemoryRequirementsInfo_temp(struct vn_cs_decoder *dec, VkI
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImagePlaneMemoryRequirementsInfo_pnext_temp(dec); val->pNext = vn_decode_VkImagePlaneMemoryRequirementsInfo_pnext_temp(dec);
@ -861,7 +869,8 @@ vn_decode_VkImageMemoryRequirementsInfo2_temp(struct vn_cs_decoder *dec, VkImage
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2); if (stype != VK_STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageMemoryRequirementsInfo2_pnext_temp(dec); val->pNext = vn_decode_VkImageMemoryRequirementsInfo2_pnext_temp(dec);
@ -920,7 +929,8 @@ vn_decode_VkImageSparseMemoryRequirementsInfo2_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2); if (stype != VK_STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageSparseMemoryRequirementsInfo2_pnext_temp(dec); val->pNext = vn_decode_VkImageSparseMemoryRequirementsInfo2_pnext_temp(dec);
@ -999,7 +1009,8 @@ vn_decode_VkSparseImageMemoryRequirements2_partial_temp(struct vn_cs_decoder *de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2); if (stype != VK_STRUCTURE_TYPE_SPARSE_IMAGE_MEMORY_REQUIREMENTS_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSparseImageMemoryRequirements2_pnext_partial_temp(dec); val->pNext = vn_decode_VkSparseImageMemoryRequirements2_pnext_partial_temp(dec);
@ -1052,7 +1063,8 @@ vn_decode_VkImageDrmFormatModifierPropertiesEXT_partial_temp(struct vn_cs_decode
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT); if (stype != VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_PROPERTIES_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageDrmFormatModifierPropertiesEXT_pnext_partial_temp(dec); val->pNext = vn_decode_VkImageDrmFormatModifierPropertiesEXT_pnext_partial_temp(dec);

@ -33,7 +33,8 @@ vn_decode_VkImageViewUsageCreateInfo_temp(struct vn_cs_decoder *dec, VkImageView
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageViewUsageCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkImageViewUsageCreateInfo_pnext_temp(dec);
@ -122,7 +123,8 @@ vn_decode_VkImageViewCreateInfo_temp(struct vn_cs_decoder *dec, VkImageViewCreat
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageViewCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkImageViewCreateInfo_pnext_temp(dec);

@ -59,7 +59,8 @@ vn_decode_VkApplicationInfo_temp(struct vn_cs_decoder *dec, VkApplicationInfo *v
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_APPLICATION_INFO); if (stype != VK_STRUCTURE_TYPE_APPLICATION_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkApplicationInfo_pnext_temp(dec); val->pNext = vn_decode_VkApplicationInfo_pnext_temp(dec);
@ -156,7 +157,8 @@ vn_decode_VkInstanceCreateInfo_temp(struct vn_cs_decoder *dec, VkInstanceCreateI
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkInstanceCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkInstanceCreateInfo_pnext_temp(dec);

@ -109,7 +109,8 @@ vn_decode_VkPipelineShaderStageCreateInfo_temp(struct vn_cs_decoder *dec, VkPipe
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineShaderStageCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineShaderStageCreateInfo_pnext_temp(dec);
@ -230,7 +231,8 @@ vn_decode_VkPipelineVertexInputStateCreateInfo_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineVertexInputStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineVertexInputStateCreateInfo_pnext_temp(dec);
@ -298,7 +300,8 @@ vn_decode_VkPipelineInputAssemblyStateCreateInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineInputAssemblyStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineInputAssemblyStateCreateInfo_pnext_temp(dec);
@ -356,7 +359,8 @@ vn_decode_VkPipelineTessellationDomainOriginStateCreateInfo_temp(struct vn_cs_de
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineTessellationDomainOriginStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineTessellationDomainOriginStateCreateInfo_pnext_temp(dec);
@ -433,7 +437,8 @@ vn_decode_VkPipelineTessellationStateCreateInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineTessellationStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineTessellationStateCreateInfo_pnext_temp(dec);
@ -515,7 +520,8 @@ vn_decode_VkPipelineViewportStateCreateInfo_temp(struct vn_cs_decoder *dec, VkPi
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineViewportStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineViewportStateCreateInfo_pnext_temp(dec);
@ -582,7 +588,8 @@ vn_decode_VkPipelineRasterizationStateStreamCreateInfoEXT_temp(struct vn_cs_deco
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT); if (stype != VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineRasterizationStateStreamCreateInfoEXT_pnext_temp(dec); val->pNext = vn_decode_VkPipelineRasterizationStateStreamCreateInfoEXT_pnext_temp(dec);
@ -669,7 +676,8 @@ vn_decode_VkPipelineRasterizationStateCreateInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineRasterizationStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineRasterizationStateCreateInfo_pnext_temp(dec);
@ -752,7 +760,8 @@ vn_decode_VkPipelineMultisampleStateCreateInfo_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineMultisampleStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineMultisampleStateCreateInfo_pnext_temp(dec);
@ -849,7 +858,8 @@ vn_decode_VkPipelineDepthStencilStateCreateInfo_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineDepthStencilStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineDepthStencilStateCreateInfo_pnext_temp(dec);
@ -959,7 +969,8 @@ vn_decode_VkPipelineColorBlendStateCreateInfo_temp(struct vn_cs_decoder *dec, Vk
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineColorBlendStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineColorBlendStateCreateInfo_pnext_temp(dec);
@ -1033,7 +1044,8 @@ vn_decode_VkPipelineDynamicStateCreateInfo_temp(struct vn_cs_decoder *dec, VkPip
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineDynamicStateCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineDynamicStateCreateInfo_pnext_temp(dec);
@ -1170,7 +1182,8 @@ vn_decode_VkGraphicsPipelineCreateInfo_temp(struct vn_cs_decoder *dec, VkGraphic
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkGraphicsPipelineCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkGraphicsPipelineCreateInfo_pnext_temp(dec);
@ -1258,7 +1271,8 @@ vn_decode_VkComputePipelineCreateInfo_temp(struct vn_cs_decoder *dec, VkComputeP
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkComputePipelineCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkComputePipelineCreateInfo_pnext_temp(dec);

@ -43,7 +43,8 @@ vn_decode_VkPipelineCacheCreateInfo_temp(struct vn_cs_decoder *dec, VkPipelineCa
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineCacheCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineCacheCreateInfo_pnext_temp(dec);

@ -73,7 +73,8 @@ vn_decode_VkPipelineLayoutCreateInfo_temp(struct vn_cs_decoder *dec, VkPipelineL
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkPipelineLayoutCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkPipelineLayoutCreateInfo_pnext_temp(dec);

@ -36,7 +36,8 @@ vn_decode_VkQueryPoolCreateInfo_temp(struct vn_cs_decoder *dec, VkQueryPoolCreat
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkQueryPoolCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkQueryPoolCreateInfo_pnext_temp(dec);

@ -62,7 +62,8 @@ vn_decode_VkDeviceGroupSubmitInfo_temp(struct vn_cs_decoder *dec, VkDeviceGroupS
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceGroupSubmitInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceGroupSubmitInfo_pnext_temp(dec);
@ -123,7 +124,8 @@ vn_decode_VkProtectedSubmitInfo_temp(struct vn_cs_decoder *dec, VkProtectedSubmi
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO); if (stype != VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkProtectedSubmitInfo_pnext_temp(dec); val->pNext = vn_decode_VkProtectedSubmitInfo_pnext_temp(dec);
@ -198,7 +200,8 @@ vn_decode_VkTimelineSemaphoreSubmitInfo_temp(struct vn_cs_decoder *dec, VkTimeli
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO); if (stype != VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkTimelineSemaphoreSubmitInfo_pnext_temp(dec); val->pNext = vn_decode_VkTimelineSemaphoreSubmitInfo_pnext_temp(dec);
@ -335,7 +338,8 @@ vn_decode_VkSubmitInfo_temp(struct vn_cs_decoder *dec, VkSubmitInfo *val)
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBMIT_INFO); if (stype != VK_STRUCTURE_TYPE_SUBMIT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubmitInfo_pnext_temp(dec); val->pNext = vn_decode_VkSubmitInfo_pnext_temp(dec);
@ -552,7 +556,8 @@ vn_decode_VkDeviceGroupBindSparseInfo_temp(struct vn_cs_decoder *dec, VkDeviceGr
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO); if (stype != VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkDeviceGroupBindSparseInfo_pnext_temp(dec); val->pNext = vn_decode_VkDeviceGroupBindSparseInfo_pnext_temp(dec);
@ -691,7 +696,8 @@ vn_decode_VkBindSparseInfo_temp(struct vn_cs_decoder *dec, VkBindSparseInfo *val
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_BIND_SPARSE_INFO); if (stype != VK_STRUCTURE_TYPE_BIND_SPARSE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkBindSparseInfo_pnext_temp(dec); val->pNext = vn_decode_VkBindSparseInfo_pnext_temp(dec);

@ -217,7 +217,8 @@ vn_decode_VkRenderPassMultiviewCreateInfo_temp(struct vn_cs_decoder *dec, VkRend
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassMultiviewCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassMultiviewCreateInfo_pnext_temp(dec);
@ -306,7 +307,8 @@ vn_decode_VkRenderPassInputAttachmentAspectCreateInfo_temp(struct vn_cs_decoder
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassInputAttachmentAspectCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassInputAttachmentAspectCreateInfo_pnext_temp(dec);
@ -427,7 +429,8 @@ vn_decode_VkRenderPassCreateInfo_temp(struct vn_cs_decoder *dec, VkRenderPassCre
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassCreateInfo_pnext_temp(dec);
@ -505,7 +508,8 @@ vn_decode_VkAttachmentDescriptionStencilLayout_temp(struct vn_cs_decoder *dec, V
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT); if (stype != VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkAttachmentDescriptionStencilLayout_pnext_temp(dec); val->pNext = vn_decode_VkAttachmentDescriptionStencilLayout_pnext_temp(dec);
@ -590,7 +594,8 @@ vn_decode_VkAttachmentDescription2_temp(struct vn_cs_decoder *dec, VkAttachmentD
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2); if (stype != VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkAttachmentDescription2_pnext_temp(dec); val->pNext = vn_decode_VkAttachmentDescription2_pnext_temp(dec);
@ -657,7 +662,8 @@ vn_decode_VkAttachmentReferenceStencilLayout_temp(struct vn_cs_decoder *dec, VkA
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT); if (stype != VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkAttachmentReferenceStencilLayout_pnext_temp(dec); val->pNext = vn_decode_VkAttachmentReferenceStencilLayout_pnext_temp(dec);
@ -735,7 +741,8 @@ vn_decode_VkAttachmentReference2_temp(struct vn_cs_decoder *dec, VkAttachmentRef
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2); if (stype != VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkAttachmentReference2_pnext_temp(dec); val->pNext = vn_decode_VkAttachmentReference2_pnext_temp(dec);
@ -804,7 +811,8 @@ vn_decode_VkSubpassDescriptionDepthStencilResolve_temp(struct vn_cs_decoder *dec
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE); if (stype != VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubpassDescriptionDepthStencilResolve_pnext_temp(dec); val->pNext = vn_decode_VkSubpassDescriptionDepthStencilResolve_pnext_temp(dec);
@ -934,7 +942,8 @@ vn_decode_VkSubpassDescription2_temp(struct vn_cs_decoder *dec, VkSubpassDescrip
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2); if (stype != VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubpassDescription2_pnext_temp(dec); val->pNext = vn_decode_VkSubpassDescription2_pnext_temp(dec);
@ -1020,7 +1029,8 @@ vn_decode_VkSubpassDependency2_temp(struct vn_cs_decoder *dec, VkSubpassDependen
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2); if (stype != VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSubpassDependency2_pnext_temp(dec); val->pNext = vn_decode_VkSubpassDependency2_pnext_temp(dec);
@ -1126,7 +1136,8 @@ vn_decode_VkRenderPassCreateInfo2_temp(struct vn_cs_decoder *dec, VkRenderPassCr
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2); if (stype != VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRenderPassCreateInfo2_pnext_temp(dec); val->pNext = vn_decode_VkRenderPassCreateInfo2_pnext_temp(dec);

@ -33,7 +33,8 @@ vn_decode_VkSamplerReductionModeCreateInfo_temp(struct vn_cs_decoder *dec, VkSam
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkSamplerReductionModeCreateInfo_pnext_temp(dec);
@ -132,7 +133,8 @@ vn_decode_VkSamplerCreateInfo_temp(struct vn_cs_decoder *dec, VkSamplerCreateInf
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSamplerCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkSamplerCreateInfo_pnext_temp(dec);

@ -40,7 +40,8 @@ vn_decode_VkSamplerYcbcrConversionCreateInfo_temp(struct vn_cs_decoder *dec, VkS
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSamplerYcbcrConversionCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkSamplerYcbcrConversionCreateInfo_pnext_temp(dec);

@ -33,7 +33,8 @@ vn_decode_VkExportSemaphoreCreateInfo_temp(struct vn_cs_decoder *dec, VkExportSe
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkExportSemaphoreCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkExportSemaphoreCreateInfo_pnext_temp(dec);
@ -117,7 +118,8 @@ vn_decode_VkSemaphoreCreateInfo_temp(struct vn_cs_decoder *dec, VkSemaphoreCreat
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSemaphoreCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkSemaphoreCreateInfo_pnext_temp(dec);
@ -199,7 +201,8 @@ vn_decode_VkSemaphoreWaitInfo_temp(struct vn_cs_decoder *dec, VkSemaphoreWaitInf
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO); if (stype != VK_STRUCTURE_TYPE_SEMAPHORE_WAIT_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSemaphoreWaitInfo_pnext_temp(dec); val->pNext = vn_decode_VkSemaphoreWaitInfo_pnext_temp(dec);
@ -286,7 +289,8 @@ vn_decode_VkSemaphoreSignalInfo_temp(struct vn_cs_decoder *dec, VkSemaphoreSigna
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO); if (stype != VK_STRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSemaphoreSignalInfo_pnext_temp(dec); val->pNext = vn_decode_VkSemaphoreSignalInfo_pnext_temp(dec);

@ -43,7 +43,8 @@ vn_decode_VkShaderModuleCreateInfo_temp(struct vn_cs_decoder *dec, VkShaderModul
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkShaderModuleCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkShaderModuleCreateInfo_pnext_temp(dec);

@ -202,7 +202,8 @@ vn_decode_VkSemaphoreTypeCreateInfo_temp(struct vn_cs_decoder *dec, VkSemaphoreT
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSemaphoreTypeCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkSemaphoreTypeCreateInfo_pnext_temp(dec);
@ -268,7 +269,8 @@ vn_decode_VkImageFormatListCreateInfo_temp(struct vn_cs_decoder *dec, VkImageFor
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageFormatListCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkImageFormatListCreateInfo_pnext_temp(dec);
@ -325,7 +327,8 @@ vn_decode_VkImageStencilUsageCreateInfo_temp(struct vn_cs_decoder *dec, VkImageS
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO); if (stype != VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkImageStencilUsageCreateInfo_pnext_temp(dec); val->pNext = vn_decode_VkImageStencilUsageCreateInfo_pnext_temp(dec);
@ -441,7 +444,8 @@ vn_decode_VkSamplerYcbcrConversionInfo_temp(struct vn_cs_decoder *dec, VkSampler
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO); if (stype != VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkSamplerYcbcrConversionInfo_pnext_temp(dec); val->pNext = vn_decode_VkSamplerYcbcrConversionInfo_pnext_temp(dec);
@ -647,7 +651,8 @@ vn_decode_VkMemoryDedicatedRequirements_partial_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS); if (stype != VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryDedicatedRequirements_pnext_partial_temp(dec); val->pNext = vn_decode_VkMemoryDedicatedRequirements_pnext_partial_temp(dec);
@ -736,7 +741,8 @@ vn_decode_VkMemoryRequirements2_partial_temp(struct vn_cs_decoder *dec, VkMemory
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2); if (stype != VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryRequirements2_pnext_partial_temp(dec); val->pNext = vn_decode_VkMemoryRequirements2_pnext_partial_temp(dec);

@ -85,7 +85,8 @@ vn_decode_VkRingCreateInfoMESA_temp(struct vn_cs_decoder *dec, VkRingCreateInfoM
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_RING_CREATE_INFO_MESA); if (stype != VK_STRUCTURE_TYPE_RING_CREATE_INFO_MESA)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkRingCreateInfoMESA_pnext_temp(dec); val->pNext = vn_decode_VkRingCreateInfoMESA_pnext_temp(dec);
@ -175,7 +176,8 @@ vn_decode_VkMemoryResourceAllocationSizeProperties100000MESA_partial_temp(struct
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_RESOURCE_ALLOCATION_SIZE_PROPERTIES_100000_MESA); if (stype != VK_STRUCTURE_TYPE_MEMORY_RESOURCE_ALLOCATION_SIZE_PROPERTIES_100000_MESA)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryResourceAllocationSizeProperties100000MESA_pnext_partial_temp(dec); val->pNext = vn_decode_VkMemoryResourceAllocationSizeProperties100000MESA_pnext_partial_temp(dec);
@ -264,7 +266,8 @@ vn_decode_VkMemoryResourcePropertiesMESA_partial_temp(struct vn_cs_decoder *dec,
{ {
VkStructureType stype; VkStructureType stype;
vn_decode_VkStructureType(dec, &stype); vn_decode_VkStructureType(dec, &stype);
assert(stype == VK_STRUCTURE_TYPE_MEMORY_RESOURCE_PROPERTIES_MESA); if (stype != VK_STRUCTURE_TYPE_MEMORY_RESOURCE_PROPERTIES_MESA)
vn_cs_decoder_set_fatal(dec);
val->sType = stype; val->sType = stype;
val->pNext = vn_decode_VkMemoryResourcePropertiesMESA_pnext_partial_temp(dec); val->pNext = vn_decode_VkMemoryResourcePropertiesMESA_pnext_partial_temp(dec);

Loading…
Cancel
Save