Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

StableDiffusionCppResource.WithGPUSupport

Method
📦 CommunityToolkit.Aspire.Hosting.StableDiffusionCpp v13.6.1
type StableDiffusionCppResource interface {
// ... omitted for brevity
WithGPUSupport() StableDiffusionCppResource
}

Signature

methodWithGPUSupportbuilder
Adds the container runtime arguments required by the selected GPU backend.
WithGPUSupport() StableDiffusionCppResource
StableDiffusionCppResource

The resource builder.

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

Defined on

This method is defined on the following type: