Class MixtureUtils
Inheritance
System.Object
MixtureUtils
Assembly: Mixture.Runtime.dll
Syntax
public static class MixtureUtils
Fields
|
Improve this Doc
View Source
defaultNodeWidth
Declaration
public static readonly float defaultNodeWidth
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
operatorNodeWidth
Declaration
public static readonly float operatorNodeWidth
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
shaderPropertiesDimensionSuffix
Declaration
public static readonly Dictionary<TextureDimension, string> shaderPropertiesDimensionSuffix
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<UnityEngine.Rendering.TextureDimension, System.String> |
|
|
Improve this Doc
View Source
smallNodeWidth
Declaration
public static readonly float smallNodeWidth
Field Value
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
texture2DPrefix
Declaration
public static readonly string texture2DPrefix
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
texture3DPrefix
Declaration
public static readonly string texture3DPrefix
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
textureCubePrefix
Declaration
public static readonly string textureCubePrefix
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
blitIconMaterial
Declaration
public static Material blitIconMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
blitRealtimeIconMaterial
Declaration
public static Material blitRealtimeIconMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
clearCompute
Declaration
public static ComputeShader clearCompute { get; }
Property Value
Type |
Description |
UnityEngine.ComputeShader |
|
|
Improve this Doc
View Source
dummyCustomRenderTextureMaterial
Declaration
public static Material dummyCustomRenderTextureMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
icon
Declaration
public static Texture2D icon { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
|
Improve this Doc
View Source
icon32
Declaration
public static Texture2D icon32 { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
|
Improve this Doc
View Source
realtimeIcon
Declaration
public static Texture2D realtimeIcon { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
|
Improve this Doc
View Source
realtimeIcon32
Declaration
public static Texture2D realtimeIcon32 { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
|
Improve this Doc
View Source
texture2DPreviewMaterial
Declaration
public static Material texture2DPreviewMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
texture3DPreviewMaterial
Declaration
public static Material texture3DPreviewMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
textureArrayPreviewMaterial
Declaration
public static Material textureArrayPreviewMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
textureCubePreviewMaterial
Declaration
public static Material textureCubePreviewMaterial { get; }
Property Value
Type |
Description |
UnityEngine.Material |
|
|
Improve this Doc
View Source
windowIcon
Declaration
public static Texture2D windowIcon { get; }
Property Value
Type |
Description |
UnityEngine.Texture2D |
|
Methods
|
Improve this Doc
View Source
ClearBuffer(CommandBuffer, ComputeBuffer, Int32, Int32)
Beware, this function is generic and slow :(
Declaration
public static void ClearBuffer(CommandBuffer cmd, ComputeBuffer buffer, int size = -1, int offset = 0)
Parameters
Type |
Name |
Description |
UnityEngine.Rendering.CommandBuffer |
cmd |
|
UnityEngine.ComputeBuffer |
buffer |
|
System.Int32 |
size |
|
System.Int32 |
offset |
|
|
Improve this Doc
View Source
DestroyGameObject(Object)
Declaration
public static void DestroyGameObject(Object obj)
Parameters
Type |
Name |
Description |
UnityEngine.Object |
obj |
|
|
Improve this Doc
View Source
GetAllowedDimentions(String)
Declaration
public static List<TextureDimension> GetAllowedDimentions(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
Returns
Type |
Description |
System.Collections.Generic.List<UnityEngine.Rendering.TextureDimension> |
|
|
Improve this Doc
View Source
SetTextureWithDimension(Material, String, Texture)
Declaration
public static void SetTextureWithDimension(Material material, string propertyName, Texture texture)
Parameters
Type |
Name |
Description |
UnityEngine.Material |
material |
|
System.String |
propertyName |
|
UnityEngine.Texture |
texture |
|
|
Improve this Doc
View Source
SetupComputeDimensionKeyword(ComputeShader, TextureDimension)
Declaration
public static void SetupComputeDimensionKeyword(ComputeShader computeShader, TextureDimension dimension)
Parameters
Type |
Name |
Description |
UnityEngine.ComputeShader |
computeShader |
|
UnityEngine.Rendering.TextureDimension |
dimension |
|
|
Improve this Doc
View Source
SetupDimensionKeyword(Material, TextureDimension)
Declaration
public static void SetupDimensionKeyword(Material material, TextureDimension dimension)
Parameters
Type |
Name |
Description |
UnityEngine.Material |
material |
|
UnityEngine.Rendering.TextureDimension |
dimension |
|
|
Improve this Doc
View Source
SetupIsSRGB(Material, MixtureNode, MixtureGraph)
Declaration
public static void SetupIsSRGB(Material material, MixtureNode node, MixtureGraph graph)
Parameters
|
Improve this Doc
View Source
Declaration
public static PortData UpdateInputPortType(ref SerializableType type, string displayName, List<SerializableEdge> edges)
Parameters
Type |
Name |
Description |
SerializableType |
type |
|
System.String |
displayName |
|
System.Collections.Generic.List<SerializableEdge> |
edges |
|
Returns
Type |
Description |
PortData |
|