Sign in to follow this  

Dummy buffers, zero values.

Recommended Posts

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.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this