docs.unity3d.com
    Show / Hide Table of Contents

    Class GraphicsTestCase

    Represents one automatically-generated graphics test case.

    Inheritance
    Object
    GraphicsTestCase
    Namespace: UnityEngine.TestTools.Graphics
    Syntax
    public class GraphicsTestCase

    Constructors

    GraphicsTestCase(String, CodeBasedGraphicsTestAttribute, Texture2D, RenderPipelineAsset)

    Declaration
    public GraphicsTestCase(string name, CodeBasedGraphicsTestAttribute codeBasedGraphicsTestAttrib, Texture2D referenceImage, RenderPipelineAsset srpAsset = null)
    Parameters
    Type Name Description
    String name
    CodeBasedGraphicsTestAttribute codeBasedGraphicsTestAttrib
    Texture2D referenceImage
    RenderPipelineAsset srpAsset

    GraphicsTestCase(String, Texture2D, RenderPipelineAsset)

    Declaration
    public GraphicsTestCase(string scenePath, Texture2D referenceImage, RenderPipelineAsset srpAsset = null)
    Parameters
    Type Name Description
    String scenePath
    Texture2D referenceImage
    RenderPipelineAsset srpAsset

    Properties

    CodeBasedGraphicsTestAttribute

    The associated CodeBasedGraphicsTestAttribute if the test case is code based.

    Declaration
    public CodeBasedGraphicsTestAttribute CodeBasedGraphicsTestAttribute { get; }
    Property Value
    Type Description
    CodeBasedGraphicsTestAttribute

    Name

    The name of the test to be displayed in the TestRunner window and the Graphics Test Results window.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String

    ReferenceImage

    The reference image that represents the expected output for this test case.

    Declaration
    public Texture2D ReferenceImage { get; }
    Property Value
    Type Description
    Texture2D

    ScenePath

    The path to the scene to be used for this test case.

    Declaration
    public string ScenePath { get; }
    Property Value
    Type Description
    String

    SRPAsset

    The Scriptable Render Pipeline Asset used for this test case.

    Declaration
    public RenderPipelineAsset SRPAsset { get; }
    Property Value
    Type Description
    RenderPipelineAsset
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023