commit | de4124da4233d201bf1d7326acf0e8bf53d5bee5 | [log] [tgz] |
---|---|---|
author | Tony Barbour <tony@LunarG.com> | Fri Jul 03 10:33:54 2015 -0600 |
committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | Fri Jul 17 10:05:18 2015 -0600 |
tree | be88591b1ccd335b1cce73e12dd04e0db69fb7cb | |
parent | 08eec9886e666a526038c1047616831511a5f0dd [diff] [blame] |
Bug 14084 - Improve type safety and remove polymorphism
diff --git a/icd/intel/buf.c b/icd/intel/buf.c index 2a0d6fb..1932a8d 100644 --- a/icd/intel/buf.c +++ b/icd/intel/buf.c
@@ -97,3 +97,14 @@ return intel_buf_create(dev, pCreateInfo, (struct intel_buf **) pBuffer); } + +ICD_EXPORT VkResult VKAPI vkDestroyBuffer( + VkDevice device, + VkBuffer buffer) + + { + struct intel_obj *obj = intel_obj(buffer.handle); + + obj->destroy(obj); + return VK_SUCCESS; + }