Windows apps
Collapse the table of content
Expand the table of content
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.

ID3D10Device::CreateGeometryShader method

Create a geometry shader.

Syntax


HRESULT CreateGeometryShader(
  [in]  const void                 *pShaderBytecode,
  [in]        SIZE_T               BytecodeLength,
  [out]       ID3D10GeometryShader **ppGeometryShader
);

Parameters

pShaderBytecode [in]

Type: const void*

A pointer to the compiled shader. To get this pointer see Getting a Pointer to a Compiled Shader.

BytecodeLength [in]

Type: SIZE_T

Size of the compiled geometry shader.

ppGeometryShader [out]

Type: ID3D10GeometryShader**

Address of a pointer to an ID3D10GeometryShader Interface. If this is NULL, all other parameters will be validated, and if all parameters pass validation this API will return S_FALSE instead of S_OK.

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

Once created, the shader can be set to the device by calling ID3D10Device::GSSetShader.

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10Device Interface

 

 

Show:
© 2017 Microsoft