Creating A shader not rendering specific vertices

Hi, I am trying to create a shader does not render specific vertex Index’s, I will put a uint[ ] in the shader and set them as 0 or 1.

So how can I make the part of Skipping rendering the vertex?

thank you

I replied to a similar question here:

The short version is you can’t skip a specific vertex, not in a vertex shader at least. By the time you’re at the vertex shader the decision to process it or not has already passed and there’s no avoiding it. Also you don’t really render vertices ever, you render the fragments (or pixels) of a tri that uses the position of three vertices. If you want to avoid rendering a specific tri by hiding one vertex, then something like a geometry shader, compute shader, or modifying the mesh before hand in script are your best options.