Skip to content
New issue

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

Add a OpAtomicIIncrement function to arch #839

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

expenses
Copy link
Contributor

@expenses expenses commented Jan 9, 2022

I thought I'd just upstream this function from my shader code. While implementing all the atomic instructions with a nice api would of course be nice, this is all you need for doing simple bump allocations into a storage buffer e.g. for frustum or light culling.

I've been using it with the Device scope in my code but that's not allowed in the compiletests without a new capability so the test just uses Workgroup for now:

error: error:0:0 - Use of device scope with VulkanKHR memory model requires the VulkanMemoryModelDeviceScopeKHR capability

@eddyb eddyb merged commit 11e21c6 into EmbarkStudios:main Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants