mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-01 09:49:07 +00:00
Try to lex identifiers before punctuation, and backtrack if we only see a single underscore or something that starts with two underscores. Rename the modf and frexp return types to start with two underscores. Spec PR: https://github.com/gpuweb/gpuweb/pull/2326 Change-Id: Id283af100babfe84faa183345cb8a60848140caa Fixed: tint:1292 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/70160 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: James Price <jrprice@google.com>
20 lines
305 B
WebGPU Shading Language
20 lines
305 B
WebGPU Shading Language
fn modf_ec2dbc() {
|
|
var res = modf(vec4<f32>());
|
|
}
|
|
|
|
[[stage(vertex)]]
|
|
fn vertex_main() -> [[builtin(position)]] vec4<f32> {
|
|
modf_ec2dbc();
|
|
return vec4<f32>();
|
|
}
|
|
|
|
[[stage(fragment)]]
|
|
fn fragment_main() {
|
|
modf_ec2dbc();
|
|
}
|
|
|
|
[[stage(compute), workgroup_size(1)]]
|
|
fn compute_main() {
|
|
modf_ec2dbc();
|
|
}
|