summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-21 03:14:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-21 15:54:02 +0300
commit04a778763ac79a38cebd2fd4ffafa05687138fcc (patch)
tree771d1b057b03d13957f02011b94d536a815b4054 /src/resources/dye/dyepalette.h
parentc1c14c1ec2410671894bc5d84b10766a6183c852 (diff)
downloadplus-04a778763ac79a38cebd2fd4ffafa05687138fcc.tar.gz
plus-04a778763ac79a38cebd2fd4ffafa05687138fcc.tar.bz2
plus-04a778763ac79a38cebd2fd4ffafa05687138fcc.tar.xz
plus-04a778763ac79a38cebd2fd4ffafa05687138fcc.zip
Add simd function for dye replace color (OpenGL).
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r--src/resources/dye/dyepalette.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h
index 663f5375e..4622527fd 100644
--- a/src/resources/dye/dyepalette.h
+++ b/src/resources/dye/dyepalette.h
@@ -100,6 +100,28 @@ class DyePalette final
const int bufSize) const restrict2;
/**
+ * replace colors for OpenGL for S dye.
+ */
+ void replaceSOGLColorDefault(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ FUNCTION_SIMD_DEFAULT
+ void replaceSOGLColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
+#ifdef SIMD_SUPPORTED
+ /**
+ * replace colors for OpenGL for S dye.
+ */
+ __attribute__ ((target ("avx2")))
+ void replaceSOGLColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+#endif // SIMD_SUPPORTED
+
+ /**
* replace colors for OpenGL for A dye.
*/
void replaceAOGLColor(uint32_t *restrict pixels,