1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! librashader instance version helpers.
/// API version type alias.
pub type LIBRASHADER_API_VERSION = usize;
/// ABI version type alias.
pub type LIBRASHADER_ABI_VERSION = usize;
/// The current version of the librashader API.
/// Pass this into `version` for config structs.
///
/// API versions are backwards compatible. It is valid to load
/// a librashader C API instance for all API versions less than
/// or equal to LIBRASHADER_CURRENT_VERSION, and subsequent API
/// versions must remain backwards compatible.
/// ## API Versions
/// - API version 0: 0.1.0
/// - API version 1: 0.2.0
/// - Added rotation, total_subframes, current_subframes to frame options
/// - Added preset context API
/// - Added Metal runtime API
/// - API version 2: 0.6.0
/// - Added original aspect uniforms
/// - Added frame time uniforms
/// - API version 3: 0.10.0
/// - Added frames_in_flight to Direct3D 12 filter chain options
/// - API version 4: 0.10.x
/// - Added support for HDR uniforms. Filter chain can set `color_space` to
/// enable HDR, and frame options should be passed in brightness_nits, expand_gamut
/// - Added libra_preset_color_space to query the preferred HDR color space (if any) of
/// a shader preset.
/// - API version 5: 0.10.x
/// - Added sensor uniform inputs
pub const LIBRASHADER_CURRENT_VERSION: LIBRASHADER_API_VERSION = 5;
/// The current version of the librashader ABI.
/// Used by the loader to check ABI compatibility.
///
/// ABI version 0 is reserved as a sentinel value.
///
/// ABI versions are not backwards compatible. It is not
/// valid to load a librashader C API instance for any ABI
/// version not equal to LIBRASHADER_CURRENT_ABI.
///
/// ## ABI Versions
/// - ABI version 0: null instance (unloaded)
/// - ABI version 1: 0.1.0
/// - ABI version 2: 0.5.0
/// - Reduced texture size information needed for some runtimes.
/// - Removed wrapper structs for Direct3D 11 SRV and RTV handles.
/// - Removed `gl_context_init`.
/// - Make viewport handling consistent across runtimes, which are now
/// span the output render target if omitted.
pub const LIBRASHADER_CURRENT_ABI: LIBRASHADER_ABI_VERSION = 2;
/// Function pointer definition for libra_abi_version
pub type PFN_libra_instance_abi_version = extern "C" fn ;
/// Get the ABI version of the loaded instance.
pub extern "C"
/// Function pointer definition for libra_abi_version
pub type PFN_libra_instance_api_version = extern "C" fn ;
/// Get the API version of the loaded instance.
pub extern "C"