siShaderParameterAttribute

Introduced

v9.0 (2011)

Description

Sets an attribute on the shader parameter definition. For example, to set a filter on a shader parameter definition of type reference, use siReferenceFilterAttribute as the attribute name and one of the siShaderReferenceFilterType values when calling the SetAttribute method. The filter restricts which items the user can select with the widget.

Constant Value Description
siReferenceFilterAttribute ReferenceFilter Type of filter for a shader's reference parameter type. Set one of the siShaderReferenceFilterType enum values.
siPropertyFilterAttribute PropertyFilter Type of filter for a shader's property parameter type. Set one of the siShaderPropertyFilterType enum values.
siCustomTypeNameAttribute CustomTypeName Type of filter for a shader's custom type. Set one of the siShaderCustomDataType enum values.
siShaderFamilyAttribute ShaderFamily Type of filter for a shader's family.
siDefaultConnectionAttribute DefaultConnection Default connection to make when a shader is dropped on a port or an existing connection. Valid for input and outputs.
siWritableImageAttribute WritebleImage Type of filter for a writable image.
siWritableImageTypeAttribute WritableImageType Type of filter for a writable image type.
siRenderTreeNodeColorRAttribute RenderTreeNodeColorR Type of filter to match the Red color for a RenderTree node.
siRenderTreeNodeColorGAttribute RenderTreeNodeColorG Type of filter to match the Green color for a RenderTree node.
siRenderTreeNodeColorBAttribute RenderTreeNodeColorB Type of filter to match the Blue color for a RenderTree node.

Applies To

ShaderParamDefOptions.SetAttribute MetaShaderRendererDef.RendererOptions ShaderParamDefOptions::SetAttribute Refining UI Controls for Parameter Definitions

See Also

siShaderReferenceFilterType siShaderPropertyFilterType siShaderCustomDataType