Dummy buffers, zero values.

Started by
1 comment, last by AvCol 13 years ago
Is there any way to guarantee zero values in a vertex register without using an all zero dummy buffer of appropriate size?

I need zero values for some dynamic branching when no buffer is present. I realize I could static branch or provide a shader permutation in what I'm trying to do but the question still remains.

I'm thinking doing something like sending in a buffer with stride zero would act fine as a dummy buffer if whats in the registers doesn't matter, but what about when it does.
Advertisement
Which API are you using?

Which API are you using?


I'm working with Direct3D11 and its full feature level.

This topic is closed to new replies.

Advertisement