1#[derive(Copy, Clone, Eq, PartialEq)]
3#[cfg_attr(
4 feature = "with_opcode_derives",
5 derive(Debug, Hash, num_enum::IntoPrimitive, num_enum::TryFromPrimitive)
6)]
7#[cfg_attr(feature = "with_serde", derive(serde::Serialize, serde::Deserialize))]
8#[cfg_attr(feature = "with_speedy", derive(speedy::Writable, speedy::Readable))]
9#[cfg_attr(feature = "with_arbitrary", derive(arbitrary::Arbitrary))]
10#[repr(u32)]
11pub enum Opcode {
12 Plane = 0, Sphere = 1, Capsule = 2, TaperedCapsule = 3, Material = 4, Union = 5,
22 UnionSmooth = 6,
23 Subtract = 7,
24 SubtractSmooth = 8,
25 Intersect = 9,
26 IntersectSmooth = 10,
27
28 PushTranslation = 11,
30 PushRotation = 12,
31 PopTransform = 13,
32 PushScale = 14,
33 PopScale = 15,
34
35 End = 16,
36
37 RoundedBox = 17, BiconvexLens = 18, RoundedCylinder = 19, Torus = 20, TorusSector = 21, Cone = 22, }