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);
pub fn get_device_combined_image_sampler_index_nvx(
device: vk::Device,
image_view_index: u64,
sampler_index: u64,
) -> u64;
deviceis the logical device that will use the result handle.imageViewIndexis the index within the resource heap.samplerIndexis 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)
VUID-vkGetDeviceCombinedImageSamplerIndexNVX-device-parameter
device must be a valid VkDevice handle
Parent
VK_NVX_image_view_handleType
Function Prototype