mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 04:11:25 +00:00
This transform was attempting to remove builtins with no side effects, such as a call with abstract int/float args, which is unhandled by this transform. For example, this would cause the transform to ICE: _ = clamp(1, 2, 3); Fixes ClusterFuzz issue crbug.com/1348739. Bug: chromium:1348739 Change-Id: Ie355eb36c6c020417c2d93f2dc434c11dbb72d1f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/97880 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Ben Clayton <bclayton@google.com>
37 lines
1017 B
Plaintext
37 lines
1017 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
|
|
float4 tint_degrees(float4 param_0) {
|
|
return param_0 * 57.295779513082322865;
|
|
}
|
|
|
|
float3 tint_degrees_1(float3 param_0) {
|
|
return param_0 * 57.295779513082322865;
|
|
}
|
|
|
|
float2 tint_degrees_2(float2 param_0) {
|
|
return param_0 * 57.295779513082322865;
|
|
}
|
|
|
|
float tint_degrees_3(float param_0) {
|
|
return param_0 * 57.295779513082322865;
|
|
}
|
|
|
|
kernel void tint_symbol() {
|
|
float4 const a = tint_degrees(float4(0.0f));
|
|
float4 const b = tint_degrees(float4(1.0f));
|
|
float4 const c = tint_degrees(float4(1.0f, 2.0f, 3.0f, 4.0f));
|
|
float3 const d = tint_degrees_1(float3(0.0f));
|
|
float3 const e = tint_degrees_1(float3(1.0f));
|
|
float3 const f = tint_degrees_1(float3(1.0f, 2.0f, 3.0f));
|
|
float2 const g = tint_degrees_2(float2(0.0f));
|
|
float2 const h = tint_degrees_2(float2(1.0f));
|
|
float2 const i = tint_degrees_2(float2(1.0f, 2.0f));
|
|
float const j = tint_degrees_3(1.0f);
|
|
float const k = tint_degrees_3(2.0f);
|
|
float const l = tint_degrees_3(3.0f);
|
|
return;
|
|
}
|
|
|