<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelRenderPipelineState/Descriptor/Blending-swift.struct/custom(sourceRGBBlendFactor:destinationRGBBlendFactor:rgbBlendOperation:sourceAlphaBlendFactor:destinationAlphaBlendFactor:alphaBlendOperation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer27LowLevelRenderPipelineStateC10DescriptorV8BlendingV6custom20sourceRGBBlendFactor011destinationmN017rgbBlendOperation0l5AlphaqN00osqN005alphaqR0AGSo08MTLBlendN0V_APSo0uR0VA2pRtFZ"
  },
  "title" : "custom(sourceRGBBlendFactor:destinationRGBBlendFactor:rgbBlendOperation:sourceAlphaBlendFactor:destinationAlphaBlendFactor:alphaBlendOperation:)"
}
-->

# custom(sourceRGBBlendFactor:destinationRGBBlendFactor:rgbBlendOperation:sourceAlphaBlendFactor:destinationAlphaBlendFactor:alphaBlendOperation:)

Creates a custom blending configuration with explicit Metal blend factors and
operations.

```
static func custom(sourceRGBBlendFactor: MTLBlendFactor = .one, destinationRGBBlendFactor: MTLBlendFactor = .zero, rgbBlendOperation: MTLBlendOperation = .add, sourceAlphaBlendFactor: MTLBlendFactor = .one, destinationAlphaBlendFactor: MTLBlendFactor = .zero, alphaBlendOperation: MTLBlendOperation = .add) -> LowLevelRenderPipelineState.Descriptor.Blending
```

## Parameters

`sourceRGBBlendFactor`

The blend factor applied to the source RGB values.

`destinationRGBBlendFactor`

The blend factor applied to the destination RGB values.

`rgbBlendOperation`

The blend operation used to combine source and destination RGB values.

`sourceAlphaBlendFactor`

The blend factor applied to the source alpha value.

`destinationAlphaBlendFactor`

The blend factor applied to the destination alpha value.

`alphaBlendOperation`

The blend operation used to combine source and destination alpha values.

## Return Value

A [`LowLevelRenderPipelineState.Descriptor.Blending`](/documentation/RealityKit/LowLevelRenderPipelineState/Descriptor/Blending-swift.struct) with the specified configuration.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)