DebugSSAOCS.hlsl 760 B

123456789101112131415161718192021222324252627282930
  1. // RUN: %dxc -E main -T cs_6_0 %s | FileCheck %s
  2. // CHECK: threadId
  3. // CHECK: textureLoad
  4. // CHECK: textureStore
  5. //
  6. // Copyright (c) Microsoft. All rights reserved.
  7. // This code is licensed under the MIT License (MIT).
  8. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
  9. // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
  10. // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
  11. // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
  12. //
  13. // Developed by Minigraph
  14. //
  15. // Author: James Stanard
  16. //
  17. #include "SSAORS.hlsli"
  18. Texture2D<float> SsaoBuffer : register( t0 );
  19. RWTexture2D<float3> OutColor : register( u0 );
  20. [RootSignature(SSAO_RootSig)]
  21. [numthreads( 8, 8, 1 )]
  22. void main( uint3 DTid : SV_DispatchThreadID )
  23. {
  24. OutColor[DTid.xy] = SsaoBuffer[DTid.xy].xxx;
  25. }