-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
WebGPURenderer: Enable Subgroup Directives/Builtins #29053
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
@@ -645,6 +645,18 @@ ${ flowData.code } | |||
|
|||
} | |||
|
|||
getSubgroupSize() { | |||
|
|||
return this.getBuiltin( 'subgroup_size', 'subgroupSize', 'u32', 'attribute' ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could call enableSubGroups()
here and getSubgroupIndex()
? to add directive automatically..
I think enableDirective()
should use Set
classe instead of Array
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds good by me, could probably also do the same for enableExtension if we want default behavior to be the same across extensions ( i.e enable or require )
Add ability to generate the subgroup directives and subgroup attributes in WGSLNodeBuilder. Support for enabling the directive and utilizing subgroup builtins will be available in Chrome 128.