mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
The generator script was not using the test values for `f16`, they always got a zero initialization. This CL fixes the script to generate `f16` values. Change-Id: I95e8f2c7007251a646de05b4f7fe0aad14e740f8 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109342 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
56 lines
990 B
GLSL
56 lines
990 B
GLSL
#version 310 es
|
|
#extension GL_AMD_gpu_shader_half_float : require
|
|
|
|
void log_cdbdc1() {
|
|
f16vec4 arg_0 = f16vec4(1.0hf);
|
|
f16vec4 res = log(arg_0);
|
|
}
|
|
|
|
vec4 vertex_main() {
|
|
log_cdbdc1();
|
|
return vec4(0.0f);
|
|
}
|
|
|
|
void main() {
|
|
gl_PointSize = 1.0;
|
|
vec4 inner_result = vertex_main();
|
|
gl_Position = inner_result;
|
|
gl_Position.y = -(gl_Position.y);
|
|
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
return;
|
|
}
|
|
#version 310 es
|
|
#extension GL_AMD_gpu_shader_half_float : require
|
|
precision mediump float;
|
|
|
|
void log_cdbdc1() {
|
|
f16vec4 arg_0 = f16vec4(1.0hf);
|
|
f16vec4 res = log(arg_0);
|
|
}
|
|
|
|
void fragment_main() {
|
|
log_cdbdc1();
|
|
}
|
|
|
|
void main() {
|
|
fragment_main();
|
|
return;
|
|
}
|
|
#version 310 es
|
|
#extension GL_AMD_gpu_shader_half_float : require
|
|
|
|
void log_cdbdc1() {
|
|
f16vec4 arg_0 = f16vec4(1.0hf);
|
|
f16vec4 res = log(arg_0);
|
|
}
|
|
|
|
void compute_main() {
|
|
log_cdbdc1();
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
compute_main();
|
|
return;
|
|
}
|