BufferCopyPS.hlsl 644 B

1234567891011121314151617181920212223242526
  1. // RUN: %dxc -E main -T ps_6_0 %s | FileCheck %s
  2. // CHECK: textureLoad
  3. //
  4. // Copyright (c) Microsoft. All rights reserved.
  5. // This code is licensed under the MIT License (MIT).
  6. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
  8. // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
  9. // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
  10. //
  11. // Developed by Minigraph
  12. //
  13. // Author: James Stanard
  14. //
  15. #include "PresentRS.hlsli"
  16. Texture2D ColorTex : register(t0);
  17. [RootSignature(Present_RootSig)]
  18. float4 main( float4 position : SV_Position ) : SV_Target0
  19. {
  20. return ColorTex[(int2)position.xy];
  21. }