Contents

constantBlockAlignment

The alignment of the constant block.

Declaration

var constantBlockAlignment: Int { get set }

Discussion

If set, this property forces the constant block to be aligned to the specified value. It should be set on the first constant only, and is valid only if a corresponding explicit alignas specifier is applied to the constant in the Metal shader language.

See Also

Setting the descriptor’s properties