ptx_parser/type/instruction/
sust.rs1#![allow(unused)]
14use crate::r#type::common::*;
15
16pub mod section_0 {
17 use crate::Spanned;
18 use crate::parser::Span;
19 use crate::r#type::common::*;
20
21 use serde::Serialize;
22
23 #[derive(Debug, Clone, PartialEq, Serialize)]
24 pub enum Dim {
25 _1d, _2d, _3d, }
29
30 #[derive(Debug, Clone, PartialEq, Serialize)]
31 pub enum Cop {
32 Wb, Cg, Cs, Wt, }
37
38 #[derive(Debug, Clone, PartialEq, Serialize)]
39 pub enum Vec {
40 None, V2, V4, }
44
45 #[derive(Debug, Clone, PartialEq, Serialize)]
46 pub enum Ctype {
47 B16, B32, B64, B8, }
52
53 #[derive(Debug, Clone, PartialEq, Serialize)]
54 pub enum Mode {
55 Clamp, Trap, Zero, }
59
60 #[derive(Debug, Clone, PartialEq, Serialize)]
61 pub enum Adim {
62 A1d, A2d, }
65
66 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
67 pub struct SustBDimCopVecCtypeMode {
68 pub b: (), pub dim: Dim, pub cop: Option<Cop>, pub vec: Vec, pub ctype: Ctype, pub mode: Option<Mode>, pub a: TexHandler2, pub c: GeneralOperand, pub span: Span,
77 }
78
79 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
80 pub struct SustPDimVecB32Mode {
81 pub p: (), pub dim: Dim, pub vec: Vec, pub b32: (), pub mode: Option<Mode>, pub a: TexHandler2, pub c: GeneralOperand, pub span: Span,
89 }
90
91 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
92 pub struct SustBAdimCopVecCtypeMode {
93 pub b: (), pub adim: Adim, pub cop: Option<Cop>, pub vec: Vec, pub ctype: Ctype, pub mode: Option<Mode>, pub a: TexHandler2, pub c: GeneralOperand, pub span: Span,
102 }
103}
104
105pub use section_0::Adim as Adim0;
108pub use section_0::Cop as Cop0;
109pub use section_0::Ctype as Ctype0;
110pub use section_0::Dim as Dim0;
111pub use section_0::Mode as Mode0;
112pub use section_0::SustBAdimCopVecCtypeMode;
113pub use section_0::SustBDimCopVecCtypeMode;
114pub use section_0::SustPDimVecB32Mode;
115pub use section_0::Vec as Vec0;