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
-
deviceis the logical device that will use the result handle. -
imageViewIndexis the index within the resource heap. -
samplerIndexis 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.
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.