Class MaterialPropertyAttribute
Marks an IComponentData as an input to a material property on a particular shader.
Namespace: Unity.Rendering
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = true)]
public class MaterialPropertyAttribute : Attribute
Constructors
Name | Description |
---|---|
MaterialPropertyAttribute(string, short) | Constructs a material property attribute. |
Properties
Name | Description |
---|---|
Name | The name of the material property. |
OverrideSizeGPU | The size of the property in bytes on the GPU. |