mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-05 03:35:56 +00:00
This patch modify the test/tint/builtins/gen/gen.wgsl.tmpl to emit enable directive for dot4I8Packed and dot4U8Packed built-in function. The expectaion files are added. Bug: tint:1497 Change-Id: I53331695fe2e6609858e94bc261383ba3028d77c Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96640 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Zhaoming Jiang <zhaoming.jiang@intel.com>
36 lines
680 B
HLSL
36 lines
680 B
HLSL
uint tint_dot4U8Packed(uint param_0, uint param_1) {
|
|
uint accumulator = 0u;
|
|
return dot4add_u8packed(param_0, param_1, accumulator);
|
|
}
|
|
|
|
void dot4U8Packed_fbed7b() {
|
|
uint res = tint_dot4U8Packed(1u, 1u);
|
|
}
|
|
|
|
struct tint_symbol {
|
|
float4 value : SV_Position;
|
|
};
|
|
|
|
float4 vertex_main_inner() {
|
|
dot4U8Packed_fbed7b();
|
|
return (0.0f).xxxx;
|
|
}
|
|
|
|
tint_symbol vertex_main() {
|
|
const float4 inner_result = vertex_main_inner();
|
|
tint_symbol wrapper_result = (tint_symbol)0;
|
|
wrapper_result.value = inner_result;
|
|
return wrapper_result;
|
|
}
|
|
|
|
void fragment_main() {
|
|
dot4U8Packed_fbed7b();
|
|
return;
|
|
}
|
|
|
|
[numthreads(1, 1, 1)]
|
|
void compute_main() {
|
|
dot4U8Packed_fbed7b();
|
|
return;
|
|
}
|