docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HlslShaderParams

    Shader parameters for HLSL shader execution

    Inheritance
    object
    ShaderParams
    HlslShaderParams
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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:

    HLSL TypeC# Type
    floatfloat
    float2,int2Vector2
    float3,int3Vector3
    float4,int4Vector4
    intint
    uintuint
    float4x4Matrix4x4
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)