Why building Shader Variants for non-target?

I was reading this thread

and they were discussing how shader variants are built for each graphics API that is enabled.

This make no sense to me since you select which platform you’re building for. Does Unity actually build shader variants for Vulkan & OpenGL even though I’m targeting just a Windows build?

There is vulkan and opengl versions that targeting pc, these apis not limited to mobile. You can uncheck automatic graphic api and select manually.

Didn’t realize that. I thought Vulkan was specific to Mac.

no, Metal is specific to mac.

Yes, thanks.

1 Like