From 50c75c12597b230cec4d7a29559cde263025eeb2 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Fri, 8 Sep 2017 23:25:51 +0900 Subject: pacc: initial --- pacc/hlsl/blit.vs.hlsl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pacc/hlsl/blit.vs.hlsl (limited to 'pacc/hlsl/blit.vs.hlsl') diff --git a/pacc/hlsl/blit.vs.hlsl b/pacc/hlsl/blit.vs.hlsl new file mode 100644 index 0000000..ea4c18d --- /dev/null +++ b/pacc/hlsl/blit.vs.hlsl @@ -0,0 +1,17 @@ +struct vsinput { + float4 coord : POSITION; +}; + +struct fsinput { + float4 coord : POSITION; + float4 texcoord : TEXCOORD; +}; + +float2 offset: register(c0); + +fsinput blit(vsinput input) { + fsinput output; + output.coord = float4(input.coord.xy + offset, 0.0, 1.0); + output.texcoord = float4(input.coord.zw, 0.0, 1.0); + return output; +} -- cgit v1.2.3