Class UniversalResourceDataBase
Base class for URP texture data.
Inherited Members
ContextItem.Reset()
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public abstract class UniversalResourceDataBase : ContextItem
Methods
CheckAndGetTextureHandle(ref TextureHandle)
Fetches the texture handle if the texture is accessible.
Declaration
protected TextureHandle CheckAndGetTextureHandle(ref TextureHandle handle)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle | handle | Handle to the texture you want to retrieve |
Returns
Type | Description |
---|---|
TextureHandle | Returns the handle if the texture is accessible and a null handle otherwise. |
CheckAndGetTextureHandle(ref TextureHandle[])
Fetches the texture handles if the texture is accessible.
Declaration
protected TextureHandle[] CheckAndGetTextureHandle(ref TextureHandle[] handle)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle[] | handle | Handles to the texture you want to retrieve |
Returns
Type | Description |
---|---|
TextureHandle[] | Returns the handles if the texture is accessible and a null handle otherwise. |
CheckAndSetTextureHandle(ref TextureHandle, TextureHandle)
Updates the texture handle if the texture is accessible.
Declaration
protected void CheckAndSetTextureHandle(ref TextureHandle handle, TextureHandle newHandle)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle | handle | Handle to update. |
TextureHandle | newHandle | Handle of the new data. |
CheckAndSetTextureHandle(ref TextureHandle[], TextureHandle[])
Updates the texture handles if the texture is accessible. The current and new handles needs to be of the same size.
Declaration
protected void CheckAndSetTextureHandle(ref TextureHandle[] handle, TextureHandle[] newHandle)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle[] | handle | Handles to update. |
TextureHandle[] | newHandle | Handles of the new data. |
CheckAndWarnAboutAccessibility()
Check if the texture is accessible.
Declaration
protected bool CheckAndWarnAboutAccessibility()
Returns
Type | Description |
---|---|
bool | Returns true if the texture is accessible and false otherwise. |