Created
December 3, 2018 03:32
-
-
Save baobao/65f659f2d1e2bfe64d382b5415aa3670 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void SetIndexBuffer( | |
Buffer indexBuffer, | |
PrimitiveTopology topology = PrimitiveTopology.TriangleStrip | |
) | |
{ | |
ImmediateContext.InputAssembler.SetIndexBuffer( | |
indexBuffer, | |
Format.R32_UInt, | |
0 | |
); | |
ImmediateContext.InputAssembler.PrimitiveTopology = topology; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment