---
title: "texture(with:width:height:)"
framework: metalperformanceshaders
role: symbol
role_heading: Instance Method
path: "metalperformanceshaders/mpssvgftextureallocator/texture(with:width:height:)"
---

# texture(with:width:height:)

## Declaration

```swift
func texture(with pixelFormat: MTLPixelFormat, width: Int, height: Int) -> (any MTLTexture)?
```
