Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subgroups feature #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading