Struct ShaderHandle
Handle to a loaded shader
Inherited Members
Namespace: UnityEngine.TestTools.Graphics.Shaders
Assembly: UnityEditor.TestTools.Graphics.dll
Syntax
public readonly struct ShaderHandle
Constructors
ShaderHandle(string, ShaderType, string, bool)
Creates a new ShaderHandle instance
Declaration
public ShaderHandle(string path, ShaderType type, string relativePath = null, bool isGenerated = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to the shader file |
| ShaderType | type | The type of the shader |
| string | relativePath | The path relative to the project |
| bool | isGenerated | True if the shader was generated by the test framework |
Fields
isGenerated
True if the shader was generated by the test framework
Declaration
public readonly bool isGenerated
Field Value
| Type | Description |
|---|---|
| bool |
name
The name of the shader
Declaration
public readonly string name
Field Value
| Type | Description |
|---|---|
| string |
path
The path to the shader file
Declaration
public readonly string path
Field Value
| Type | Description |
|---|---|
| string |
relativePath
The path relative to the project
Declaration
public readonly string relativePath
Field Value
| Type | Description |
|---|---|
| string |
type
The type of the shader
Declaration
public readonly ShaderType type
Field Value
| Type | Description |
|---|---|
| ShaderType |