Show / Hide Table of Contents

Class ShaderUtil

Inheritance
Object
ShaderUtil
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor
Assembly: UnityEditor.dll
Syntax
public sealed class ShaderUtil

Properties

hardwareSupportsRectRenderTexture

Declaration
public static bool hardwareSupportsRectRenderTexture { get; }
Property Value
Type Description
Boolean

Methods

ClearShaderErrors(Shader)

Declaration
public static void ClearShaderErrors(Shader s)
Parameters
Type Name Description
Shader s

CreateShaderAsset(String)

Declaration
public static Shader CreateShaderAsset(string source)
Parameters
Type Name Description
String source
Returns
Type Description
Shader

GetAllShaderInfo()

Declaration
public static ShaderInfo[] GetAllShaderInfo()
Returns
Type Description
ShaderInfo[]

GetPropertyCount(Shader)

Declaration
public static int GetPropertyCount(Shader s)
Parameters
Type Name Description
Shader s
Returns
Type Description
Int32
| Improve this Doc View Source

GetPropertyDescription(Shader, Int32)

Declaration
public static string GetPropertyDescription(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
String
| Improve this Doc View Source

GetPropertyName(Shader, Int32)

Declaration
public static string GetPropertyName(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
String
| Improve this Doc View Source

GetPropertyType(Shader, Int32)

Declaration
public static ShaderUtil.ShaderPropertyType GetPropertyType(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
ShaderUtil.ShaderPropertyType
| Improve this Doc View Source

GetRangeLimits(Shader, Int32, Int32)

Declaration
public static float GetRangeLimits(Shader s, int propertyIdx, int defminmax)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Int32 defminmax
Returns
Type Description
Single
| Improve this Doc View Source

GetShaderData(Shader)

Declaration
public static ShaderData GetShaderData(Shader shader)
Parameters
Type Name Description
Shader shader
Returns
Type Description
ShaderData
| Improve this Doc View Source

GetTexDim(Shader, Int32)

Declaration
public static TextureDimension GetTexDim(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
TextureDimension
| Improve this Doc View Source

IsShaderPropertyHidden(Shader, Int32)

Declaration
public static bool IsShaderPropertyHidden(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
Boolean
| Improve this Doc View Source

IsShaderPropertyNonModifiableTexureProperty(Shader, Int32)

Declaration
public static bool IsShaderPropertyNonModifiableTexureProperty(Shader s, int propertyIdx)
Parameters
Type Name Description
Shader s
Int32 propertyIdx
Returns
Type Description
Boolean

RegisterShader(Shader)

Declaration
public static void RegisterShader(Shader shader)
Parameters
Type Name Description
Shader shader

UpdateShaderAsset(Shader, String)

Declaration
public static void UpdateShaderAsset(Shader shader, string source)
Parameters
Type Name Description
Shader shader
String source

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX