Instance Method

minimumTextureBufferAlignmentForPixelFormat:

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

Required.

Declaration

- (NSUInteger)minimumTextureBufferAlignmentForPixelFormat:(MTLPixelFormat)format;

Discussion

Texture buffers must be byte aligned to their minimum alignment value, which directly affects the expected value for the offset and bytesPerRow parameters of the newTextureWithDescriptor:offset:bytesPerRow: method.

See Also

Querying Texture Support

- supportsTextureSampleCount:

Determines whether a device supports a given texture sample count.

Required.

- minimumLinearTextureAlignmentForPixelFormat:

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

Required.

readWriteTextureSupport

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

Required.