## siShaderReferenceFilterType

### Introduced

v9.0 (2011)

### Description

Defines the types of filters when creating a shader parameter definition of type reference (siShaderDataTypeReference). When you call the SetAttribute method, pass siReferenceFilterAttribute in the first parameter and one of these values in the second parameter.

### C# Syntax

    siShaderReferenceFilterType.siUnknownReferenceFilter                        // 0
    siShaderReferenceFilterType.siObjectReferenceFilter                         // 1
    siShaderReferenceFilterType.siCameraReferenceFilter                         // 2
    siShaderReferenceFilterType.siLightReferenceFilter                          // 3
    siShaderReferenceFilterType.siMaterialReferenceFilter                       // 4
    siShaderReferenceFilterType.siShaderReferenceFilter                         // 5
    siShaderReferenceFilterType.siGeometryReferenceFilter                       // 6
    siShaderReferenceFilterType.siUserDataBlobReferenceFilter                   // 7

Constant | Value | Description
--- | --- | ---
siUnknownReferenceFilter | 0 | Unknown filter.
siObjectReferenceFilter | 1 | Any X3DObject.
siCameraReferenceFilter | 2 | Any camera primitive.
siLightReferenceFilter | 3 | Any light primitive.
siMaterialReferenceFilter | 4 | Any material.
siShaderReferenceFilter | 5 | Any shader.
siGeometryReferenceFilter | 6 | Any geometric primitive.
siUserDataBlobReferenceFilter | 7 | Any userdata blob.

### Applies To

siReferenceFilterAttribute ShaderParamDefOptions.SetAttribute ShaderParamDefOptions::SetAttribute