mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@14715 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e6a67d3c11
commit
257bc96a5f
2 changed files with 29 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
* C:\upp\out\autotest\MSBT19.Debug.Debug_Full\SIMD.exe 28.07.2020 10:09:37, user: cxl
|
||||
* C:\upp\out\autotest\MSBT19.Debug.Debug_Full\SIMD.exe 28.07.2020 10:15:45, user: cxl
|
||||
|
||||
LoadRGBAF(&x) = 255 11 22 33
|
||||
i16x8(*(dword *)s) = 0 0 0 0 0 0 0 5665
|
||||
|
|
@ -6,6 +6,10 @@ Unpack8L(i16x8(*(dword *)s)) = 0 0 0 0 0 0 22 33
|
|||
Unpack8L(i16x8(*(dword *)s)) = 0 0 0 0 0 0 22 33
|
||||
p = [RGBA(255, 255, 0, 255), RGBA(15, 0, 29, 30), RGBA(0, 0, 50, 100), RGBA(0, 100, 0, 200), RGBA(128, 0, 0, 255)]
|
||||
p = [RGBA(254, 10, 0, 255), RGBA(244, 0, 1, 245), RGBA(244, 0, 2, 248), RGBA(244, 4, 0, 253), RGBA(249, 0, 0, 255)]
|
||||
c = RGBA(250, 0, 0, 250)
|
||||
LoadRGBA2(c) = 250 250 0 0 250 250 0 0
|
||||
Mul8(LoadRGBA2(c), 250) = 244 244 0 0 244 244 0 0
|
||||
MakeAlpha(Mul8(LoadRGBA2(c), 250)) = 12 11 11 11 12 11 11 11
|
||||
----------------
|
||||
x = 1 2 3 4
|
||||
Broadcast0(x) = 4 4 4 4
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ CONSOLE_APP_MAIN
|
|||
StdLogSetup(LOG_COUT|LOG_FILE);
|
||||
|
||||
#ifdef CPU_SIMD
|
||||
{
|
||||
RGBA x = Color(11, 22, 33);
|
||||
RGBA *s = &x;
|
||||
|
||||
|
|
@ -25,11 +26,16 @@ CONSOLE_APP_MAIN
|
|||
p.Add(200 * Green());
|
||||
p.Add(Red());
|
||||
|
||||
|
||||
DUMP(p);
|
||||
AlphaBlend(p.begin(), 250 * LtRed(), 250, 5);
|
||||
DUMP(p);
|
||||
|
||||
RGBA c = 250 * LtRed();
|
||||
DUMP(c);
|
||||
DUMP(LoadRGBA2(c));
|
||||
DUMP(Mul8(LoadRGBA2(c), 250));
|
||||
DUMP(MakeAlpha(Mul8(LoadRGBA2(c), 250)));
|
||||
}
|
||||
|
||||
{
|
||||
f32x4 x(1, 2, 3, 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue