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

ReadWrite buffer for one shader, ReadOnly buffer in another shader? #890

Open
jkant opened this issue Dec 22, 2024 · 0 comments
Open

ReadWrite buffer for one shader, ReadOnly buffer in another shader? #890

jkant opened this issue Dec 22, 2024 · 0 comments
Labels
question ❓ Further information is requested untriaged 🧰 A new issue that needs initial triage

Comments

@jkant
Copy link

jkant commented Dec 22, 2024

First of all let me just say this is a really useful package, and thank you for putting it together.

I am coming from game development where I write a lot of shaders (including compute shaders) in HLSL and use Unity's API wrapper to dispatch them.

Is it possible to allocate one buffer to be used as a ReadOnly buffer in one shader, after it has been written to as a ReadWrite buffer in another shader? I am used to doing this in Unity, but so far from playing with ComputeSharp it doesn't seem to be possible, as I need to specify the buffer usage when allocating the buffer.

@jkant jkant added question ❓ Further information is requested untriaged 🧰 A new issue that needs initial triage labels Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❓ Further information is requested untriaged 🧰 A new issue that needs initial triage
Projects
None yet
Development

No branches or pull requests

1 participant