xref: /aosp_15_r20/external/mesa3d/src/gfxstream/guest/vulkan_enc/Validation.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright 2018 Google
3  * SPDX-License-Identifier: MIT
4  */
5 #pragma once
6 
7 #include <vulkan/vulkan.h>
8 
9 namespace gfxstream {
10 namespace vk {
11 
12 class Validation {
13    public:
14     VkResult on_vkFlushMappedMemoryRanges(void* context, VkResult input_result, VkDevice device,
15                                           uint32_t memoryRangeCount,
16                                           const VkMappedMemoryRange* pMemoryRanges);
17     VkResult on_vkInvalidateMappedMemoryRanges(void* context, VkResult input_result,
18                                                VkDevice device, uint32_t memoryRangeCount,
19                                                const VkMappedMemoryRange* pMemoryRanges);
20 };
21 
22 }  // namespace vk
23 }  // namespace gfxstream
24