Can you be more specific with your question, perhaps add a few details? What are you trying to accomplish? There are many formats that use .raw extension. Some digital cameras use that extension. Photoshop has a .raw image format too.
You can read texture from the GPU (your RenderTexture by using read pixels.) If you do a search for “convert rendertexture to texture2D” you will find many examples.
TEXTURE = new RenderTexture(TEX_WIDTH, TEX_HEIGHT, 0, RenderTextureFormat.ARGBFloat, RenderTextureReadWrite.Linear);
TEXTURE.enableRandomWrite = true;
TEXTURE.Create();
computeShader.SetTexture(0, “Result”, TEXTURE);
computeShader.Dispatch(0, TEX_WIDTH / 32, TEX_HEIGHT / 32, 1);
//need to save it as a .raw file
i dont want to convert it to texture2d its not a direct way
I don’t think there’s any other way than using the ReadPixels method of Texture2D if you want to get the texture data to CPU side from GPU. Then write that data as you wish. With details I mainly meant what are you trying to achieve, not what kind of code details you might have.
It doesn’t really make difference what you are doing as long as the result is on the GPU side.
I would suggest you read a few threads on this topic before just telling me you “want” something. That’s not really constructive.