Struct TextureHandle
Texture resource handle.
Inherited Members
Namespace: UnityEngine .Experimental.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct TextureHandle
Properties
nullHandle
Returns a null texture handle
Declaration
public static TextureHandle nullHandle { get; }
Property Value
Type | Description |
---|---|
Texture |
A null texture handle. |
Methods
IsValid()
Return true if the handle is valid.
Declaration
public bool IsValid()
Returns
Type | Description |
---|---|
bool | True if the handle is valid. |
SetFallBackResource(TextureHandle)
Sets the fallback resource
Declaration
public void SetFallBackResource(TextureHandle texture)
Parameters
Type | Name | Description |
---|---|---|
Texture |
texture | The texture handle |
Operators
implicit operator RenderTexture(TextureHandle)
Cast to RenderTexture
Declaration
public static implicit operator RenderTexture(TextureHandle texture)
Parameters
Type | Name | Description |
---|---|---|
Texture |
texture | Input TextureHandle. |
Returns
Type | Description |
---|---|
Render |
Resource as a RenderTexture. |
implicit operator RTHandle(TextureHandle)
Cast to RTHandle
Declaration
public static implicit operator RTHandle(TextureHandle texture)
Parameters
Type | Name | Description |
---|---|---|
Texture |
texture | Input TextureHandle. |
Returns
Type | Description |
---|---|
RTHandle | Resource as a RTHandle. |
implicit operator RenderTargetIdentifier(TextureHandle)
Cast to RenderTargetIdentifier
Declaration
public static implicit operator RenderTargetIdentifier(TextureHandle texture)
Parameters
Type | Name | Description |
---|---|---|
Texture |
texture | Input TextureHandle. |
Returns
Type | Description |
---|---|
Render |
Resource as a RenderTargetIdentifier. |
implicit operator Texture(TextureHandle)
Cast to Texture
Declaration
public static implicit operator Texture(TextureHandle texture)
Parameters
Type | Name | Description |
---|---|---|
Texture |
texture | Input TextureHandle. |
Returns
Type | Description |
---|---|
Texture | Resource as a Texture. |