summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-07-14 10:34:00 -0700
committerChad Versace <[email protected]>2015-07-14 10:34:00 -0700
commitec5e2f4992a5ddd7aeb4385324fb4d674d168d36 (patch)
treedfdf148a7e95bfd704b05e5db786c56c7999fc75 /src
parenta6841989357d23b7736065a7d34e673f8831aae9 (diff)
vk/0.132: Add vkDestroySampler()
Diffstat (limited to 'src')
-rw-r--r--src/vulkan/device.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/vulkan/device.c b/src/vulkan/device.c
index 7c896cdd20c..b42d6f4f3b4 100644
--- a/src/vulkan/device.c
+++ b/src/vulkan/device.c
@@ -1240,6 +1240,8 @@ VkResult anv_DestroyObject(
return anv_DestroyPipelineLayout(_device, (VkPipelineLayout) _object);
case VK_OBJECT_TYPE_SAMPLER:
+ return anv_DestroySampler(_device, (VkSampler) _object);
+
case VK_OBJECT_TYPE_DESCRIPTOR_SET:
case VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT:
case VK_OBJECT_TYPE_DYNAMIC_RS_STATE:
@@ -1818,6 +1820,18 @@ VkResult anv_CreateSampler(
return VK_SUCCESS;
}
+VkResult anv_DestroySampler(
+ VkDevice _device,
+ VkSampler _sampler)
+{
+ ANV_FROM_HANDLE(anv_device, device, _device);
+ ANV_FROM_HANDLE(anv_sampler, sampler, _sampler);
+
+ anv_device_free(device, sampler);
+
+ return VK_SUCCESS;
+}
+
// Descriptor set functions
VkResult anv_CreateDescriptorSetLayout(