Class HlslShaderParams
Shader parameters for HLSL shader execution
Inherited Members
Namespace: UnityEngine.TestTools.Graphics.Shaders
Assembly: UnityEditor.TestTools.Graphics.dll
Syntax
public sealed class HlslShaderParams : ShaderParams
Constructors
HlslShaderParams(string, Type)
Creates a new instance of HlslShaderParams
Declaration
public HlslShaderParams(string function, Type returnType)
Parameters
| Type | Name | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| string | function | The function in test. This should be written in full, exactly as it would appear in HLSL, including any parameter values. For example, write "function()" or "function(1,2)" |
||||||||||||||||
| Type | returnType | The expected return type for the function in test. The return values should be as follows, based on the HLSL return type:
|