Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


#ActualNikko_Bertoa

Posted 03 June 2014 - 09:06 AM

Hi Jason

 

I am using 2 ID3D11Buffer where I store information for all the particles (positions and velocities). Particles are living forever, they are created once.

 

Those buffers are binded through an Unordered Resource View to Compute Shader and through a Shader Resource View to Vertex Shader.

 

I use a Draw call with the number of particles. SV_VertexID is used in the shader to identify what particle should I process in a Vertex Shader in particular.

 

Particles are represented as points and expanded in a quad that face the camera, inside Geometry Shader.

 

 

I plan to use Append/Consume buffer in the future to create/destroy particles dinamically

 

 

Thanks!


#1Nikko_Bertoa

Posted 03 June 2014 - 09:05 AM

Hi Jason

 

I am using 2 ID3D11Buffer where I store information for all the particles (positions and velocities). Particles are living forever, they are created once.

 

Those buffers are binded through an Unordered Resource View to Compute Shader and through a Shader Resource View to Vertex Shader.

 

I use a Draw call with the number of particles. SV_VertexID is used in the shader to identify what particle should I process in a Vertex Shader in particular.

 

Particles are represented as points and expanded in a quad that face the camera, inside Geometry Shader.

 

 

I plan to use Appned/Consume buffer in the future to create/destroy particles dinamically


PARTNERS