Skip to content

How to get length of runtime sized StructuredBuffer? #7478

Closed Answered by fixgoats
fixgoats asked this question in Q&A
Discussion options

You must be logged in to vote

I think I've at least found out why the size was being reported as 0. At 512 * 1024 *1024 elements, the length function reports the array as having length 0 for some reason. When I lower the count to 256 * 1024 * 1024 I get a sensible length, although it seems there is still some problem with my algorithm because it doesn't find the correct minimum, but that's outside the scope of the initial question.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fixgoats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant