aboutsummaryrefslogtreecommitdiff
path: root/pacc/hlsl/blit.vs.hlsl
blob: ea4c18d70fe6b9ef5c7a619187e743464bab1945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}