mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
[wgsl-reader] Add workgroup_size parsing
This CL adds parsing of the `workgroup_size` function decoration. Change-Id: Ia90efc2c014ac0e1614429280cc903d30cf8171d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/28663 Commit-Queue: dan sinclair <dsinclair@chromium.org> Reviewed-by: Sarah Mashayekhi <sarahmashay@google.com>
This commit is contained in:
committed by
Commit Bot service account
parent
643827967e
commit
d05f93fd8e
@@ -15,3 +15,9 @@
|
||||
fn main() -> f32 {
|
||||
return ((2. * 3.) - 4.) / 5.;
|
||||
}
|
||||
|
||||
[[workgroup_size(2)]]
|
||||
fn ep() -> void {
|
||||
return;
|
||||
}
|
||||
entry_point compute = ep;
|
||||
|
||||
Reference in New Issue
Block a user