Skip to main content
GameDev.net gamedev.net
🔒 Locked

Dummy buffers, zero values.

Started by AvCol Apr 9, 2011 at 11:51 AM 1 replies 1.1k views
Original Post
AvCol
AvCol
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.
MJP
MJP
Which API are you using?
AvCol
AvCol

Which API are you using?


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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.