How to set RenderState in DirectX11?

笑着哭i 提交于 2019-12-07 21:50:52

问题


How Do I set a renderState in DirectX11?

device->SetRenderState() doesn't seem to exist anymore.


回答1:


There are multiple render states in DirectX11:

  • Blend State - http://msdn.microsoft.com/en-us/library/ff476349.aspx
  • Depth Stencil State - http://msdn.microsoft.com/en-us/library/ff476375.aspx
  • Rasterizer State - http://msdn.microsoft.com/en-us/library/ff476580.aspx
  • Sampler State - http://msdn.microsoft.com/en-us/library/ff476588.aspx

Which one do you need?




回答2:


These enumerations may be what you are looking for: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476152(v=vs.85).aspx



来源:https://stackoverflow.com/questions/9543477/how-to-set-renderstate-in-directx11

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!