02.06.2013 Views

S0611-GTC2012-Edge-Ware-Shaders

S0611-GTC2012-Edge-Ware-Shaders

S0611-GTC2012-Edge-Ware-Shaders

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Why not use CUDA or DirectCompute?<br />

Rasterization<br />

— Splatting convex edges, splatting corners<br />

Setup Draw Call parameters from GPU<br />

— Also in DirectCompute<br />

A (tiny) bit easier to integrate with graphics app<br />

RWStructuredBuffer WSCornerBuffer;<br />

uint uPos = WSCornerBuffer.IncrementCounter();<br />

WSCornerBufferRead[uPos].Color = float3(1,0,0);<br />

pd3dDeviceContext->CopyStructureCount(pCountBuffer,4,m_WSCornerBufferUAV);<br />

pd3dDeviceContext->DrawIndexedInstancedIndirect(pCountBuffer,0);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!