Class ShaderStageExtensions | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShaderStageExtensions

    Inheritance
    System.Object
    ShaderStageExtensions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public static class ShaderStageExtensions

    Methods

    TryGetShaderStage(ShaderStageCapability, out ShaderStage)

    Tries to convert a ShaderStageCapability into a ShaderStage. The conversion is only successful if the given ShaderStageCapability capability refers to exactly 1 shader stage.

    Declaration
    public static bool TryGetShaderStage(this ShaderStageCapability capability, out ShaderStage stage)
    Parameters
    Type Name Description
    ShaderStageCapability capability

    The ShaderStageCapability to convert.

    ShaderStage stage

    If capability refers to exactly 1 shader stage, this parameter will contain the equivalent ShaderStage of that. Otherwise the value is undefined.

    Returns
    Type Description
    System.Boolean

    True is capability holds exactly 1 shader stage.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023