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 |
|---|---|
| ActiveSubshader | Returns the active subshader or null if none is currently active. |
| ActiveSubshaderIndex | Returns the index of the active subshader or -1 if none is currently active. |
| SerializedSubshaderCount | The number of serialized subshaders used by this shader. |
| SourceShader | The shader attached to this data set. |
| SubshaderCount | The number of runtime subshaders used by this shader. |
Methods
Method | Description |
|---|---|
| GetSerializedSubshader | Obtains the serialized subshader at the given index. |
| GetSubshader | Obtains the runtime subshader at the given index. |
Classes
Class | Description |
|---|---|
| ShaderData.Pass | This class describes a pass of a subshader. |
| ShaderData.Subshader | This class describes a subshader. |
Structs
Struct | Description |
|---|---|
| ShaderData.ConstantBufferInfo | Provides resource layout information about a shader constant buffer. |
| ShaderData.ConstantInfo | Provides information about a shader constant (uniform) value. |
| ShaderData.PreprocessedVariant | Represents the results of preprocessing a variant using ShaderData.Pass.PreprocessVariant. |
| ShaderData.TextureBindingInfo | Provides resource layout information about a texture binding. |
| ShaderData.VariantCompileInfo | Represents the results of compiling a variant using ShaderData.Pass.CompileVariant. |