Movatterモバイル変換


[0]ホーム

URL:


Vulkan API Reference Pageslatest

vkCreateSampler(3)

Name

vkCreateSampler - Create a new sampler object

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

  • device is the logical device that creates the sampler.

  • pCreateInfo is a pointer to aVkSamplerCreateInfo structurespecifying the state of the sampler object.

  • pAllocator controls host memory allocation as described in theMemory Allocation chapter.

  • pSampler is a pointer to aVkSampler handle in which theresulting sampler object is returned.

Description

Valid Usage
Valid Usage (Implicit)
  • VUID-vkCreateSampler-device-parameter
    devicemust be a validVkDevice handle

  • VUID-vkCreateSampler-pCreateInfo-parameter
    pCreateInfomust be a valid pointer to a validVkSamplerCreateInfo structure

  • VUID-vkCreateSampler-pAllocator-parameter
    IfpAllocator is notNULL,pAllocatormust be a valid pointer to a validVkAllocationCallbacks structure

  • VUID-vkCreateSampler-pSampler-parameter
    pSamplermust be a valid pointer to aVkSampler handle

See Also

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.


[8]ページ先頭

©2009-2026 Movatter.jp