---
title: "isEqual(to:)"
framework: metalperformanceshadersgraph
role: symbol
role_heading: Instance Method
path: "metalperformanceshadersgraph/mpsgraphshapedtype/isequal(to:)"
---

# isEqual(to:)

Checks if shapes and element data type are the same as the input shaped type.

## Declaration

```swift
func isEqual(to object: MPSGraphShapedType?) -> Bool
```

## Parameters

- `object`: shapedType to compare to

## Return Value

Return Value True if equal, false if unequal
