We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$allowReadonly()
$allowMutable()
// TgpuBuffer<typeof Grid> & AllowReadonly & AllowMutable & AllowVertex & Unmanaged const fooBuffer = tgpu .createBuffer(Grid, initialGrid) .$allowReadonly() .$allowMutable() .$allowVertex('instance') .$device(device); const fooReadonly = asReadonly(fooBuffer); const fooMutable = asMutable(fooBuffer); const fooVertex = asVertex(fooBuffer);
// TgpuBuffer<typeof Grid> & Storage & Vertex & Unmanaged const fooBuffer = tgpu .createBuffer(Grid, initialGrid) .$usage(tgpu.Storage, tgpu.Vertex) .$device(device); const fooReadonly = asReadonly(fooBuffer); const fooMutable = asMutable(fooBuffer); const fooVertex = asVertex(fooBuffer, 'instance');
The text was updated successfully, but these errors were encountered:
@reczkok @mhawryluk Thoughts? 🤔
Sorry, something went wrong.
looks good 👍
No branches or pull requests
Motivation
$allowReadonly()
and$allowMutable()
add the same flags.Before
After
The text was updated successfully, but these errors were encountered: