Skip to content

Commit a5acd8d

Browse files
Editorial review: Document uniform_buffer_standard_layout WGSL extension (mdn#43329)
Document uniform_buffer_standard_layout WGSL extension
1 parent 6f498c4 commit a5acd8d

File tree

1 file changed

+5
-0
lines changed
  • files/en-us/web/api/wgsllanguagefeatures

1 file changed

+5
-0
lines changed

files/en-us/web/api/wgsllanguagefeatures/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ The following WGSL language extensions are defined at [WGSL language extensions]
4545
> [!NOTE]
4646
> For the `subgroup_id` WGSL feature to be usable, the [`subgroups`](https://gpuweb.github.io/gpuweb/wgsl/#extension-subgroups) extension needs to be enabled in the {{domxref("GPUDevice")}} (see {{domxref("GPUSupportedFeatures")}}).
4747
48+
- `uniform_buffer_standard_layout`
49+
- : When available, uniform buffers use the same [memory layout constraints](https://gpuweb.github.io/gpuweb/wgsl/#address-space-layout-constraints) as storage buffers, which makes it easier to share data structures across both kinds of buffers. This means uniform buffers are no longer required to have 16-byte alignment on array elements, or to pad nested structure offsets to a multiple of 16 bytes.
50+
51+
See [WGSL uniform_buffer_standard_layout extension](https://developer.chrome.com/blog/new-in-webgpu-144#wgsl_uniform_buffer_standard_layout_extension) for more details.
52+
4853
- `unrestricted_pointer_parameters`
4954
- : Loosens restrictions on pointers being passed to WGSL functions. When available, the following are allowed:
5055
- Parameter pointers to storage, uniform, and workgroup address spaces being passed to user-declared functions.

0 commit comments

Comments
 (0)