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