mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 14:13:39 +00:00
Conversion can happen for structure materialization (modf, frexp). If both structure members are the same type and value, then a constant::Splat will be constructed, which needs to handle conversion. Bug: chromium:1417515 Change-Id: Iadd14ce00b8d5c22226c601ec5af9a84e6c0c5cf Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122900 Reviewed-by: James Price <jrprice@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
17 lines
250 B
GLSL
17 lines
250 B
GLSL
#version 310 es
|
|
|
|
struct modf_result_f32 {
|
|
float fract;
|
|
float whole;
|
|
};
|
|
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
void foo() {
|
|
modf_result_f32 s1 = modf_result_f32(0.0f, 0.0f);
|
|
}
|
|
|