Data type of visibility result?

Hi,


I have been working on getting occlusion query working on iOS Metal. My question is what's the data type of visibility result?


The documentation says In MTLVisibilityResultModeBoolean mode when a sample passes, the device writes a nonzero value to the buffer. If no samples pass, the device writes zero.


However, it doesn't say what's the exact data type of the result, I googled and found a StackOverflow question about this: https://stackoverflow.com/questions/40980889/metal-on-macos-visibility-testing-behaving-incorrectly but they could only guess the data type by the offset parameter.


So, what's the correct data type of the result? Where can I find documentation about this?


Thanks.

Yes, this should be in our documentation 😟


It's a 32-bit unsigned int.

Somebody says it's a 64-bit integer. for example in this link:
https://stackoverflow.com/questions/40980889/metal-on-macos-visibility-testing-behaving-incorrectly/40981650?noredirect=1#comment93500165_40981650
and this link:
https://forums.developer.apple.com/thread/83635
Now I'm confused. But thanks for your reply. Hope Apple will update the documentation.

Data type of visibility result?
 
 
Q