init(useTintColor:useTexture:outputChannel:outputOpacity:)
Creates a descriptor for the specified combination of inputs and outputs.
Declaration
init(useTintColor: Bool, useTexture: Bool, outputChannel: LowLevelMaterialResource.SimpleSurfaceDescriptor.OutputChannel, outputOpacity: Bool)Parameters
- useTintColor:
If
true, the shader reads a tint color from the argument table and multiplies it with the surface output. - useTexture:
If
true, the shader samples a texture from the argument table and multiplies it with the surface output. - outputChannel:
The surface output channel the shader writes to.
- outputOpacity:
If
true, the shader also writes the computed alpha to the surface opacity output.