Skip to content

Commit 71a4398

Browse files
ShaderResourceVariableX: added constructor for pipeline resource signature
1 parent e6a1f1c commit 71a4398

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Graphics/GraphicsEngine/interface/GraphicsTypesX.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,6 +2176,11 @@ class ShaderResourceVariableX
21762176
{
21772177
}
21782178

2179+
ShaderResourceVariableX(IPipelineResourceSignature* pPRS, SHADER_TYPE ShaderStage, const char* Name) noexcept :
2180+
m_pVar{pPRS->GetStaticVariableByName(ShaderStage, Name)}
2181+
{
2182+
}
2183+
21792184
explicit operator bool() const noexcept
21802185
{
21812186
return m_pVar != nullptr;

0 commit comments

Comments
 (0)