[D3D12] Window output

This commit is contained in:
Triang3l
2018-08-23 19:50:11 +03:00
parent ea1abdaa6e
commit 2e79eac976
13 changed files with 384 additions and 7 deletions

View File

@@ -0,0 +1,7 @@
// A triangle covering the whole viewport.
void main(uint xe_vertex_id : SV_VertexID, out float2 xe_texcoord : TEXCOORD,
out float4 xe_position : SV_Position) {
xe_texcoord = float2(uint2(xe_vertex_id, xe_vertex_id << 1u) & 2u);
xe_position =
float4(xe_texcoord * float2(2.0, -2.0) + float2(-1.0, 1.0), 0.0, 1.0);
}