Jump to content

  • Log In with Google      Sign In   
  • Create Account

question, using DrawIndexedInstanced with BlendState


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 lomateron   Members   -  Reputation: 342

Like
0Likes
Like

Posted 01 December 2012 - 05:20 PM

Does blendstate works if i am using DrawInstanced and every instance is rendering to the same texel of a texture?
Example:
The texel i am rendering starts with 0 value
The blendstate is configured to make every draw add the value that already has the texel with the value returned by the pixel shader.
The pixel shader always returns 5.
So if i draw 4 instances
Will the texel in the end have a value of 20?

Sponsor:

#2 MJP   Moderators   -  Reputation: 11294

Like
0Likes
Like

Posted 01 December 2012 - 06:32 PM

Yes, that will work the way you expect it to.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS