aboutsummaryrefslogtreecommitdiff
path: root/pacc/hlsl/blit.vs.hlsl
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-08 23:25:51 +0900
commit50c75c12597b230cec4d7a29559cde263025eeb2 (patch)
tree9fa8afe8bcf6e1219186e5c567930831a3b5eab5 /pacc/hlsl/blit.vs.hlsl
parent4cfeddd04dcbbf658195bd837d7daff7f08b37bc (diff)
pacc: initial
Diffstat (limited to 'pacc/hlsl/blit.vs.hlsl')
-rw-r--r--pacc/hlsl/blit.vs.hlsl17
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;
+}