---
title: "allOf"
description: "Skip the filter only while every rule holds, for a no-op that needs several props at rest."
group: "define"
groupTitle: "Defining a shader"
categoryId: "slots"
categorySlug: "slots"
categoryTitle: "Identity & recompile rules"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/slots.ts#L94"
---

# allOf

Skip the filter only while every rule holds, for a no-op that needs several props at rest.

```ts
allOf(...rules: IdentityRule[]): IdentityRule
```

Import `allOf` from `shaders/std`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `...rules` | `IdentityRule[]` | Optional. |

## Example

```ts
identityWhen: allOf(isZero('brightness'), isZero('contrast'))
```

## See also

- [`isZero`](/docs/primitives/slots/iszero) — Skip the filter entirely while `prop` is exactly 0.
- [`isValue`](/docs/primitives/slots/isvalue) — Skip the filter entirely while `prop` equals `value`, for a filter whose no-op is not 0.

## Used by

[BrightnessContrast](/docs/components/brightnesscontrast)