Closed js6i closed 7 months ago
Apart from #2168, I found a second issue when testing another patch - the validation layer complains about MTLTextureUsageShaderAtomic
when the pixel format isn't an integer, which currently triggers for buffer views, and images in the _mutableFormat
case. Maybe I was not overly tentative after all.
Perhaps, for image views, we could force the primary pixel format of the texture to be an integer, and then make views on that..
@billhollings
Apart from #2168, I found a second issue when testing another patch - the validation layer complains about
MTLTextureUsageShaderAtomic
when the pixel format isn't an integer, which currently triggers for buffer views, and images in the_mutableFormat
case. Maybe I was not overly tentative after all.Perhaps, for image views, we could force the primary pixel format of the texture to be an integer, and then make views on that..
@billhollings
Can you open an issue tracker for this second valuation issue?
This commit conditionally skips the emulated image atomics paths if native texture atomics are available and a configuration option is set.
Apart from unlocking some potential performance benefits from not having to force some textures to be linear, it also makes texture atomics work with argument buffers.