[Webkit-unassigned] [Bug 189125] [WHLSL] Implement dynamically uniform expression restrictions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 24 10:37:06 PDT 2018


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

--- Comment #2 from Myles C. Maxfield <mmaxfield at apple.com> ---
Ever value (lvalue and rvalue) will be associated with a "uniformity" attribute, which will be assigned by the compiler. These attributes can even survive being assigned to a variable, if the variable is marked as "uniform" in the program source.

Then, after we know whether or not each value is uniform, we can associate each nested scope with a similar uniformity attribute. This is true iff the condition leading to that scope is uniform.

We apply the restriction that any AssignmentExpression inside a non-uniform scope must never assign to a uniform variable that is declared in the non-innermost scope. This should guarantee that all uniform variables are, indeed, uniform.

Then, we can require any IndexExpression that indexes into an array which contains textures to use a uniform index.

-- 
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/20180924/f58b02eb/attachment.html>


More information about the webkit-unassigned mailing list