C Specification
To write sampler descriptors to memory, call:
// Provided by VK_EXT_descriptor_heap
VkResult vkWriteSamplerDescriptorsEXT(
VkDevice device,
uint32_t samplerCount,
const VkSamplerCreateInfo* pSamplers,
const VkHostAddressRangeEXT* pDescriptors);
Parameters
-
deviceis the logical device that the descriptors are for. -
samplerCountis the number of elements inpSamplersandpDescriptors. -
pSamplersis a pointer to an array of VkSamplerCreateInfo structures defining properties of the sampler descriptors that will be written. -
pDescriptorsis a pointer to an array of VkHostAddressRangeEXT structures defining the host address ranges that will be written to for each descriptor.
Description
Each descriptor will be written to pDescriptors[i]→address where
i is the index of its create info in pSamplers.
Descriptors written using a fully identical VkSamplerCreateInfo structure on the same VkDevice will always return the same bit pattern. If the descriptorHeapCaptureReplay feature is enabled, descriptors written using a fully identical VkSamplerCreateInfo structure on a VkDevice created from the same VkPhysicalDevice with identical parameters will always return the same bit pattern.
|
Note
|
YCBCR samplers must be embedded in a shader by using VkShaderDescriptorSetAndBindingMappingInfoEXT, they cannot be specified here. |
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.