Calculates the minimum alignment required when creating a texture buffer from a buffer.
Required.
SDKs
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
Framework
- Metal
Declaration
- (NSUInteger)minimumTextureBufferAlignmentForPixelFormat:(MTLPixel Format)format;
Discussion
Texture buffers must be byte aligned to their minimum alignment value, which directly affects the expected value for the offset
and bytes
parameters of the new
method.