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.

RestartStrip (DirectX HLSL Stream-Output Object)

Ends the current primitive strip and starts a new strip. If the current strip does not have enough vertices emitted to fill the primitive topology, the incomplete primitive at the end will be discarded.

RestartStrip();

 

Parameters

ItemDescription

None

 

Return Value

None

Remarks

A strip cut causes the current strip to end, and a new strip to start. A strip cut can be done by explicitly calling this method, or just by rendering up to the maximum index value (–1, which is 0xffffffff for 32-bit indices or 0xffff for 16-bit indices). Each instance of an indexed-instanced draw generates a strip cut automatically. This is true even if the topology is not a triangle strip.

Note  Support for restart and the –1 'magic value' for a cut is only available on feature level 10.0 or higher devices.
 

The output is always assumed to be a triangle strip. To make the output a triangle list, you must call RestartStrip between each triangle. Triangle fans are unsupported.

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 4 yes
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

Related topics

Stream-Output Object

 

 

Show:
© 2017 Microsoft