RetroArch
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
+
Variables
a
b
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
g
i
l
m
o
p
q
r
s
t
u
v
x
+
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
q
r
s
t
v
+
Enumerator
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
u
x
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Related Functions
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Á
á
é
Ά
Ή
Α
Δ
Ε
Κ
Ο
Π
Σ
Ω
α
ε
θ
π
В
И
К
О
П
У
а
в
д
з
и
к
о
п
с
ф
ч
я
オ
キ
ス
チ
デ
レ
上
下
中
右
启
啟
回
実
屏
左
已
巻
支
显
次
聲
过
鍵
需
顯
게
구
너
넷
도
동
되
레
리
버
변
비
사
성
쉐
시
실
애
연
오
이
입
잘
조
죄
중
지
참
코
키
필
화
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Á
á
Ά
Ή
Α
Ε
Κ
Ο
К
П
а
д
з
к
オ
ス
デ
レ
上
下
中
右
启
啟
回
屏
左
巻
支
显
次
聲
顯
너
넷
동
레
버
비
시
잘
중
지
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
é
Δ
Ε
Κ
Π
Σ
Ω
α
ε
θ
π
В
И
К
О
У
в
д
з
и
к
о
п
с
ф
ч
я
キ
チ
実
已
过
鍵
需
게
구
도
되
리
변
사
성
쉐
시
실
애
연
오
이
입
조
죄
참
코
키
필
화
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
gfx
include
vulkan
vk_platform.h
Go to the documentation of this file.
1
/* File: vk_platform.h */
2
3
/*
4
** Copyright (c) 2014-2017 The Khronos Group Inc.
5
**
6
** Licensed under the Apache License, Version 2.0 (the "License");
7
** you may not use this file except in compliance with the License.
8
** You may obtain a copy of the License at
9
**
10
** http://www.apache.org/licenses/LICENSE-2.0
11
**
12
** Unless required by applicable law or agreed to in writing, software
13
** distributed under the License is distributed on an "AS IS" BASIS,
14
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
** See the License for the specific language governing permissions and
16
** limitations under the License.
17
*/
18
19
20
#ifndef VK_PLATFORM_H_
21
#define VK_PLATFORM_H_
22
23
#ifdef __cplusplus
24
extern
"C"
25
{
26
#endif
/* __cplusplus */
27
28
/*
29
***************************************************************************************************
30
* Platform-specific directives and type declarations
31
***************************************************************************************************
32
*/
33
34
/* Platform-specific calling convention macros.
35
*
36
* Platforms should define these so that Vulkan clients call Vulkan commands
37
* with the same calling conventions that the Vulkan implementation expects.
38
*
39
* VKAPI_ATTR - Placed before the return type in function declarations.
40
* Useful for C++11 and GCC/Clang-style function attribute syntax.
41
* VKAPI_CALL - Placed after the return type in function declarations.
42
* Useful for MSVC-style calling convention syntax.
43
* VKAPI_PTR - Placed between the '(' and '*' in function pointer types.
44
*
45
* Function declaration: VKAPI_ATTR void VKAPI_CALL vkCommand(void);
46
* Function pointer type: typedef void (VKAPI_PTR *PFN_vkCommand)(void);
47
*/
48
#if defined(_WIN32)
49
/* On Windows, Vulkan commands use the stdcall convention */
50
#define VKAPI_ATTR
51
#define VKAPI_CALL __stdcall
52
#define VKAPI_PTR VKAPI_CALL
53
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH < 7
54
#error "Vulkan isn't supported for the 'armeabi' NDK ABI"
55
#elif defined(__ANDROID__) && defined(__ARM_ARCH) && __ARM_ARCH >= 7 && defined(__ARM_32BIT_STATE)
56
/* On Android 32-bit ARM targets, Vulkan functions use the "hardfloat"
57
* calling convention, i.e. float parameters are passed in registers. This
58
* is true even if the rest of the application passes floats on the stack,
59
* as it does by default when compiling for the armeabi-v7a NDK ABI.
60
*/
61
#define VKAPI_ATTR __attribute__((pcs("aapcs-vfp")))
62
#define VKAPI_CALL
63
#define VKAPI_PTR VKAPI_ATTR
64
#else
65
/* On other platforms, use the default calling convention */
66
#define VKAPI_ATTR
67
#define VKAPI_CALL
68
#define VKAPI_PTR
69
#endif
70
71
#include <stddef.h>
72
73
#if !defined(VK_NO_STDINT_H)
74
#if defined(_MSC_VER) && (_MSC_VER < 1600)
75
typedef
signed
__int8
int8_t
;
76
typedef
unsigned
__int8
uint8_t
;
77
typedef
signed
__int16
int16_t
;
78
typedef
unsigned
__int16
uint16_t
;
79
typedef
signed
__int32
int32_t
;
80
typedef
unsigned
__int32
uint32_t
;
81
typedef
signed
__int64
int64_t
;
82
typedef
unsigned
__int64
uint64_t
;
83
#else
84
#include <stdint.h>
85
#endif
86
#endif
/* !defined(VK_NO_STDINT_H) */
87
88
#ifdef __cplusplus
89
}
/* extern "C" */
90
#endif
/* __cplusplus */
91
92
#endif
int16_t
signed short int16_t
Definition:
stdint.h:122
int32_t
signed int int32_t
Definition:
stdint.h:123
int64_t
signed __int64 int64_t
Definition:
stdint.h:135
uint16_t
unsigned short uint16_t
Definition:
stdint.h:125
uint64_t
unsigned __int64 uint64_t
Definition:
stdint.h:136
uint8_t
unsigned char uint8_t
Definition:
stdint.h:124
uint32_t
unsigned int uint32_t
Definition:
stdint.h:126
int8_t
signed char int8_t
Definition:
stdint.h:121
Generated by
1.8.15