Version: Unity 6.5 (6000.5)
LanguageEnglish
  • C#

Utility

class in UnityEngine.Shaders

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

This class contains utility functions related to shader enums.

This class provides methods to convert ShaderStage to ShaderStageFlags and check whether a given ShaderStage is enabled in a ShaderStageFlags value.

Additional resources: ShaderStage, ShaderStageFlags.

Static Methods

Method Description
IsShaderStageEnabledReturns true if given shader stage is enabled in flags. Returns false otherwise.
ShaderStageToFlagsConverts a ShaderStage value into a ShaderStageFlags value.