Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add draft text/wgsl media type registration. WGSL uses UTF-8 (#3542)
* Add draft text/wgsl media type registration. WGSL uses UTF-8 Fixes: #1682 #565 * Update wgsl/media-type-registration.txt Remove useless blanks Co-authored-by: Anne van Kesteren <annevk@annevk.nl> * Update wgsl/media-type-registration.txt Remove useless blanks Co-authored-by: Anne van Kesteren <annevk@annevk.nl> * Update wgsl/media-type-registration.txt Remove useless blanks Co-authored-by: Anne van Kesteren <annevk@annevk.nl> * Update wgsl/media-type-registration.txt Remove useless blanks Co-authored-by: Anne van Kesteren <annevk@annevk.nl> * Clarify there is no byte-order-mark Follow the recommendation of RFC3629, that when a text segement only uses UTF-8, then the byte order mark is forbidden. Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
- Loading branch information
Showing
2 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Type name: text | ||
|
||
Subtype name: wgsl | ||
|
||
Required parameters: N/A | ||
|
||
Optional parameters: None | ||
|
||
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. | ||
|
||
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: [WGSL] | ||
|
||
Applications that use this media type: | ||
|
||
Implementations of WebGPU [WebGPU]. This is expected to include | ||
web browsers. | ||
|
||
Fragment identifier considerations: None | ||
|
||
Additional information: | ||
|
||
Magic number(s): None | ||
File extension(s): .wgsl | ||
Macintosh file type code(s): TEXT | ||
|
||
Person & email address to contact for further information: | ||
David Neto, dneto@google.com, or the Editors listed in [WGSL]. | ||
|
||
Intended usage: COMMON | ||
|
||
Author: W3C. See the Editors listed in [WGSL]. | ||
|
||
Change controller: W3C | ||
|
||
Normative References: | ||
|
||
[WebGPU] W3C, "WebGPU” W3C Working Draft, October 2022. | ||
<https://www.w3.org/TR/webgpu/>. | ||
|
||
[WGSL] W3C, “WebGPU Shading Language” W3C Working Draft, October | ||
2022. <https://www.w3.org/TR/wgsl/>. | ||
|
||
|