diff --git a/src/argument.rs b/src/argument.rs index 1bf55659..90792170 100644 --- a/src/argument.rs +++ b/src/argument.rs @@ -152,11 +152,11 @@ impl StructMemberRef { unsafe { msg_send![self, dataType] } } - pub fn struct_type(&self) -> MTLStructType { + pub fn struct_type(&self) -> &StructTypeRef { unsafe { msg_send![self, structType] } } - pub fn array_type(&self) -> MTLArrayType { + pub fn array_type(&self) -> &ArrayTypeRef { unsafe { msg_send![self, arrayType] } } } @@ -220,11 +220,11 @@ impl ArrayTypeRef { unsafe { msg_send![self, elementType] } } - pub fn element_struct_type(&self) -> MTLStructType { + pub fn element_struct_type(&self) -> &StructTypeRef { unsafe { msg_send![self, elementStructType] } } - pub fn element_array_type(&self) -> MTLArrayType { + pub fn element_array_type(&self) -> &ArrayTypeRef { unsafe { msg_send![self, elementArrayType] } } }