VertexShader.hlsl 768 B

12345678910111213141516171819202122232425262728
  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright (c) Microsoft Corporation. All rights reserved
  7. //----------------------------------------------------------------------
  8. struct VS_INPUT
  9. {
  10. float4 Pos : POSITION;
  11. float2 Tex : TEXCOORD;
  12. };
  13. struct VS_OUTPUT
  14. {
  15. float4 Pos : SV_POSITION;
  16. float2 Tex : TEXCOORD;
  17. };
  18. //--------------------------------------------------------------------------------------
  19. // Vertex Shader
  20. //--------------------------------------------------------------------------------------
  21. VS_OUTPUT VS(VS_INPUT input)
  22. {
  23. return input;
  24. }