SkinnedMeshVertexStreamProperties.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #pragma once
  9. #include <Atom/Feature/SkinnedMesh/SkinnedMeshVertexStreams.h>
  10. #include <Atom/RHI.Reflect/ShaderSemantic.h>
  11. #include <Atom/RHI.Reflect/Format.h>
  12. #include <AzCore/Name/Name.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. class SkinnedMeshVertexStreamProperties
  18. : public SkinnedMeshVertexStreamPropertyInterface
  19. {
  20. public:
  21. AZ_RTTI(AZ::Render::SkinnedMeshVertexStreamProperties, "{8912239E-8412-4B9E-BDE6-AE6BA67A207C}", AZ::Render::SkinnedMeshVertexStreamPropertyInterface);
  22. SkinnedMeshVertexStreamProperties();
  23. const SkinnedMeshVertexStreamInfo* GetInputStreamInfo(const RHI::ShaderSemantic& shaderSemantic ) const override;
  24. const SkinnedMeshVertexStreamInfo& GetInputStreamInfo(SkinnedMeshInputVertexStreams stream) const override;
  25. const SkinnedMeshVertexStreamInfo& GetStaticStreamInfo(SkinnedMeshStaticVertexStreams stream) const override;
  26. const SkinnedMeshOutputVertexStreamInfo* GetOutputStreamInfo(const RHI::ShaderSemantic& shaderSemantic) const override;
  27. const SkinnedMeshOutputVertexStreamInfo& GetOutputStreamInfo(SkinnedMeshOutputVertexStreams stream) const override;
  28. Data::Asset<RPI::ResourcePoolAsset> GetOutputStreamResourcePool() const override;
  29. uint32_t GetMaxSupportedVertexCount() const override;
  30. const RPI::ShaderInputContract& GetComputeShaderInputContract() const override;
  31. private:
  32. AZStd::array<SkinnedMeshVertexStreamInfo, static_cast<uint8_t>(SkinnedMeshInputVertexStreams::NumVertexStreams)> m_inputStreamInfo;
  33. AZStd::array<SkinnedMeshVertexStreamInfo, static_cast<uint8_t>(SkinnedMeshStaticVertexStreams::NumVertexStreams)> m_staticStreamInfo;
  34. AZStd::array<SkinnedMeshOutputVertexStreamInfo, static_cast<uint8_t>(SkinnedMeshOutputVertexStreams::NumVertexStreams)> m_outputStreamInfo;
  35. Data::Asset<RPI::ResourcePoolAsset> m_outputStreamResourcePool;
  36. RPI::ShaderInputContract m_computeShaderInputContract;
  37. };
  38. } // namespace Render
  39. } // namespace AZ