Skip to content

Instantly share code, notes, and snippets.

@baobao
Created December 3, 2018 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/65f659f2d1e2bfe64d382b5415aa3670 to your computer and use it in GitHub Desktop.
Save baobao/65f659f2d1e2bfe64d382b5415aa3670 to your computer and use it in GitHub Desktop.
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