Structures

VkPushConstantBankInfoNV

Structure specifying push constant bank information

The VkPushConstantBankInfoNV structure is defined as:

typedef struct VkPushConstantBankInfoNV {
    VkStructureType sType;
    const void* pNext;
    uint32_t bank;
} VkPushConstantBankInfoNV;
  • sType is a VkStructureType value identifying this structure.
  • pNext is NULL or a pointer to a structure extending this structure.
  • bank is the index of the hardware bank into which the data is pushed.

This structure can be chained to VkPushDataInfoEXT, VkPushConstantsInfo, VkDescriptorSetAndBindingMappingEXT, and VkIndirectCommandsLayoutTokenEXT via the pNext chain to specify push constant bank placement:

This allows for more flexible push constant management in descriptor heap scenarios where shaders access different root descriptors with specific bank requirements.

Valid Usage

VUID-VkPushConstantBankInfoNV-bank-12342

When chained to VkPushDataInfoEXT, if the command buffer is executing graphics operations, bank must be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxGraphicsPushDataBanks

VUID-VkPushConstantBankInfoNV-bank-12343

When chained to VkPushDataInfoEXT, if the command buffer is executing compute operations, bank must be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxComputePushDataBanks

VUID-VkPushConstantBankInfoNV-bank-12344

When chained to VkPushConstantsInfo, if VkPushConstantsInfo::stageFlags includes a graphics stage then bank must be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxGraphicsPushConstantBanks

VUID-VkPushConstantBankInfoNV-bank-12345

When chained to VkPushConstantsInfo, if VkPushConstantsInfo::stageFlags includes a compute stage then bankmust be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxComputePushConstantBanks

VUID-VkPushConstantBankInfoNV-bank-12346

When chained to VkDescriptorSetAndBindingMappingEXT for a graphics shader stage, bank must be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxGraphicsPushDataBanks

VUID-VkPushConstantBankInfoNV-bank-12347

When chained to VkDescriptorSetAndBindingMappingEXT for a compute shader stage, bank must be less than VkPhysicalDevicePushConstantBankPropertiesNV::maxComputePushDataBanks

Valid Usage (Implicit)

VUID-VkPushConstantBankInfoNV-sType-sType

sType must be VK_STRUCTURE_TYPE_PUSH_CONSTANT_BANK_INFO_NV