STORAGE QUALIFIERS

Constant

const

A qualifier for constant types and funtions and for function parameters that are read-only.

Constant

constant

An address space qualifier for function parameters with reference type (e.g. the uniform buffer) that are read-only.

Constant expression

constexpr

A qualifier for constant expressions.

ACCESS QUALIFIERS

Public access

public:

An access qualifier that defines public access for the variables of a structure or class.

Private access

private:

An access qualifier that defines private access for the variables of a structure or class.

FUNCTION QUALIFIERS

Vertex function

vertex Varying vertexShader() {}

A qualifier for identifiying the vertex function in a Metal shader file.

Fragment function

fragment float4 fragmentShader() {}

A qualifier for identifiying the fragment function in a Metal shader file.