[Webkit-unassigned] [Bug 199086] New: [WHLSL] Cannot use * qualifier/operator for buffer access and stores

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 20 15:52:11 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=199086

            Bug ID: 199086
           Summary: [WHLSL] Cannot use * qualifier/operator for buffer
                    access and stores
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: justin_fan at apple.com

>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) };

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190620/ae5c5217/attachment.html>


More information about the webkit-unassigned mailing list