BindlessImageComputeDispatch.azsl 547 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. ShaderResourceGroupSemantic SRG_Frequency0
  9. {
  10. FrequencyId = 0;
  11. };
  12. ShaderResourceGroup ImageSrg : SRG_Frequency0
  13. {
  14. RWTexture2D<float4> m_colorImageMultiplier;
  15. };
  16. [numthreads(1,1,1)]
  17. void MainCS(uint3 thread_id: SV_DispatchThreadID)
  18. {
  19. ImageSrg::m_colorImageMultiplier[uint2(0,0)] = float4(0.5, 0.5, 0.5, 0.5);
  20. }