Instance Method

supportsTextureSampleCount:

Determines whether a device supports a given texture sample count.

Required.

Declaration

- (BOOL)supportsTextureSampleCount:(NSUInteger)sampleCount;

Parameters

sampleCount

The sample count that you are interested in using.

Return Value

YES if the sample count is supported by the device; otherwise NO.

Discussion

The following table lists the device support for each possible sample count value.

Table 1

Supported Sample Count Values

Sample Count Value

Device Support

1

All devices

2

All iOS and tvOS devices; some macOS devices

4

All devices

8

Some macOS devices

See Also

Querying Texture Support

- minimumLinearTextureAlignmentForPixelFormat:

Calculates the minimum alignment required for creating a linear texture with a given pixel format.

Required.

- minimumTextureBufferAlignmentForPixelFormat:

Calculates the minimum alignment required when creating a texture buffer from a buffer.

Required.

readWriteTextureSupport

The device objects's read-write texture support tier.

Required.