Class UseGraphicsTestCasesAttribute | Graphics Tests Framework | 7.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class UseGraphicsTestCasesAttribute

    Marks a test which takes GraphicsTestCase instances as wanting to have them generated automatically by the scene/reference-image management feature in the framework.

    Inheritance
    Object
    UnityEngine.TestTools.UnityTestAttribute
    UseGraphicsTestCasesAttribute
    Namespace: UnityEngine.TestTools.Graphics
    Syntax
    public class UseGraphicsTestCasesAttribute : UnityTestAttribute, ISimpleTestBuilder, IImplyFixture, ITestBuilder

    Constructors

    UseGraphicsTestCasesAttribute()

    Declaration
    public UseGraphicsTestCasesAttribute()

    UseGraphicsTestCasesAttribute(String)

    Declaration
    public UseGraphicsTestCasesAttribute(string referenceImagePath)
    Parameters
    Type Name Description
    String referenceImagePath

    Properties

    ColorSpace

    Declaration
    public static ColorSpace ColorSpace { get; }
    Property Value
    Type Description
    ColorSpace

    GraphicsDevice

    Declaration
    public static GraphicsDeviceType GraphicsDevice { get; }
    Property Value
    Type Description
    GraphicsDeviceType

    LoadedXRDevice

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

    Platform

    Declaration
    public static RuntimePlatform Platform { get; }
    Property Value
    Type Description
    RuntimePlatform

    Provider

    The IGraphicsTestCaseProvider which will be used to generate the GraphicsTestCase instances for the tests.

    Declaration
    public IGraphicsTestCaseProvider Provider { get; }
    Property Value
    Type Description
    IGraphicsTestCaseProvider

    Methods

    GetCaseFromScenePath(String, String)

    Declaration
    public static GraphicsTestCase GetCaseFromScenePath(string scenePath, string referenceImagePath = null)
    Parameters
    Type Name Description
    String scenePath
    String referenceImagePath
    Returns
    Type Description
    GraphicsTestCase
    Back to top
    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