I'm using unity's compute shader to write into a render texture that will be used later. The values I want to enter into my render texture are 0 and 1, therefore to avoid using a lot of useless memory, I'm looking for the smaller type that can be used for a render texture in a compute shader.
I saw that the render texture format at his creation on CPU can be set to RenderTextureFormat.R8, I try to used it but I don't know which type to use when declaring the render texture in compute shader (it doesn't work with _int8). Moreover, I saw that I can use the type bool when I declare the render texture in compute shader, but then I don't know which render texture format to use...