Cogl.Framebuffer.prototype.get_samples_per_pixel
function get_samples_per_pixel(): Number(gint) { // Gjs wrapper for cogl_framebuffer_get_samples_per_pixel() }
Gets the number of points that are sampled per-pixel when rasterizing geometry. Usually by default this will return 0 which means that single-sample not multisample rendering has been chosen. When using a GPU supporting multisample rendering it's possible to increase the number of samples per pixel using Cogl.Framebuffer.prototype.set_samples_per_pixel.
Calling Cogl.Framebuffer.prototype.get_samples_per_pixel before the framebuffer has been allocated will simply return the value set using Cogl.Framebuffer.prototype.set_samples_per_pixel. After the framebuffer has been allocated the value will reflect the actual number of samples that will be made by the GPU.
Since 1.10
- Returns
The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen.