---
title: boundingRect
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/shader/argument/boundingrect
---

# boundingRect

Returns an argument value representing the bounding rect of the shape or view that the shader is attached to, as float4(x, y, width, height). This value is undefined for shaders that do not have a natural bounding rect (e.g. filter effects drawn into GraphicsContext).

## Declaration

```swift
static var boundingRect: Shader.Argument { get }
```

## See Also

### Creating argument values

- [color(_:)](swiftui/shader/argument/color(_:).md)
- [colorArray(_:)](swiftui/shader/argument/colorarray(_:).md)
- [data(_:)](swiftui/shader/argument/data(_:).md)
- [float(_:)](swiftui/shader/argument/float(_:).md)
- [float2(_:)](swiftui/shader/argument/float2(_:).md)
- [float2(_:_:)](swiftui/shader/argument/float2(_:_:).md)
- [float3(_:_:_:)](swiftui/shader/argument/float3(_:_:_:).md)
- [float4(_:_:_:_:)](swiftui/shader/argument/float4(_:_:_:_:).md)
- [floatArray(_:)](swiftui/shader/argument/floatarray(_:).md)
- [image(_:)](swiftui/shader/argument/image(_:).md)
