diff options
Diffstat (limited to 'pacc/hlsl/blit.vs.hlsl')
-rw-r--r-- | pacc/hlsl/blit.vs.hlsl | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} |