A string for a view the implementation wrote (an adapter name, an error message). It borrows the view's bytes.
view := to_string_view("hello");
assert(to_string(view) == "hello");to_string :: (view: WGPUStringView) -> string
Parameters
- view: WGPUStringView
Returns
- string