# StableDiffusionCppResource.WithGPUSupport

- Module: [CommunityToolkit.Aspire.Hosting.StableDiffusionCpp](/reference/api/go/communitytoolkit.aspire.hosting.stablediffusioncpp.md)
- Defined on: [StableDiffusionCppResource](/reference/api/go/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md)
- Version: `13.6.1`
- Kind: `method`

Adds the container runtime arguments required by the selected GPU backend.

## Definition

```go
type StableDiffusionCppResource interface {
    // ... omitted for brevity
    WithGPUSupport() StableDiffusionCppResource
}
```

## Signature

```go
WithGPUSupport() StableDiffusionCppResource
```

## Returns

[`StableDiffusionCppResource`](/reference/api/go/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [StableDiffusionCppResource](/reference/api/go/communitytoolkit.aspire.hosting.stablediffusioncpp/stablediffusioncppresource.md) -- `handle`
