ConstantTable.SetDefaults(Device) Method (Microsoft.DirectX.Direct3D)

Sets constants to their default values, which are declared in the variable declarations in the shader.

Definition

Visual Basic Public Sub SetDefaults( _
    ByVal device As Device _
)
C# public void SetDefaults(
    Device device
);
C++ public:
void SetDefaults(
    Devicedevice
);
JScript public function SetDefaults(
    device : Device
);

Parameters

device Microsoft.DirectX.Direct3D.Device
A Device object that represents the device associated with the constant table.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Show: