Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshifter committed Feb 4, 2024
1 parent 6ed49cd commit 5c665fc
Show file tree
Hide file tree
Showing 9 changed files with 1,181 additions and 1,944 deletions.
5 changes: 5 additions & 0 deletions codegen/src/outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ impl ContextBuilder {
.with_key_val("vec4_t", &format!("{prefix}Vec4"))
.with_self_t(&format!("{prefix}Vec{dim}"))
.with_dimension(dim)
.with_is_align(false)
}

pub fn new_vec2_swizzle_impl() -> Self {
Expand All @@ -38,7 +39,9 @@ impl ContextBuilder {
pub fn new_vec3a_swizzle_impl() -> Self {
Self::new_vec3_swizzle_impl()
.with_key_val("vec3_t", "Vec3A")
.with_key_val("vec4_t", "Vec4A")
.with_self_t("Vec3A")
.with_is_align(true)
}

pub fn new_vec4_swizzle_impl() -> Self {
Expand All @@ -47,8 +50,10 @@ impl ContextBuilder {

pub fn new_vec4a_swizzle_impl() -> Self {
Self::new_vec4_swizzle_impl()
.with_key_val("vec3_t", "Vec3A")
.with_key_val("vec4_t", "Vec4A")
.with_self_t("Vec4A")
.with_is_align(true)
}

pub fn new_dvec2_swizzle_impl() -> Self {
Expand Down
Loading

0 comments on commit 5c665fc

Please sign in to comment.