Skip to content

Commit 9c1a22f

Browse files
committed
IGPUShader: add setShaderStage method
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
1 parent c423316 commit 9c1a22f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/nbl/video/IGPUShader.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ class IGPUShader : public asset::IShader, public IBackendObject
2424
public:
2525
using SSpecInfo = asset::IShader::SSpecInfo<const IGPUShader>;
2626

27+
void setShaderStage(const E_SHADER_STAGE stage)
28+
{
29+
m_shaderStage = stage;
30+
}
31+
2732
protected:
2833
explicit IGPUShader(core::smart_refctd_ptr<const ILogicalDevice>&& dev, const IShader::E_SHADER_STAGE shaderStage, std::string&& filepathHint)
2934
: IBackendObject(std::move(dev)), IShader(shaderStage, std::move(filepathHint)) {}

0 commit comments

Comments
 (0)