Suddenly unable to create an MSAA Render target

Last I checked yesterday, everything was working normally, but when I opened my project today, I’m greeted with a “D3D11: Failed to create RenderTexture … error 0x80070057” when using MSAA in the editor. Building to a console works fine.

Don’t know how much this’ll help, but
SystemInfo.GetRenderTextureSupportedMSAASampleCount(cameraTargetDescriptor) currently returns a 1.
(Console build also returns a 1, so this might not be relevant…)

I’m using an 11700 non-k, and 1660 super.
I’ve tried reinstalling the display driver with no avail, I’ve also tried to force unity to open using the dGPU (which for the record, it was already doing), and sadly that doesn’t do anything.

I did have a pretty bad memory leak yesterday because I didn’t realize I was not releasing some Render Targets under certain circumstances and it made the PC crash, but that was in the afternoon and I was able to continue to work after the crash without any problems yesterday.

Oh, and I’m using Unity 2021.1.15f1 with URP 11 if that helps.

Any ideas what’s wrong?

Whoops, I’m dumb, I copied a part of the code from the previous commit which contains a enableRandomWrite = true, which is what caused the error.