Skip to content

Commit

Permalink
Add subgroups feature (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Mar 4, 2025
1 parent 2b17769 commit b3c5bb4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
13 changes: 12 additions & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ type GPUFeatureName =
| "float32-filterable"
| "float32-blendable"
| "clip-distances"
| "dual-source-blending";
| "dual-source-blending"
| "subgroups";
type GPUFilterMode =

| "nearest"
Expand Down Expand Up @@ -2027,6 +2028,16 @@ interface GPUAdapterInfo {
* other fields when possible.
*/
readonly description: string;
/**
* If the "subgroups" feature is supported, the minimum supported subgroup size for the
* adapter.
*/
readonly subgroupMinSize: number;
/**
* If the "subgroups" feature is supported, the maximum supported subgroup size for the
* adapter.
*/
readonly subgroupMaxSize: number;
}

declare var GPUAdapterInfo: {
Expand Down
5 changes: 4 additions & 1 deletion generated/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ type GPUFeatureName =
| "float32-filterable"
| "float32-blendable"
| "clip-distances"
| "dual-source-blending";
| "dual-source-blending"
| "subgroups";
type GPUFilterMode =

| "nearest"
Expand Down Expand Up @@ -1839,6 +1840,8 @@ interface GPUAdapterInfo {
readonly architecture: string;
readonly device: string;
readonly description: string;
readonly subgroupMinSize: number;
readonly subgroupMaxSize: number;
}

declare var GPUAdapterInfo: {
Expand Down

0 comments on commit b3c5bb4

Please sign in to comment.