Gazebo Rendering

API Reference

9.0.0~pre2
RenderEngineVulkanExternalDeviceStructs.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17#ifndef GZ_RENDERING_RENDERENGINE_VULKANEXTERNALDEVICESTRUCTS_HH_
18#define GZ_RENDERING_RENDERENGINE_VULKANEXTERNALDEVICESTRUCTS_HH_
19
20#ifndef __APPLE__
21
22
23#include <vector>
24#include "gz/rendering/Export.hh"
25#include "gz/rendering/config.hh"
26
27#ifdef GZ_RENDERING_HAVE_VULKAN
28
29#include "vulkan/vulkan_core.h"
30
31namespace gz
32{
33 namespace rendering
34 {
35 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
40 struct GZ_RENDERING_VISIBLE GzVulkanExternalInstance
41 {
42 VkInstance instance;
43 std::vector<VkLayerProperties> instanceLayers;
44 std::vector<VkExtensionProperties> instanceExtensions;
45 };
46
51 struct GZ_RENDERING_VISIBLE GzVulkanExternalDevice
52 {
53 VkPhysicalDevice physicalDevice;
54 VkDevice device;
56 VkQueue graphicsQueue;
57 VkQueue presentQueue;
58 };
59 }
60 }
61}
62
63#endif
64#endif
65#endif