Class UpscalerSupportedBuildTargetAttribute
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
public sealed class UpscalerSupportedBuildTargetAttribute : Attribute
Constructors
UpscalerSupportedBuildTargetAttribute(params BuildTarget[])
Declares the BuildTargets the upscaler supports. Set the graphicsDeviceTypes property to narrow the
declaration to particular GraphicsDeviceTypes on those targets.
Declaration
public UpscalerSupportedBuildTargetAttribute(params BuildTarget[] buildTargets)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildTarget[] | buildTargets | The BuildTargets the upscaler supports. Leave unset to support any target. |
Properties
buildTargets
The BuildTargets the upscaler supports. Leave unset to support any target.
Declaration
public BuildTarget[] buildTargets { get; }
Property Value
| Type | Description |
|---|---|
| BuildTarget[] |
graphicsDeviceTypes
The GraphicsDeviceTypes the upscaler supports on the specified buildTargets. Leave unset to
support any API.
Declaration
public GraphicsDeviceType[] graphicsDeviceTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| GraphicsDeviceType[] |
Methods
IsBuildTargetSupported(Type, BuildTarget)
Returns whether an upscaler supports a build target.
Declaration
public static bool IsBuildTargetSupported(Type upscalerType, BuildTarget buildTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | upscalerType | The upscaler type to read the declarations from. |
| BuildTarget | buildTarget | The build target to check. |
Returns
| Type | Description |
|---|---|
| bool |
IsGraphicsAPISupported(Type, BuildTarget, GraphicsDeviceType)
Returns whether an upscaler supports a graphics API on a build target. Returns false when the build target itself is unsupported.
Declaration
public static bool IsGraphicsAPISupported(Type upscalerType, BuildTarget buildTarget, GraphicsDeviceType graphicsDeviceType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | upscalerType | The upscaler type to read the declarations from. |
| BuildTarget | buildTarget | The build target to check. |
| GraphicsDeviceType | graphicsDeviceType | The graphics API to check. |
Returns
| Type | Description |
|---|---|
| bool |