Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Issue 1301413006: SkNx_shuffle (Closed)

Created:
5 years, 3 months ago by mtklein_C
Modified:
5 years, 3 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org, herb_g, bungeman-skia
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkNx_shuffle This allows us to express shuffles more directly in code while also giving us a convenient point to platform-specify particular shuffles for particular types. No specializations yet. Everyone just uses the (pretty good) default option. BUG=skia: Committed: https://skia.googlesource.com/skia/+/a1c0ee40040fa8bb06f5f68ba4bcb3a68f789924

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix example #

Patch Set 3 : dup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -6 lines) Patch
M src/core/SkNx.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M src/effects/SkColorMatrixFilter.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/opts/SkColorCubeFilter_opts.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/opts/SkXfermode_opts.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
mtklein_C
I'm not sold on this yet, but I thought you might want to see it.
5 years, 3 months ago (2015-09-01 15:17:12 UTC) #2
reed1
Sure seems useful. Is "shuffle" also what GLSL calls this sort of thing. They have ...
5 years, 3 months ago (2015-09-01 15:45:04 UTC) #3
mtklein_C
In GLSL, both use cases (e.g. .zyxw, .xxxx) would be called swizzles. On the other ...
5 years, 3 months ago (2015-09-01 16:00:03 UTC) #4
mtklein_C
Ping.
5 years, 3 months ago (2015-09-10 00:40:56 UTC) #5
reed1
I still have a minor request for an alias (e.g. SkNx_replicate<2> --> SkNx_shuffle<2, 2, 2, ...
5 years, 3 months ago (2015-09-10 16:55:00 UTC) #6
mtklein
On 2015/09/10 16:55:00, reed1 wrote: > I still have a minor request for an alias ...
5 years, 3 months ago (2015-09-10 18:32:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1301413006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1301413006/40001
5 years, 3 months ago (2015-09-10 18:32:47 UTC) #10
commit-bot: I haz the power
5 years, 3 months ago (2015-09-10 21:16:11 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/a1c0ee40040fa8bb06f5f68ba4bcb3a68f789924

Powered by Google App Engine
This is Rietveld 408576698