Instance Method

minimumTextureBufferAlignment(for:)

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

Required.

Declaration

func minimumTextureBufferAlignment(for format: MTLPixelFormat) -> Int

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 makeTexture(descriptor:offset:bytesPerRow:) method.

See Also

Querying Texture Support

func supportsTextureSampleCount(Int) -> Bool

Determines whether a device supports a given texture sample count.

Required.

func minimumLinearTextureAlignment(for: MTLPixelFormat) -> Int

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

Required.

var readWriteTextureSupport: MTLReadWriteTextureTier

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

Required.