SDL_PIXELLAYOUT3
A macro to retrieve the layout of an sdl_pixelformat .
Usage
#include "SDL3/SDL.h"
#define SDL_PIXELLAYOUT(format) (((format) >> 16) & 0x0F)
Header file
Defined in SDL3/SDL_pixels.h
Overview
This is usually a value from the SDL_PackedLayout
enumeration, or zero if a layout doesn't make sense for the format type.
Return value
Returns the layout of format .
Thread safety
It is safe to call this macro from any thread.