Skip to content

Latest commit

 

History

History
128 lines (82 loc) · 5.58 KB

nc-d3d10umddi-pfnd3d11ddi_setshader_with_ifaces.md

File metadata and controls

128 lines (82 loc) · 5.58 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3d10umddi.PFND3D11DDI_SETSHADER_WITH_IFACES
PFND3D11DDI_SETSHADER_WITH_IFACES (d3d10umddi.h)
The CsSetShaderWithIfaces function sets the compute shader code along with a group of interfaces so that all of the subsequent dispatching operations use that code and those interfaces.
display\cssetshaderwithifaces.htm
05/10/2018
PFND3D11DDI_SETSHADER_WITH_IFACES callback function
CsSetShaderWithIfaces, CsSetShaderWithIfaces callback function [Display Devices], PFND3D11DDI_SETSHADER_WITH_IFACES, PFND3D11DDI_SETSHADER_WITH_IFACES callback, UserModeDisplayDriverDx11_Functions_bffc7a50-c0dd-420e-b599-5fb1e223ef3c.xml, d3d10umddi/CsSetShaderWithIfaces, display.cssetshaderwithifaces
d3d10umddi.h
D3d10umddi.h
Desktop
CsSetShaderWithIfaces is supported beginning with the Windows 7 operating system.
Windows
display
PFND3D11DDI_SETSHADER_WITH_IFACES
d3d10umddi/PFND3D11DDI_SETSHADER_WITH_IFACES
APIRef
kbSyntax
UserDefined
d3d10umddi.h
PFND3D11DDI_SETSHADER_WITH_IFACES

PFND3D11DDI_SETSHADER_WITH_IFACES callback function

-description

The CsSetShaderWithIfaces function sets the compute shader code along with a group of interfaces so that all of the subsequent dispatching operations use that code and those interfaces.

-parameters

-param unnamedParam1

hDevice [in]

A handle to the display device (graphics context).

-param unnamedParam2

hShader [in]

A handle to the compute shader code object.

-param NumClassInstances [in]

The number of class instances for implementations of the interfaces.

-param unnamedParam4

pPointerData [in]

An array of D3D11DDIARG_POINTERDATA structures. Each structure describes the location of the data that is referenced by a class instance that is assigned to an interface implementation. The number of elements in the array is specified by the NumClassInstances parameter.

-param unnamedParam5

pIfaces [in]

An array of function table identifiers. Each identifier corresponds to a class instance that is assigned to an interface implementation. The number of elements in the array is specified by the NumClassInstances parameter.

-remarks

The driver can use the pfnSetErrorCb callback function to set an error code.

Each class instance for an interface implementation has the following pieces of information:

  • Code that is associated with that class instance
  • A location for the data that is used by that class instance
The NumClassInstances parameter specifies the number of interfaces that must be assigned values at run time. For each interface, each element of the pIfaces array provides a function table identifier, and each element of the pPointerData array provides the data locations for a class instance that is assigned to the interface.

The driver can pass E_OUTOFMEMORY (if the driver runs out of memory) or D3DDDIERR_DEVICEREMOVED (if the device is removed) in a call to the pfnSetErrorCb function. The Direct3D runtime determines that any other errors are critical. If the driver passes any errors, which includes D3DDDIERR_DEVICEREMOVED, the Direct3D runtime determines that the handle is invalid; therefore, the runtime does not call the DestroyShader function to destroy the handle that the hShader parameter specifies.

The GsSetShaderWithIfaces function sets the geometry shader code along with a group of interfaces so that all of the subsequent drawing operations use that code and those interfaces.

The PsSetShaderWithIfaces function sets the pixel shader code along with a group of interfaces so that all of the subsequent drawing operations use that code and those interfaces.

The DsSetShaderWithIfaces function sets the domain shader code along with a group of interfaces so that all of the subsequent drawing operations use that code and those interfaces.

The HsSetShaderWithIfaces function sets the hull shader code along with a group of interfaces so that all of the subsequent drawing operations use that code and those interfaces.

The VsSetShaderWithIfaces function sets the vertex shader code along with a group of interfaces so that all of the subsequent drawing operations use that code and those interfaces.

-see-also

D3D11DDIARG_POINTERDATA

D3D11DDI_DEVICEFUNCS

DestroyShader

pfnSetErrorCb