• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2018 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  *
7  */
8 
9 //
10 //
11 //
12 
13 #include <stdlib.h>
14 
15 //
16 //
17 //
18 
19 #include "host_alloc.h"
20 
21 //
22 //
23 //
24 
25 void *
vk_host_alloc(VkAllocationCallbacks const * allocator,size_t size)26 vk_host_alloc(VkAllocationCallbacks const * allocator, size_t size)
27 {
28   return malloc(size);
29 }
30 
31 void *
vk_host_realloc(VkAllocationCallbacks const * allocator,void * ptr,size_t new_size)32 vk_host_realloc(VkAllocationCallbacks const * allocator, void * ptr, size_t new_size)
33 {
34   return realloc(ptr,new_size);
35 }
36 
37 void
vk_host_free(VkAllocationCallbacks const * allocator,void * ptr)38 vk_host_free(VkAllocationCallbacks const * allocator, void * ptr)
39 {
40   free(ptr);
41 }
42 
43 //
44 //
45 //
46