A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytedeco/javacpp-presets/issues/1168 below:

JavaCPP doesnt recognize C++ "struct alignas(16) Pixel" · Issue #1168 · bytedeco/javacpp-presets · GitHub

JavaCPP doesnt recognize

// pixel
struct alignas(16) Pixel
{
	UNIGINE_INLINE Pixel() {}
	UNIGINE_INLINE Pixel(int r, int g = 0, int b = 0, int a = 0)
	{
		i.r = r;
		i.g = g;
		i.b = b;
		i.a = a;
	}
	UNIGINE_INLINE Pixel(float r, float g = 0.0f, float b = 0.0f, float a = 0.0f)
	{
		f.r = r;
		f.g = g;
		f.b = b;
		f.a = a;
	}
	union
	{
		Pixeli i;
		Pixelf f;
	};
};

ITs more standard way to align
check out on stackoverflow:

https://stackoverflow.com/questions/19958912/what-is-the-difference-between-struct-declspecalign16-sse-t-and-struct-ali


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4