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 set_samples_per_pixel.
Calling get_samples_per_pixel before the framebuffer has been allocated will simply return the value set using 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.
this |
A Framebuffer framebuffer |
The number of point samples made per pixel when rasterizing geometry or 0 if single-sample rendering has been chosen. |