dawn-cmake/test/intrinsics/repeated_use.wgsl.expected.msl
Ben Clayton b478f97975 IntrinsicTable: De-duplicate returned Intrinsics
Much like sem::Type, it greatly simplifies downstream logic if we can compare sem::Intrinsic pointers to know if they refer to the same intrinsic overload.

Change-Id: If236247cd3979bbde821d9294f304ab85ba4938e
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/58061
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-07-15 20:34:21 +00:00

20 lines
485 B
Plaintext

#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol() {
(void) isnormal(float4());
(void) isnormal(float4(1.0f));
(void) isnormal(float4(1.0f, 2.0f, 3.0f, 4.0f));
(void) isnormal(float3());
(void) isnormal(float3(1.0f));
(void) isnormal(float3(1.0f, 2.0f, 3.0f));
(void) isnormal(float2());
(void) isnormal(float2(1.0f));
(void) isnormal(float2(1.0f, 2.0f));
(void) isnormal(1.0f);
(void) isnormal(2.0f);
(void) isnormal(3.0f);
return;
}