Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShaderData

This class describes a shader.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public class ShaderData

Properties

Property

Description

ActiveSubshaderReturns the active subshader or null if none is currently active.
ActiveSubshaderIndexReturns the index of the active subshader or -1 if none is currently active.
SerializedSubshaderCountThe number of serialized subshaders used by this shader.
SourceShaderThe shader attached to this data set.
SubshaderCountThe number of runtime subshaders used by this shader.

Methods

Method

Description

GetSerializedSubshaderObtains the serialized subshader at the given index.
GetSubshaderObtains the runtime subshader at the given index.

Classes

Class

Description

ShaderData.PassThis class describes a pass of a subshader.
ShaderData.SubshaderThis class describes a subshader.

Structs

Struct

Description

ShaderData.ConstantBufferInfoProvides resource layout information about a shader constant buffer.
ShaderData.ConstantInfoProvides information about a shader constant (uniform) value.
ShaderData.PreprocessedVariantRepresents the results of preprocessing a variant using ShaderData.Pass.PreprocessVariant.
ShaderData.TextureBindingInfoProvides resource layout information about a texture binding.
ShaderData.VariantCompileInfoRepresents the results of compiling a variant using ShaderData.Pass.CompileVariant.