dawn-cmake/test/tint
Zhaoming Jiang 0d3d3210d4 tint/writer/glsl: Support for F16 type, constructor, and convertor
This patch make GLSL writer support emitting f16 types, f16 literals,
f16 constructor and convertor. Unittests are also implemented, and
end-to-end testcases are updated for GLSL extension requirement.

The GLSL writer will require `GL_AMD_gpu_shader_half_float` extension if
f16 WGSL extension is enabled, emit f16 literal as `1.23hf`, and map f16
types as follow:
WGSL type   -> GLSL type
f16         -> float16_t
vec2<f16>   -> f16vec2
vec3<f16>   -> f16vec3
vec4<f16>   -> f16vec4
mat2x2<f16> -> f16mat2
mat2x3<f16> -> f16mat2x3
mat2x4<f16> -> f16mat2x4
mat3x2<f16> -> f16mat3x2
mat3x3<f16> -> f16mat3
mat3x4<f16> -> f16mat3x4
mat4x2<f16> -> f16mat4x2
mat4x3<f16> -> f16mat4x3
mat4x4<f16> -> f16mat4

Bug: tint:1473, tint:1502
Change-Id: I7e788f82be2873911961c891a644200c1cbb74db
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95684
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2022-07-11 03:02:28 +00:00
..
access tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
array tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
benchmark tint: Disallow write-only storage buffers 2022-07-04 15:17:00 +00:00
buffer tint: Disallow write-only storage buffers 2022-07-04 15:17:00 +00:00
bug tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
builtins tint: Implement acosh, asinh, atanh 2022-06-28 15:27:44 +00:00
const tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
expressions tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
extensions/parsing tint/writer/glsl: Support for F16 type, constructor, and convertor 2022-07-11 03:02:28 +00:00
identifiers/underscore tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
layout/storage/mat2x2 tint/writer/msl: Generate an array<T,N> helper 2022-06-24 17:01:59 +00:00
let/inferred tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
loops Fixup continue support in while loops. 2022-06-16 15:27:38 +00:00
out_of_order_decls tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
ptr_ref msl: Promote local private vars to function scope 2022-06-28 02:06:05 +00:00
samples tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
shader_io tint: Disallow write-only storage buffers 2022-07-04 15:17:00 +00:00
shadowing tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
statements tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
struct tint/writer: Disable constant inlining for lets 2022-06-24 18:15:39 +00:00
types tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
unicode Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
unittest/reader/spirv Delete tests with invalid SPIR-V inputs 2022-07-06 01:45:30 +00:00
var tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
vk-gl-cts Delete tests with invalid SPIR-V inputs 2022-07-06 01:45:30 +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