SRSDK  0.10.39
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef CNSDK_LEIA_CORE_TYPES_H
2#define CNSDK_LEIA_CORE_TYPES_H
3
4#include "leia/core/api.h"
5#include "leia/core/fwd.h"
6#include "leia/common/types.h"
8
10
11#pragma pack(push, 8)
12
19
21};
22
28};
29
32
35
37
39
40 union {
41 struct {
42 void* device;
45 struct {
46 void* device;
54 struct {
55 void* device;
57 uint32_t imageCount;
58 void* instance;
59 uint32_t minImageCount;
63 void* queue;
64 uint32_t queueFamily;
65 uint32_t subpass;
70 };
71};
72
73struct ImGuiContext;
74
77
78 void (*customGui)(void* userData, struct ImGuiContext*);
79 void* userData;
80};
81
85
87};
88
91{
92 switch (runtime)
93 {
95 return "In-App";
97 return "In-Service";
98 default:
99 return "Unknown";
100 }
101}
102
109
112
122
123 // Not currently in use, but retaining for future
125
130
133
135
138
148
151
156
159
165};
166
167#pragma pack(pop)
168
170
171#endif // CNSDK_LEIA_CORE_TYPES_H
BEGIN_CAPI_DECL typedef int32_t leia_bool
Definition types.h:10
leia_face_tracking_runtime_type
Definition types.h:82
@ LEIA_FACE_TRACKING_RUNTIME_IN_APP
Definition types.h:84
@ LEIA_FACE_TRACKING_RUNTIME_IN_SERVICE
Definition types.h:83
@ _LEIA_FACE_TRACKING_RUNTIME_MAKE_ENUM_32BIT
Definition types.h:86
void * leia_interlacer_gui_surface
HWND on Windows.
Definition types.h:31
LEIA_NODISCARD const char * leia_face_tracking_runtime_type_to_ui_str(enum leia_face_tracking_runtime_type runtime)
Definition types.h:90
leia_tile_layout
Definition types.h:139
@ LEIA_TILE_LAYOUT_LEFT_TO_RIGHT_DOWN_COLUMN_MAJOR
Definition types.h:144
@ LEIA_TILE_LAYOUT_LEFT_TO_RIGHT_UP_ROW_MAJOR
Definition types.h:141
@ _LEIA_TILE_LAYOUT_MAKE_ENUM_32BIT
Definition types.h:149
@ LEIA_TILE_LAYOUT_RIGHT_TO_LEFT_DOWN_ROW_MAJOR
Definition types.h:142
@ LEIA_TILE_LAYOUT_LEFT_TO_RIGHT_UP_COLUMN_MAJOR
Definition types.h:146
@ LEIA_TILE_LAYOUT_LEFT_TO_RIGHT_DOWN_ROW_MAJOR
Definition types.h:140
@ LEIA_TILE_LAYOUT_RIGHT_TO_LEFT_UP_COLUMN_MAJOR
Definition types.h:147
@ LEIA_TILE_LAYOUT_RIGHT_TO_LEFT_UP_ROW_MAJOR
Definition types.h:143
@ LEIA_TILE_LAYOUT_RIGHT_TO_LEFT_DOWN_COLUMN_MAJOR
Definition types.h:145
leia_view_info_mode
Definition types.h:152
@ _LEIA_VIEW_INFO_MODE_MAKE_ENUM_32BIT
Definition types.h:157
@ LEIA_VIEW_INFO_MODE_PERSPECTIVE
Definition types.h:153
@ LEIA_VIEW_INFO_MODE_PERSPECTIVE_FROM_PLANE
Definition types.h:154
@ LEIA_VIEW_INFO_MODE_ORTHOGRAPHIC
Definition types.h:155
leia_graphics_api
Definition types.h:13
@ LEIA_GRAPHICS_API_D3D11
Definition types.h:15
@ _LEIA_GRAPHICS_API_MAKE_ENUM_32BIT
Definition types.h:20
@ LEIA_GRAPHICS_API_D3D12
Definition types.h:16
@ LEIA_GRAPHICS_API_VULKAN
Definition types.h:17
@ LEIA_GRAPHICS_API_OPENGL
Definition types.h:14
@ LEIA_GRAPHICS_API_AGSL
Definition types.h:18
leia_fit_mode
Definition types.h:103
@ LEIA_FIT_MODE_CROP_CENTER
Definition types.h:108
@ LEIA_FIT_MODE_FIT_CENTER
Definition types.h:105
@ LEIA_FIT_MODE_FILL
Definition types.h:104
@ LEIA_FIT_MODE_CROP_FIT_SQUARE
Definition types.h:107
@ _LEIA_FIT_MODE_MAKE_ENUM_32BIT
Definition types.h:110
@ LEIA_FIT_MODE_CROP_FILL
Definition types.h:106
leia_calibration_pattern
Definition types.h:113
@ LEIA_CALIBRATION_PATTERN_GAMMA_BOX
Definition types.h:121
@ LEIA_CALIBRATION_PATTERN_RAINBOW_UNCORRECTED
Definition types.h:128
@ LEIA_CALIBRATION_PATTERN_NONE
Definition types.h:114
@ LEIA_CALIBRATION_PATTERN_R0_RED
Definition types.h:126
@ LEIA_CALIBRATION_PATTERN_RAINBOW_CORRECTED
Definition types.h:129
@ LEIA_CALIBRATION_PATTERN_D_OVER_N_BARS
Definition types.h:118
@ LEIA_CALIBRATION_CAMERA_ALIGNMENT
Definition types.h:119
@ LEIA_CALIBRATION_PATTERN_IMAGE_CORRECTED
Definition types.h:132
@ _LEIA_CALIBRATION_PATTERN_MAKE_ENUM_32BIT
Definition types.h:136
@ LEIA_CALIBRATION_PATTERN_IMAGE_UNCORRECTED
Definition types.h:131
@ LEIA_CALIBRATION_PATTERN_FACE
Definition types.h:134
@ LEIA_CALIBRATION_PATTERN_R0_WHITE
Definition types.h:127
@ LEIA_CALIBRATION_PATTERN_RECTIFICATION
Definition types.h:120
@ LEIA_CALIBRATION_PATTERN_THETA_LINES_RGB
Definition types.h:116
@ LEIA_CALIBRATION_PATTERN_CENTER_VIEW_CIRCLE_BARS
Definition types.h:117
@ LEIA_CALIBRATION_PATTERN_COUNT
Definition types.h:124
@ LEIA_CALIBRATION_PATTERN_ZONE_PLATE
Definition types.h:115
#define LEIA_NODISCARD
Definition defines.h:86
#define END_CAPI_DECL
Definition defines.h:74
#define BEGIN_CAPI_DECL
Definition defines.h:73
void(* customGui)(void *userData, struct ImGuiContext *)
Definition types.h:78
void * userData
Definition types.h:79
struct leia_interlacer_gui_configuration gui
Definition types.h:76
Definition interlacer.h:48
void * physicalDevice
Definition types.h:61
leia_interlacer_gui_surface surface
Definition types.h:34
uint32_t minImageCount
Definition types.h:59
struct leia_interlacer_gui_configuration::@13::@15 d3d11
enum leia_graphics_api graphicsAPI
Definition types.h:36
int rtvFormat
Definition types.h:48
uint32_t queueFamily
Definition types.h:64
void * queue
Definition types.h:63
struct leia_interlacer_gui_configuration::@13::@16 d3d12
uint32_t subpass
Definition types.h:65
void * deviceCbvSrvHeap
Definition types.h:49
void * pipelineCache
Definition types.h:62
void * commandBuffer
Definition types.h:67
uint64_t fontSrvCpuDescHandle
Definition types.h:50
void * commandList
Definition types.h:52
void * renderPass
Definition types.h:66
uint32_t imageCount
Definition types.h:57
void * descriptorPool
Definition types.h:56
int numFramesInFlight
Definition types.h:47
void * device
Definition types.h:42
uint64_t fontSrvGpuDescHandle
Definition types.h:51
int mSAASamples
Definition types.h:60
struct leia_interlacer_gui_configuration::@13::@17 vulkan
void * instance
Definition types.h:58
float fontGlobalScale
Definition types.h:38
void * commandPool
Definition types.h:68
void * deviceContext
Definition types.h:43
Definition types.h:23
leia_bool wantCaptureKeyboard
if true, do not process keyboard input
Definition types.h:26
leia_bool wantCaptureMouse
if true, do not process mouse input
Definition types.h:25
leia_bool wantTextInput
if true, open textual keyboard input
Definition types.h:27
leia_bool wantCaptureInput
if true, do not process any input
Definition types.h:24