summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-03-27 12:25:43 -0400
committerGitHub <noreply@github.com>2019-03-27 12:25:43 -0400
commitc9930ea56ce0d3d9783d4d2482edb91cb765109e (patch)
tree42bc3b4d44771d1c1bca389f20b9321793d268e1 /tools
parent047adbd4dd3dd6e3098adcb63a8ac475ae06d20d (diff)
GLSL half texture access (#931)
* * Added $c macro - that will do casting to target type. Used here to cast texture reads back to half. Works in tandem with $z which will close parens. * half-texture.slang test * Make binding failing if TextureView fails * Simplify logic around parens. * Improve comment around $c macro. * Test against hlsl output to avoid error on CI.
Diffstat (limited to 'tools')
-rw-r--r--tools/render-test/shader-renderer-util.cpp5
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)