Skip to content

Commit f77c7a0

Browse files
authored
add GetShaderResourceGroup() to RPI::Material (o3de#17558)
Signed-off-by: Karl Haubenwallner <[email protected]>
1 parent 3cbfc60 commit f77c7a0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gems/Atom/RPI/Code/Include/Atom/RPI.Public/Material/Material.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ namespace AZ
131131
//! Do not set this in the shipping runtime unless you know what you are doing.
132132
void SetPsoHandlingOverride(MaterialPropertyPsoHandling psoHandlingOverride);
133133

134+
Data::Instance<RPI::ShaderResourceGroup> GetShaderResourceGroup();
135+
134136
const RHI::ShaderResourceGroup* GetRHIShaderResourceGroup() const;
135137

136138
const Data::Asset<MaterialAsset>& GetAsset() const;

Gems/Atom/RPI/Code/Source/RPI.Public/Material/Material.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,5 +857,9 @@ namespace AZ
857857
{
858858
return m_materialProperties.GetMaterialPropertiesLayout();
859859
}
860+
Data::Instance<RPI::ShaderResourceGroup> Material::GetShaderResourceGroup()
861+
{
862+
return m_shaderResourceGroup;
863+
}
860864
} // namespace RPI
861865
} // namespace AZ

0 commit comments

Comments
 (0)