Class RenderingUtils
Contains properties and helper functions that you can use when rendering.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public static class RenderingUtils
Methods
Name | Description |
---|---|
CreateDrawingSettings(List<ShaderTagId>, ref RenderingData, SortingCriteria) | Creates |
CreateDrawingSettings(ShaderTagId, ref RenderingData, SortingCriteria) | Creates |
ReAllocateIfNeeded(ref RTHandle, in RenderTextureDescriptor, FilterMode, TextureWrapMode, bool, int, float, string) | Re-allocate fixed-size RTHandle if it is not allocated or doesn't match the descriptor |
ReAllocateIfNeeded(ref RTHandle, ScaleFunc, in RenderTextureDescriptor, FilterMode, TextureWrapMode, bool, int, float, string) | Re-allocate dynamically resized RTHandle if it is not allocated or doesn't match the descriptor |
ReAllocateIfNeeded(ref RTHandle, Vector2, in RenderTextureDescriptor, FilterMode, TextureWrapMode, bool, int, float, string) | Re-allocate dynamically resized RTHandle if it is not allocated or doesn't match the descriptor |
SetViewAndProjectionMatrices(CommandBuffer, Matrix4x4, Matrix4x4, bool) | Set view and projection matrices.
This function will set |
SupportsGraphicsFormat(GraphicsFormat, FormatUsage) | Checks if a texture format is supported by the run-time system. Similar to UnityEngine.SystemInfo.IsFormatSupported(UnityEngine.Experimental.Rendering.GraphicsFormat, UnityEngine.Experimental.Rendering.FormatUsage), but doesn't allocate memory. |
SupportsRenderTextureFormat(RenderTextureFormat) | Checks if a render texture format is supported by the run-time system. Similar to SupportsRenderTextureFormat(RenderTextureFormat), but doesn't allocate memory. |