dawn-cmake/test/intrinsics/gen/refract/cd905f.wgsl.expected.hlsl
Ben Clayton b0455217fa Add refract intrinsic
See: https://github.com/gpuweb/gpuweb/pull/1901

Bug: tint:950
Change-Id: I6f00ab753a2ddf2374352ddf636e1abfebe86ba7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56777
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2021-07-05 16:47:37 +00:00

25 lines
429 B
HLSL

void refract_cd905f() {
float2 res = refract(float2(0.0f, 0.0f), float2(0.0f, 0.0f), 1.0f);
}
struct tint_symbol {
float4 value : SV_Position;
};
tint_symbol vertex_main() {
refract_cd905f();
const tint_symbol tint_symbol_1 = {float4(0.0f, 0.0f, 0.0f, 0.0f)};
return tint_symbol_1;
}
void fragment_main() {
refract_cd905f();
return;
}
[numthreads(1, 1, 1)]
void compute_main() {
refract_cd905f();
return;
}