Function valid

Whether a handle to a wgpu-managed resource is valid, i.e. resource is not null and it's currently initialized.

bool valid(T) (
  T resource
)
if (isResource!T);