dawn-cmake/test/tint
Zhaoming Jiang 62bfd318ae tint: Implement `f16` keyword in Tint frontend
This patch:
1. Add the `f16` WGSL extension.
2. Add `f16` as keyword, and remove it from reserved word list.
3. Add ast::f16 and sem::f16, and implement validation that using `f16`
   type must be with `f16` extension enabled.
4. Add `Number<NumberKindF16>` for f16 literal and constant, and add
   `ast::FloatLiteralExpression::Suffix::kH`.
5. Add placeholder in all writer which report error when try to emit f16
   type.

Bugs: tint:1473, tint:1502
Change-Id: Ifb363beeb2699ed7cac57e07227d1b2cfa8050b4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89922
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
2022-05-13 12:01:11 +00:00
..
access tint: Change all ProgramBuilder literals to 'i' or 'u' suffix 2022-05-05 20:23:40 +00:00
array tint: Change all ProgramBuilder literals to 'i' or 'u' suffix 2022-05-05 20:23:40 +00:00
benchmark tint: Implement uniformity analaysis 2022-05-11 22:05:15 +00:00
buffer wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
bug tint: Show the source of non-uniformity 2022-05-11 22:05:15 +00:00
builtins tint: Support dot4I8Packed and dot4U8Packed in sem 2022-05-10 09:05:54 +00:00
expressions tint: Lex different tokens for float suffixes 2022-05-10 14:55:34 +00:00
extensions/InternalExtensionForTesting tint: Add enable directive for extensions 2022-04-27 02:27:52 +00:00
identifiers/underscore wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
layout/storage/mat2x2 tint: Change all ProgramBuilder literals to 'i' or 'u' suffix 2022-05-05 20:23:40 +00:00
let Normalize all line endings to LF 2022-04-08 14:18:28 +00:00
loops HLSL: workaround FXC error "continue cannot be used in a switch" 2022-03-31 15:02:25 +00:00
out_of_order_decls wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
ptr_ref tint: Change all ProgramBuilder literals to 'i' or 'u' suffix 2022-05-05 20:23:40 +00:00
samples GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
shader_io GLSL writer: emit gl_PointSize = 1 in all vertex shaders for OpenGL. 2022-04-22 21:25:02 +00:00
shadowing wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
statements Normalize all line endings to LF 2022-04-08 14:18:28 +00:00
struct wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
types tint/writer: Replace use of strings for cache keys 2022-04-28 13:08:22 +00:00
unicode test: Move unicode e2e test to tint dir 2022-02-21 16:51:06 +00:00
unittest/reader/spirv tint: Update SKIP line for specific DXC failure 2022-04-29 15:31:22 +00:00
var tint: add --overrides flag to specify pipeline overrides 2022-05-05 17:05:10 +00:00
vk-gl-cts tint: Update SKIP lines with specific FXC bug 2022-04-29 15:31:22 +00:00
BUILD.gn tint: Implement `f16` keyword in Tint frontend 2022-05-13 12:01:11 +00:00
extract-spvasm.py tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
test-all.sh tools: Replace copy-pasta scripts 2022-04-07 18:26:45 +00:00