Skip to content

Instantly share code, notes, and snippets.

View citruslee's full-sized avatar

citruslee citruslee

  • Red Datura Softworks s.r.o.
  • Bratislava, Slovakia
View GitHub Profile
@rorydriscoll
rorydriscoll / FullScreenQuad.hlsl
Created December 19, 2011 05:52
A vertex shader that uses the vertex ID to generate a full-screen quad. Don't bind vertex buffer, index buffer or input layout. Just render three vertices!
struct Output
{
float4 position_cs : SV_POSITION;
float2 texcoord : TEXCOORD;
};
Output main(uint id: SV_VertexID)
{
Output output;