• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the BSD-style license found in the
5# LICENSE file in the root directory of this source tree.
6
7binary_op:
8  parameter_names_with_default_values:
9    OPERATOR: X + A * Y
10    NDIM: 3
11    DTYPE: float
12    PACKING: C_packed
13    STORAGE: texture3d
14  generate_variant_forall:
15    DTYPE:
16      - VALUE: half
17      - VALUE: float
18      - VALUE: int
19  shader_variants:
20    - NAME: binary_add
21    - NAME: binary_sub
22      OPERATOR: X - A * Y
23    - NAME: binary_mul
24      OPERATOR: X * Y
25    - NAME: binary_div
26      OPERATOR: X / Y
27    - NAME: binary_pow
28      OPERATOR: pow(X, Y)
29    - NAME: binary_floor_divide
30      OPERATOR: floor(X / Y)
31    - NAME: binary_minimum
32      OPERATOR: min(X, Y)
33