Function

MTLSamplePositionMake

Returns a new sample position on a subpixel grid.

Declaration

MTLSamplePosition MTLSamplePositionMake(float x, float y);

See Also

Using Programmable Sample Positions

Positioning Samples Programmatically

Configure the position of samples when rendering to a multisampled render target.

Handling MSAA Depth with Programmable Sample Positions

Use depth render targets and programmable sample positions effectively.

MTLSamplePosition

A sample position on a subpixel grid.

- setSamplePositions:count:

Sets the programmable sample positions for a render pass.

- getSamplePositions:count:

Retrieves the programmable sample positions set for a render pass.