FF151 Relnote: GPUSupportedLimits - new properties + doc - #44151
Conversation
|
Preview URLs (2 pages) External URLs (1)URL:
|
|
|
||
| In the following code we query the `GPUAdapter.limits` value of `maxBindGroups` to see if it is equal to or greater than 6. Our theoretical example app ideally needs 6 bind groups, so if the returned value is >= 6, we add a maximum limit of 6 to the `requiredLimits` object. We then request a device with that limit requirement using {{domxref("GPUAdapter.requestDevice()")}}: | ||
| In the following code we query the `GPUAdapter.limits` value of `maxBindGroups` to see if it is equal to or greater than 6. | ||
| Our theoretical example app ideally needs 6 bind groups, so if the returned value is >= 6, we add a maximum limit of 6 to the `requiredLimits` object. |
There was a problem hiding this comment.
| Our theoretical example app ideally needs 6 bind groups, so if the returned value is >= 6, we add a maximum limit of 6 to the `requiredLimits` object. | |
| Our theoretical example app ideally needs 6 bind groups, so if the returned value is greater than or equal to 6, we add a maximum limit of 6 to the `requiredLimits` object. |
pepelsbey
left a comment
There was a problem hiding this comment.
Looks good, thanks! I would only suggest using words instead of >= (I know it wasn’t your addition, so feel free to disregard).
Thanks @pepelsbey - you merged before I could comment on this. FWIW this is definitely no worse, though I personally find the shorthand of mathematical symbols easier to read. Also thanks for the review @chrisdavidmills |
FF151 supports the
GPUSupportedLimitspropertiesmaxStorageBuffersInFragmentStage,maxStorageBuffersInVertexStage,maxStorageTexturesInFragmentStage,maxStorageTexturesInVertexStageThis adds a release note and updates the docs to list the new properties, their default values, and use a more template-like format.
Related work can be tracked in #43966