vkCreateSampler(3)
C Specification
To create a sampler object, call:
// Provided by VK_VERSION_1_0VkResult vkCreateSampler( VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler);Parameters
deviceis the logical device that creates the sampler.pCreateInfois a pointer to aVkSamplerCreateInfo structurespecifying the state of the sampler object.pAllocatorcontrols host memory allocation as described in theMemory Allocation chapter.pSampleris a pointer to aVkSampler handle in which theresulting sampler object is returned.
Description
VUID-vkCreateSampler-device-09668
devicemust support at least one queue family with one of theVK_QUEUE_COMPUTE_BIT orVK_QUEUE_GRAPHICS_BIT capabilitiesVUID-vkCreateSampler-maxSamplerAllocationCount-04110
Theremust be less thanVkPhysicalDeviceLimits::maxSamplerAllocationCountVkSampler objects currently created on the deviceVUID-vkCreateSampler-maxSamplerAllocationCount-11412
If there are any pipelinesor shaders with embedded samplers currently created on the device, theremust be less than(maxSamplerAllocationCount- (minSamplerHeapReservedRangeWithEmbedded/samplerDescriptorSize))VkSampler objects currently created on the device
VUID-vkCreateSampler-device-parameter
devicemust be a validVkDevice handleVUID-vkCreateSampler-pCreateInfo-parameter
pCreateInfomust be a valid pointer to a validVkSamplerCreateInfo structureVUID-vkCreateSampler-pAllocator-parameter
IfpAllocatoris notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structureVUID-vkCreateSampler-pSampler-parameter
pSamplermust be a valid pointer to aVkSampler handle
Document Notes
For more information, see theVulkan Specification.
This page is extracted from the Vulkan Specification.Fixes and changes should be made to the Specification, not directly.