RESOLVED WONTFIX 199086
[WHLSL] Cannot use * qualifier/operator for buffer access and stores
https://bugs.webkit.org/show_bug.cgi?id=199086
Summary [WHLSL] Cannot use * qualifier/operator for buffer access and stores
Justin Fan
Reported 2019-06-20 15:52:11 PDT
>These WHLSL codes fail in the checker: [numthreads(1, 1, 1)] compute void _compute_main(device int* result : register(u0)) { result[0] = 42; } OR [numthreads(1, 1, 1)] compute void _compute_main(device int[] result : register(u0)) { *result = 42; } >This code does not generate valid MSL output: [numthreads(1, 1, 1)] compute void _compute_main(device int* result : register(u0)) { *result = 42; } Metal compile error is: program_source:12941:16: error: excess elements in scalar initializer variable6663 = { variable6661.structureElement13, static_cast<uint32_t>(variable6662) };
Attachments
Myles C. Maxfield
Comment 1 2020-05-05 00:42:51 PDT
WHLSL is no longer relevant.
Note You need to log in before you can comment on or make changes to this bug.