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