Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Aug 23, 2023
1 parent 19152e6 commit 733741e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,7 @@ pub struct EntryPoint {
pub function: Function,
}

#[derive(Debug, PartialEq, Eq, Hash, Copy, Clone)]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "clone", derive(Clone))]
#[cfg_attr(feature = "serialize", derive(Serialize))]
#[cfg_attr(feature = "deserialize", derive(Deserialize))]
Expand Down
16 changes: 8 additions & 8 deletions tests/out/glsl/math-functions.main.Fragment.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ struct __modf_result_f32_1 {
int exp_;
};

__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
__modf_result_vec2_f32_ naga_modf(vec2 arg) {
vec2 other;
vec2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
}

__modf_result_f32_1 naga_frexp(float arg) {
Expand All @@ -28,10 +28,10 @@ __modf_result_f32_1 naga_frexp(float arg) {
return __modf_result_f32_1(fract, other);
}

__modf_result_vec2_f32_ naga_modf(vec2 arg) {
vec2 other;
vec2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
}

void main() {
Expand Down
16 changes: 8 additions & 8 deletions tests/out/hlsl/math-functions.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ struct __modf_result_f32_1 {
};


__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
__modf_result_vec2_f32_ naga_modf(2 arg) {
2 other;
2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
}

__modf_result_f32_1 naga_frexp(float arg) {
Expand All @@ -26,10 +26,10 @@ __modf_result_f32_1 naga_frexp(float arg) {
return __modf_result_f32_1(fract, other);
}

__modf_result_vec2_f32_ naga_modf(2 arg) {
2 other;
2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
}
void main()
{
Expand Down
16 changes: 8 additions & 8 deletions tests/out/msl/math-functions.msl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ struct __modf_result_f32_1 {
int exp;
};

__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
__modf_result_vec2_f32_ naga_modf(metal::float2 arg) {
metal::float2 other;
metal::float2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
}

__modf_result_f32_1 naga_frexp(float arg) {
Expand All @@ -29,10 +29,10 @@ __modf_result_f32_1 naga_frexp(float arg) {
return __modf_result_f32_1(fract, other);
}

__modf_result_vec2_f32_ naga_modf(metal::float2 arg) {
metal::float2 other;
metal::float2 fract = modf(arg, other);
return __modf_result_vec2_f32_(fract, other);
__modf_result_f32_ naga_modf(float arg) {
float other;
float fract = modf(arg, other);
return __modf_result_f32_(fract, other);
}

fragment void main_(
Expand Down

0 comments on commit 733741e

Please sign in to comment.