WebGPU module

to_string_view

procedureextensionexperimentalSource

A WGPUStringView for a Jai string, to pass where the C API wants text. It borrows the string's bytes.

Example↗
view := to_string_view("compute");
assert(view.length == 7);
to_string_view :: (s: string) -> WGPUStringView

Parameters

s: string

Returns

See also