Skip to content

Commit

Permalink
make gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Sep 24, 2024
1 parent 9ea11d2 commit 22f1967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ typedef struct WGPUChainedStructOut {
*/

/**
* Nullable value defining a pointer+length view into a string.
* Nullable value defining a pointer+length view into a UTF-8 encoded string.
*
* Values passed into the API may use the special length value @ref WGPU_STRLEN
* to indicate a null-terminated string.
Expand All @@ -1028,6 +1028,9 @@ typedef struct WGPUChainedStructOut {
* - `{any, 0}`: the empty string.
* - `{NULL, non_zero_length}`: not allowed (null dereference).
* - `{non_null_pointer, non_zero_length}`: an explictly-sized string view.
*
* To format explicitly-sized strings with `printf`, use `%.*s`
* (`%s` with a "precision" argument `.*` specifying a max length).
*/
typedef struct WGPUStringView {
char const * WGPU_NULLABLE data;
Expand Down

0 comments on commit 22f1967

Please sign in to comment.