summaryrefslogtreecommitdiff
path: root/src/resources/dye/dyepalette.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/dye/dyepalette.h')
-rw-r--r--src/resources/dye/dyepalette.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/resources/dye/dyepalette.h b/src/resources/dye/dyepalette.h
index 19a406097..79bc03443 100644
--- a/src/resources/dye/dyepalette.h
+++ b/src/resources/dye/dyepalette.h
@@ -197,13 +197,45 @@ class DyePalette final
void replaceAOGLColorSimd(uint32_t *restrict pixels,
const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for A dye.
+ */
+ FUNCTION_SIMD_DEFAULT
+ void replaceAOGLColorSse2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
+ /**
+ * replace colors for OpenGL for A dye.
+ */
+ FUNCTION_SIMD_DEFAULT
+ void replaceAOGLColorAvx2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+
#ifdef SIMD_SUPPORTED
/**
* replace colors for OpenGL for A dye.
*/
+ __attribute__ ((target ("sse2")))
+ void replaceAOGLColorSimd(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for A dye.
+ */
__attribute__ ((target ("avx2")))
void replaceAOGLColorSimd(uint32_t *restrict pixels,
const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for A dye.
+ */
+ __attribute__ ((target ("sse2")))
+ void replaceAOGLColorSse2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
+ /**
+ * replace colors for OpenGL for A dye.
+ */
+ __attribute__ ((target ("avx2")))
+ void replaceAOGLColorAvx2(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
#endif // SIMD_SUPPORTED
#endif // USE_OPENGL