The term that describes the process by which a gas goes directly to the solid phase by releasing energy is called "deposition."
Here's an example to help clarify this process: Think of dry ice. When carbon dioxide gas undergoes deposition, it turns directly into solid carbon dioxide (dry ice) without passing through the liquid phase. This transition releases energy, making the surroundings colder.
In summary, deposition is the direct transition of a gas to the solid phase by releasing energy.