Protocol

SCNProgramDelegate

The interface for tracking errors that occur when compiling shader source code.

Declaration

@protocol SCNProgramDelegate

Overview

You create and use custom shader programs with the SCNProgram class.

Topics

Handling Shader Compilation Errors

- program:handleError:

Tells the delegate that an error occurred when compiling GLSL source code.

SCNErrorDomain

Identifies an error type defined by the SceneKit framework.

SceneKit Error Codes

Constants for the code property of NSError objects produced by the SceneKit framework.

Finding Fragment Opaqueness

- programIsOpaque:

Asks the delegate whether fragments rendered by a program are opaque.

Deprecated

Binding and Unbinding Values

- program:bindValueForSymbol:atLocation:programID:renderer:

Invoked on the delegate to let it bind program values and/or associated graphics resources (such as textures) for symbols.

Deprecated
- program:unbindValueForSymbol:atLocation:programID:renderer:

Invoked on the delegate to let it unbind program values and/or also unbind associated graphic resources (such as textures).

Deprecated

Relationships

Inherits From

See Also

Providing a Delegate Object

delegate

The delegate of the program object.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software