mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
nvk: Re-format nvk_sampler.c
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
cb4eff26e7
commit
100c7060d8
1 changed files with 11 additions and 8 deletions
|
|
@ -2,15 +2,17 @@
|
|||
|
||||
#include "nvk_device.h"
|
||||
|
||||
VKAPI_ATTR VkResult VKAPI_CALL nvk_CreateSampler(VkDevice _device,
|
||||
const VkSamplerCreateInfo *pCreateInfo,
|
||||
const VkAllocationCallbacks *pAllocator,
|
||||
VkSampler *pSampler)
|
||||
VKAPI_ATTR VkResult VKAPI_CALL
|
||||
nvk_CreateSampler(VkDevice _device,
|
||||
const VkSamplerCreateInfo *pCreateInfo,
|
||||
const VkAllocationCallbacks *pAllocator,
|
||||
VkSampler *pSampler)
|
||||
{
|
||||
VK_FROM_HANDLE(nvk_device, device, _device);
|
||||
struct nvk_sampler *sampler;
|
||||
|
||||
sampler = vk_object_zalloc(&device->vk, pAllocator, sizeof(*sampler), VK_OBJECT_TYPE_SAMPLER);
|
||||
sampler = vk_object_zalloc(&device->vk, pAllocator, sizeof(*sampler),
|
||||
VK_OBJECT_TYPE_SAMPLER);
|
||||
if (!sampler)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
|
|
@ -19,9 +21,10 @@ VKAPI_ATTR VkResult VKAPI_CALL nvk_CreateSampler(VkDevice _device,
|
|||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
VKAPI_ATTR void VKAPI_CALL nvk_DestroySampler(VkDevice _device,
|
||||
VkSampler _sampler,
|
||||
const VkAllocationCallbacks *pAllocator)
|
||||
VKAPI_ATTR void VKAPI_CALL
|
||||
nvk_DestroySampler(VkDevice _device,
|
||||
VkSampler _sampler,
|
||||
const VkAllocationCallbacks *pAllocator)
|
||||
{
|
||||
VK_FROM_HANDLE(nvk_device, device, _device);
|
||||
VK_FROM_HANDLE(nvk_sampler, sampler, _sampler);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue