(registered 2023-01-12, last updated 2023-01-12)
Media type name: text
Media subtype name: wgsl
Required parameters: N/A
Optional parameters: N/A
Encoding considerations: binary
WGSL is Unicode text using the UTF-8 encoding, with no byte order
mark (BOM).
See [WGSL] Section 3. Textual Structure.
Security considerations: WebGPU Shading Language (WGSL) is a
programming language for GPU code to be executed in the context of
the WebGPU API. For security considerations, see [WebGPU] Section
2.1 Security Considerations. For privacy considerations, see
[WebGPU] Section 2.2 Privacy Considerations.
Interoperability considerations: Implementations of WebGPU may have
different capabilities, and these differences may affect what
features may be exercised by WGSL programs. See [WebGPU] Section
3.6 Optional capabilities, and [WGSL] Section 11. Language
Extensions.
It is expected that implementations will behave as if this
registration applies to later editions of WGSL, and its published
specification references may be updated accordingly from time to
time. Although this expectation is unusual among media type
registrations, it matches widespread industry conventions.
Published specification:
[WebGPU] W3C, "WebGPU” W3C Working Draft, January 2023.
.
[WGSL] W3C, “WebGPU Shading Language” W3C Working Draft, January
2023. .
Applications which use this media: Implementations of [WebGPU]. This
is expected to include web browsers.
Fragment identifier considerations: None
Restrictions on usage: None
Additional information:
1. Deprecated alias names for this type: None
2. Magic number(s): None
3. File extension(s): .wgsl
4. Macintosh file type code: TEXT
5. Object Identifiers: None
Person to contact for further information:
1. Name: David Neto
2. Email: dneto&google.com
Intended usage: COMMON
Author/Change controller: W3C