mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-08 06:05:55 +00:00
Allow the resolver to understand builtin structures, like __frexp_result_f16. This allows backend transforms to declare the types, even if they're "untypable" by the user. Bug: chromium:1430309 Change-Id: I392709118182a058f737ccf1b7b46fc6b0b7264d Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/129482 Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
12 lines
185 B
WebGPU Shading Language
12 lines
185 B
WebGPU Shading Language
struct frexp_result_f32 {
|
|
f : f32,
|
|
}
|
|
|
|
var<private> a : frexp_result_f32;
|
|
var<private> b = frexp(1);
|
|
|
|
@fragment
|
|
fn main() -> @location(0) vec4f {
|
|
return vec4f(a.f, b.fract, 0, 0);
|
|
}
|