Skip to content

cf_app_set_msaa

Category: app
GitHub: cute_app.h


Sets the MSAA sample count for the app's offscreen canvas.

bool cf_app_set_msaa(int sample_count);
Parameters Description
sample_count The number of MSAA samples (e.g. 1, 2, 4, 8).

Return Value

Returns true if the sample_count was valid for the given GPU.

Remarks

This affects rendering quality by enabling or disabling multisample anti-aliasing. If sample_count is 1, MSAA is disabled (default). Higher values enable smoother edge rendering. The value should match a supported sample count for the current GPU. Note: If this is enabled you can not sample from the app's canvas, i.e. cf_app_get_canvas is then effectively write-only.

CF_MSAA
cf_app_get_msaa
CF_Canvas