5f675be193
This does not give us 100% coverage of intrinsics yet, but it is a pretty good start. Change-Id: I97d49324db1afd9f2975c2eeafbacdead710d4aa Bug: skia:11054 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/341977 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
10 lines
262 B
Plaintext
10 lines
262 B
Plaintext
in half2 a;
|
|
in half4 b;
|
|
void main() {
|
|
sk_FragColor.x = half(packHalf2x16(a));
|
|
sk_FragColor.x = half(packUnorm2x16(a));
|
|
sk_FragColor.x = half(packSnorm2x16(a));
|
|
sk_FragColor.x = half(packUnorm4x8(b));
|
|
sk_FragColor.x = half(packSnorm4x8(b));
|
|
}
|