fn alignment(&self, module: &GpuModule) -> usize {
        match self {
            GpuTypeDef::Struct(name, fields) => {
                let mut alignment = 1;
                if module.enum_variants.contains(name) {
                    alignment = 4;
                }
                for (_name, field) in fields {
                    alignment = alignment.max(field.alignment(module));
                }
                alignment
            }
            GpuTypeDef::Enum(_en) => unimplemented!(),
        }
    }
/// Alignment of the body of the definition.
Alignment of the body of the definition.
Alignment of the body of the definition .
fn alignment(&self, module: &GpuModule) -> usize {
        match self {
            GpuTypeDef::Struct(name, fields) => {
                let mut alignment = 1;
                if module.enum_variants.contains(name) {
                    alignment = 4;
                }
                for (_name, field) in fields {
                    alignment = alignment.max(field.alignment(module));
                }
                alignment
            }
            GpuTypeDef::Enum(_en) => unimplemented!(),
        }
    }
fn alignment ( & self , module : & GpuModule ) -> usize { match self { GpuTypeDef :: Struct ( name , fields ) => { let mut alignment = 1 ; if module . enum_variants . contains ( name ) { alignment = 4 ; } for ( _name , field ) in fields { alignment = alignment . max ( field . alignment ( module ) ) ; } alignment } GpuTypeDef :: Enum ( _en ) => unimplemented ! ( ) , } }
Alignment of the body of the definition.
Alignment of the body of the definition .
&self
module
&GpuModule
&self
module
&GpuModule