# GetSize()

> Returns the total size of this RayTracingAccelerationStructure in GPU memory in bytes.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.7/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public ulong GetSize()
```

### Returns

| Type                                                          | Description                                                          |
| ------------------------------------------------------------- | -------------------------------------------------------------------- |
| [ulong](https://learn.microsoft.com/dotnet/api/system.uint64) | The total size of the acceleration structure in GPU memory in bytes. |

### Remarks

Building the acceleration structure prior to this call is not required.
