C Specification

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

// Provided by VK_NVX_image_view_handle
uint64_t vkGetDeviceCombinedImageSamplerIndexNVX(
    VkDevice                                    device,
    uint64_t                                    imageViewIndex,
    uint64_t                                    samplerIndex);

Parameters

  • 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.

Description

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)
  • VUID-vkGetDeviceCombinedImageSamplerIndexNVX-device-parameter
    device must be a valid VkDevice handle

See Also

Document Notes

For more information, see the Vulkan Specification.

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2026 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0