Compute.azsli 617 B

12345678910111213141516171819202122232425262728293031
  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. ShaderResourceGroupSemantic SRG_Frequency1
  13. {
  14. FrequencyId = 1;
  15. };
  16. ShaderResourceGroup ConstantSrg : SRG_Frequency0
  17. {
  18. float2 dimension;
  19. float2 seed;
  20. };
  21. ShaderResourceGroup BufferSrg : SRG_Frequency1
  22. {
  23. struct BufferData
  24. {
  25. float4 m_data;
  26. };
  27. RWStructuredBuffer<BufferData> m_computeBuffer;
  28. };