xref: /aosp_15_r20/external/swiftshader/include/vulkan/vulkan_ggp.h (revision 03ce13f70fcc45d86ee91b7ee4cab1936a95046e)
1*03ce13f7SAndroid Build Coastguard Worker #ifndef VULKAN_GGP_H_
2*03ce13f7SAndroid Build Coastguard Worker #define VULKAN_GGP_H_ 1
3*03ce13f7SAndroid Build Coastguard Worker 
4*03ce13f7SAndroid Build Coastguard Worker /*
5*03ce13f7SAndroid Build Coastguard Worker ** Copyright 2015-2024 The Khronos Group Inc.
6*03ce13f7SAndroid Build Coastguard Worker **
7*03ce13f7SAndroid Build Coastguard Worker ** SPDX-License-Identifier: Apache-2.0
8*03ce13f7SAndroid Build Coastguard Worker */
9*03ce13f7SAndroid Build Coastguard Worker 
10*03ce13f7SAndroid Build Coastguard Worker /*
11*03ce13f7SAndroid Build Coastguard Worker ** This header is generated from the Khronos Vulkan XML API Registry.
12*03ce13f7SAndroid Build Coastguard Worker **
13*03ce13f7SAndroid Build Coastguard Worker */
14*03ce13f7SAndroid Build Coastguard Worker 
15*03ce13f7SAndroid Build Coastguard Worker 
16*03ce13f7SAndroid Build Coastguard Worker #ifdef __cplusplus
17*03ce13f7SAndroid Build Coastguard Worker extern "C" {
18*03ce13f7SAndroid Build Coastguard Worker #endif
19*03ce13f7SAndroid Build Coastguard Worker 
20*03ce13f7SAndroid Build Coastguard Worker 
21*03ce13f7SAndroid Build Coastguard Worker 
22*03ce13f7SAndroid Build Coastguard Worker // VK_GGP_stream_descriptor_surface is a preprocessor guard. Do not pass it to API calls.
23*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_stream_descriptor_surface 1
24*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_STREAM_DESCRIPTOR_SURFACE_SPEC_VERSION 1
25*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_STREAM_DESCRIPTOR_SURFACE_EXTENSION_NAME "VK_GGP_stream_descriptor_surface"
26*03ce13f7SAndroid Build Coastguard Worker typedef VkFlags VkStreamDescriptorSurfaceCreateFlagsGGP;
27*03ce13f7SAndroid Build Coastguard Worker typedef struct VkStreamDescriptorSurfaceCreateInfoGGP {
28*03ce13f7SAndroid Build Coastguard Worker     VkStructureType                            sType;
29*03ce13f7SAndroid Build Coastguard Worker     const void*                                pNext;
30*03ce13f7SAndroid Build Coastguard Worker     VkStreamDescriptorSurfaceCreateFlagsGGP    flags;
31*03ce13f7SAndroid Build Coastguard Worker     GgpStreamDescriptor                        streamDescriptor;
32*03ce13f7SAndroid Build Coastguard Worker } VkStreamDescriptorSurfaceCreateInfoGGP;
33*03ce13f7SAndroid Build Coastguard Worker 
34*03ce13f7SAndroid Build Coastguard Worker typedef VkResult (VKAPI_PTR *PFN_vkCreateStreamDescriptorSurfaceGGP)(VkInstance instance, const VkStreamDescriptorSurfaceCreateInfoGGP* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSurfaceKHR* pSurface);
35*03ce13f7SAndroid Build Coastguard Worker 
36*03ce13f7SAndroid Build Coastguard Worker #ifndef VK_NO_PROTOTYPES
37*03ce13f7SAndroid Build Coastguard Worker VKAPI_ATTR VkResult VKAPI_CALL vkCreateStreamDescriptorSurfaceGGP(
38*03ce13f7SAndroid Build Coastguard Worker     VkInstance                                  instance,
39*03ce13f7SAndroid Build Coastguard Worker     const VkStreamDescriptorSurfaceCreateInfoGGP* pCreateInfo,
40*03ce13f7SAndroid Build Coastguard Worker     const VkAllocationCallbacks*                pAllocator,
41*03ce13f7SAndroid Build Coastguard Worker     VkSurfaceKHR*                               pSurface);
42*03ce13f7SAndroid Build Coastguard Worker #endif
43*03ce13f7SAndroid Build Coastguard Worker 
44*03ce13f7SAndroid Build Coastguard Worker 
45*03ce13f7SAndroid Build Coastguard Worker // VK_GGP_frame_token is a preprocessor guard. Do not pass it to API calls.
46*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_frame_token 1
47*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_FRAME_TOKEN_SPEC_VERSION   1
48*03ce13f7SAndroid Build Coastguard Worker #define VK_GGP_FRAME_TOKEN_EXTENSION_NAME "VK_GGP_frame_token"
49*03ce13f7SAndroid Build Coastguard Worker typedef struct VkPresentFrameTokenGGP {
50*03ce13f7SAndroid Build Coastguard Worker     VkStructureType    sType;
51*03ce13f7SAndroid Build Coastguard Worker     const void*        pNext;
52*03ce13f7SAndroid Build Coastguard Worker     GgpFrameToken      frameToken;
53*03ce13f7SAndroid Build Coastguard Worker } VkPresentFrameTokenGGP;
54*03ce13f7SAndroid Build Coastguard Worker 
55*03ce13f7SAndroid Build Coastguard Worker 
56*03ce13f7SAndroid Build Coastguard Worker #ifdef __cplusplus
57*03ce13f7SAndroid Build Coastguard Worker }
58*03ce13f7SAndroid Build Coastguard Worker #endif
59*03ce13f7SAndroid Build Coastguard Worker 
60*03ce13f7SAndroid Build Coastguard Worker #endif
61