Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11DeviceContext::VSSetShader method

Set a vertex shader to the device.

Syntax


void VSSetShader(
  [in]  ID3D11VertexShader *pVertexShader,
  [in]  ID3D11ClassInstance *const *ppClassInstances,
  [in]  UINT NumClassInstances
);

Parameters

pVertexShader [in]

Type: ID3D11VertexShader*

Pointer to a vertex shader (see ID3D11VertexShader). Passing in NULL disables the shader for this pipeline stage.

ppClassInstances [in]

Type: ID3D11ClassInstance*

A pointer to an array of class-instance interfaces (see ID3D11ClassInstance). Each interface used by a shader must have a corresponding class instance or the shader will get disabled. Set ppClassInstances to NULL if the shader does not use any interfaces.

NumClassInstances [in]

Type: UINT

The number of class-instance interfaces in the array.

Return value

This method does not return a value.

Remarks

The method will hold a reference to the interfaces passed in. This differs from the device state behavior in Direct3D 10.

The maximum number of instances a shader can have is 256.

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceContext

 

 

Community Additions

Show:
© 2014 Microsoft