diff options
Diffstat (limited to 'tools/render-test/shader-renderer-util.cpp')
| -rw-r--r-- | tools/render-test/shader-renderer-util.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/render-test/shader-renderer-util.cpp b/tools/render-test/shader-renderer-util.cpp index 3dc717c5b..13effdd08 100644 --- a/tools/render-test/shader-renderer-util.cpp +++ b/tools/render-test/shader-renderer-util.cpp @@ -392,6 +392,11 @@ static RefPtr<SamplerState> _createSamplerState( texture, viewDesc); + if (!textureView) + { + return SLANG_FAIL; + } + descriptorSet->setResource(rangeIndex, 0, textureView); if(srcEntry.isOutput) |
