Skip to content

Instantly share code, notes, and snippets.

View citruslee's full-sized avatar
:shipit:

citruslee citruslee

:shipit:
  • Red Datura Softworks s.r.o.
  • Bratislava, Slovakia
  • 20:18 (UTC +01:00)
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;