XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

Resetting shader resources/buffers

Last post 04-19-2008 9:04 PM by Ralf Kornmann. 1 replies.
  • 04-19-2008 5:41 PM

    Resetting shader resources/buffers

    How do i reset bound resources to zero, after binding some amount of them to a shader(say 2 cbuf + 2 tex)?

     

    Should i call

    void *SetConstantBuffers(
      UINT StartSlot,
      UINT NumBuffers,
      ID3D10Buffer *const *ppConstantBuffers
    );
    like *SetConstantBuffers(0,2,{0,0});
    or there is way to reset all resources without a zeros filled buffer?
  • 04-19-2008 9:04 PM In reply to

    Re: Resetting shader resources/buffers

    Beside of ClearState which reset the whole device pipeline setting NULL to theses slots are the only way to unbind them.

Page 1 of 1 (2 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG