I knew I had seen a bit of fiction that discussed this, and now I present an excerpt from "Recursion", a short (chronicle-length) piece done by CCP Headfirst for Kirith Kodachi's Inner Sanctum of the Ninveah:
The cylinder had barely cleared of its previous occupant and was still clouded with scalding hot residual smoke when the breech shot back open. A belt of reinforced, flexible carbon fibers pulled from left to right, yanking the hollow shell out of the way so that the next round could slam into place, where it was immediately secured by a locking collar at the front and back of the chamber.
A fraction of a heartbeat after it had settled in, though, the back of the cylinder segmented near its center, sending a solid piston of polished steel slamming into the back of the round. The force of the impact, along with the crackling spark it caused upon touching the bullet, ignited the explosive gel contained inside. As each molecule of the heavy composite paste overheated, the atoms within shed their higher level electrons, which in turn heated up their neighboring particles, and so on in a chain reaction.
As the available space in the shell rapidly filled with a blistering inferno of hot gas, ripples of tension reverberated down the outer casing of the bullet, causing it to expand the last few millimeters between it and the cylinder’s wall. When there was no more room, the expansion could only press forward, where the only thing standing between it and the welcoming vacuum of space was a titanium sabot projectile.
Note that the ship in question is a Rupture using autocannon.
Important facts:
- Medium-caliber autocannon, at least, use a shell-projectile combo that is already in a fixed state when it enters the barrel.
- Shells are in a belt linked by carbon fiber. This is
extremely unusual; to my knowledge, no mass-produced weapon in real-life has used a belt which actually entered the chamber with the shell, instead usually extracting each shell from the belt and then separately ejecting the spent shell and belt or belt remains. Carbon fiber is a reasonably good material to work with should you want to use such a mechanism, though - even in the environment of an autocannon of that size, it is unlikely to melt, chemically react, expand from heat, permanently deform or shatter under shock.
- The propellant in a cruiser-size autocannon is a gel- or paste-like substance, ignited by both mechanical shock and electric ignition. There is no mention of a primer material.
- The casing expands "a few millimeters" during firing before it is pressed against the breech walls. Given that the casing is secured in place by a pair of collars during firing, it seems likely that this refers to the rear of casing expanding towards the back of the breech.
A thanks to Synthetic Cultist for locating this bit of fiction for me.