Class TextureCache2D
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEngine.Experimental.Rendering
Syntax
public class TextureCache2D : TextureCache
Constructors
TextureCache2D(String)
Declaration
public TextureCache2D(string cacheName = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheName |
Methods
AllocTextureArray(Int32, Int32, Int32, TextureFormat, Boolean)
Declaration
public bool AllocTextureArray(int numTextures, int width, int height, TextureFormat format, bool isMipMapped)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | numTextures | |
System.Int32 | width | |
System.Int32 | height | |
TextureFormat | format | |
System.Boolean | isMipMapped |
Returns
Type | Description |
---|---|
System.Boolean |
GetTexCache()
Declaration
public override Texture GetTexCache()
Returns
Type | Description |
---|---|
Texture |
Overrides
Release()
Declaration
public void Release()
TransferToSlice(CommandBuffer, Int32, Texture)
Declaration
public override void TransferToSlice(CommandBuffer cmd, int sliceIndex, Texture texture)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | |
System.Int32 | sliceIndex | |
Texture | texture |