Skip to content

Commit

Permalink
Update to OpenXR 1.0.32.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusgo authored Apr 5, 2024
1 parent ccc2bbc commit a44ccb2
Show file tree
Hide file tree
Showing 7 changed files with 1,240 additions and 4 deletions.
11 changes: 11 additions & 0 deletions generator/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1948,6 +1948,15 @@ impl Parser {
(*unsafe { self.0.#ident.as_ref() }.unwrap()).into()
},
)
} else if m.ty == "XrLocalizationMapML" {
(
quote! {
LocalizationMapML
},
quote! {
LocalizationMapML::from_raw(self.0.#ident)
},
)
} else {
(
xr_var_ty(self.api_aliases.as_ref(), m),
Expand Down Expand Up @@ -2135,6 +2144,8 @@ fn xr_enum_value_name(ty: &str, name: &str) -> Ident {
"XrStructureType" => "XR_TYPE_".len(),
"XrPerfSettingsNotificationLevel" => "XR_PERF_SETTINGS_NOTIF_LEVEL_".len(),
"XrResult" => "XR_".len(),
"XrMarkerArucoDict" => "XR_MARKER_ARUCO_".len(),
"XrMarkerAprilTagDict" => "XR_MARKER_APRIL_TAG_".len(),
_ => ty.to_shouty_snake_case().len() + 1,
};
let end = if !ext.is_empty() {
Expand Down
Loading

0 comments on commit a44ccb2

Please sign in to comment.