Function Prototype

vkGetDeviceCombinedImageSamplerIndexNVX

Get the handle for an image view and sampler index

To get the handle for a combined image sampler, call:

uint64_t vkGetDeviceCombinedImageSamplerIndexNVX(
    VkDevice device,
    uint64_t imageViewIndex,
    uint64_t samplerIndex);
  • device is the logical device that will use the result handle.
  • imageViewIndex is the index within the resource heap.
  • samplerIndex is the index within the sampler heap.

Shaders take imageViewIndex and samplerIndex, and multiply it by VkPhysicalDeviceDescriptorHeapPropertiesEXT::imageDescriptorSize and VkPhysicalDeviceDescriptorHeapPropertiesEXT::samplerDescriptorSize respectively to obtain the descriptor offset in bytes.

Valid Usage (Implicit)