-
Notifications
You must be signed in to change notification settings - Fork 43
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
Naming conventions for extension structs and implementation-specific extensions #212
Comments
For ergonomics it seems that typing
So the list would become:
WDYT? |
webgpu.h meeting resolution (OUTDATED):
See also #214 about enum range reservations. |
Feedback that eliding "Descriptor" from the extension struct names is confusing: |
Jul 18 meeting:
(I'll expand out that proposal in a followup comment) |
Rough proposal:
Other examples of how extensions could be named:
|
My understanding was that we'd fold DepthClipControl into PrimitiveState with #311 |
Yes we're folding it, but that's just for the explanation of the new naming rules. |
Oh yes, I intended to note that but forgot. Edited above. |
I believe we can close this issue after #320 gets merged. |
You're right, thanks! |
Applying this naming convention to Dawn we are finding we don't know how to name:
Marked the ones I like personally with ⭐. |
We should define some naming conventions for both standardized extension structs and implementation-specific extensions. Right now we have the following (inconsistent) names:
WGPUPrimitiveState
extensions:WGPUPrimitiveDepthClipControl
WGPURenderPassDescriptor
extensions:WGPURenderPassDescriptorMaxDrawCount
WGPUShaderModuleDescriptor
extensions:WGPUShaderModuleSPIRVDescriptor
WGPUShaderModuleWGSLDescriptor
WGPUSurfaceDescriptor
extensions:WGPUSurfaceDescriptorFromAndroidNativeWindow
WGPUSurfaceDescriptorFromCanvasHTMLSelector
WGPUSurfaceDescriptorFromMetalLayer
WGPUSurfaceDescriptorFromWaylandSurface
WGPUSurfaceDescriptorFromWindowsHWND
WGPUSurfaceDescriptorFromXcbWindow
WGPUSurfaceDescriptorFromXlibWindow
Additionally for Dawn we might want things like
WGPUSomeDescriptorNewFeatureDAWN
? (though idk what the naming would be for wgpu-native)The text was updated successfully, but these errors were encountered: