dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 1 | {{- /* |
| 2 | -------------------------------------------------------------------------------- |
| 3 | Template file for use with tools/src/cmd/gen to generate interpolate_attribute.h |
| 4 | |
| 5 | See: |
| 6 | * tools/src/cmd/gen for structures used by this template |
| 7 | * https://golang.org/pkg/text/template/ for documentation on the template syntax |
| 8 | -------------------------------------------------------------------------------- |
| 9 | */ -}} |
| 10 | |
Ben Clayton | 2dffb3c | 2023-08-07 12:35:33 +0000 | [diff] [blame] | 11 | {{- $I := LoadIntrinsics "src/tint/lang/core/core.def" -}} |
dan sinclair | 22b4dd2 | 2023-07-21 00:40:07 +0000 | [diff] [blame] | 12 | {{- Import "src/tint/utils/templates/enums.tmpl.inc" -}} |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 13 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 14 | #ifndef SRC_TINT_LANG_CORE_INTERPOLATION_SAMPLING_H_ |
| 15 | #define SRC_TINT_LANG_CORE_INTERPOLATION_SAMPLING_H_ |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 16 | |
Stephan Hartmann | 9141e91 | 2023-08-14 15:56:22 +0000 | [diff] [blame] | 17 | #include <cstdint> |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 18 | #include <string> |
| 19 | |
Ben Clayton | 6891960 | 2023-07-28 22:51:18 +0000 | [diff] [blame] | 20 | #include "src/tint/utils/traits/traits.h" |
dan sinclair | 6cc183c | 2023-03-02 21:28:45 +0000 | [diff] [blame] | 21 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 22 | namespace tint::core { |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 23 | |
| 24 | /// The interpolation sampling. |
Ben Clayton | 2dffb3c | 2023-08-07 12:35:33 +0000 | [diff] [blame] | 25 | {{ Eval "DeclareEnum" ($I.Sem.Enum "interpolation_sampling") }} |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 26 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 27 | } // namespace tint::core |
dan sinclair | 993a658 | 2023-02-20 08:37:45 +0000 | [diff] [blame] | 28 | |
Ben Clayton | cd52f38 | 2023-08-07 13:11:08 +0000 | [diff] [blame] | 29 | #endif // SRC_TINT_LANG_CORE_INTERPOLATION_SAMPLING_H_ |