diff --git a/generator/src/lib.rs b/generator/src/lib.rs index dc49b1c..b3c9ae0 100644 --- a/generator/src/lib.rs +++ b/generator/src/lib.rs @@ -1659,7 +1659,7 @@ pub fn derive_setters( } // Unique cases - if name == "pCode" { + if struct_.name == "VkShaderModuleCreateInfo" && name == "pCode" { return Some(quote!{ #[inline] pub fn code(mut self, code: &'a [u32]) -> Self {