Class TextureUtils
Inheritance
System.Object
TextureUtils
Assembly: Mixture.Runtime.dll
Syntax
public static class TextureUtils
Methods
|
Improve this Doc
View Source
GetBlackTexture(MixtureRTSettings)
Declaration
public static Texture GetBlackTexture(MixtureRTSettings settings)
Parameters
Returns
Type |
Description |
UnityEngine.Texture |
|
|
Improve this Doc
View Source
GetBlackTexture(TextureDimension, Int32)
Declaration
public static Texture GetBlackTexture(TextureDimension dim, int sliceCount = 0)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.TextureDimension |
dim |
|
System.Int32 |
sliceCount |
|
Returns
Type |
Description |
UnityEngine.Texture |
|
|
Improve this Doc
View Source
GetDimensionFromType(Type)
Declaration
public static TextureDimension GetDimensionFromType(Type textureType)
Parameters
Type |
Name |
Description |
System.Type |
textureType |
|
Returns
Type |
Description |
UnityEngine.Rendering.TextureDimension |
|
|
Improve this Doc
View Source
GetSliceCount(Texture)
Declaration
public static int GetSliceCount(Texture tex)
Parameters
Type |
Name |
Description |
UnityEngine.Texture |
tex |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTypeFromDimension(TextureDimension)
Declaration
public static Type GetTypeFromDimension(TextureDimension dimension)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.TextureDimension |
dimension |
|
Returns
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
GetWhiteTexture(TextureDimension, Int32)
Declaration
public static Texture GetWhiteTexture(TextureDimension dim, int sliceCount = 0)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.TextureDimension |
dim |
|
System.Int32 |
sliceCount |
|
Returns
Type |
Description |
UnityEngine.Texture |
|