---
title: "custom(sourceRGBBlendFactor:destinationRGBBlendFactor:rgbBlendOperation:sourceAlphaBlendFactor:destinationAlphaBlendFactor:alphaBlendOperation:)"
framework: RealityKit
role: symbol
role_heading: Type Method
platforms: [iOS 27.0+, iPadOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/lowlevelrenderpipelinestate/descriptor/blending-swift.struct/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.

## Declaration

```swift
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

Return Value A LowLevelRenderPipelineState.Descriptor.Blending with the specified configuration.
