Contents

MTLStructType

A description of a structure.

Declaration

class MTLStructType

Overview

MTLStructType is part of the reflection API that allows Metal framework code to query details of a struct that is passed as an argument of a Metal shading language function. Don’t create MTLStructType instances directly; instead query the bufferStructType property of an MTLArgument instance, or call the structType() method for an MTLStructMember instance. To examine the details of the struct, you can recursively drill down the members property of the MTLStructType instance, which contains details about struct members, each of which is represented by an MTLStructMember instance.

Topics

Obtaining information about struct members

See Also

Shader types