Eric.J
1
I added a new StorageBuffer to the simple compute shader example and always got the error. ComputeShader is totally new to me and I am confused now.
By the way, it’s hard to find examples or learning materials about the ComputeShader on the internet. Could you recommend me some study materials?
roland
2
You don’t use result1
in the shader itself. You just define the bindings.
Simply adding this line solves the issue:
resultMatrix.numbers[index] = result;
result1.numbers[index] = result; <-- added
2 Likes
roland
3
Hard to believe dude
, just on Udemy:
Google/Youtube for free ones.
https://www.youtube.com/results?search_query=compute+shaders
1 Like
Eric.J
4
:), so simple! Thank you so much!
1 Like
You can also use the phony-assignment if you want to fix the problem without actually using the buffer in your code:
2 Likes
Eric.J
6
Thank you! This makes it easier.