diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-03-27 12:25:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-27 12:25:43 -0400 |
| commit | c9930ea56ce0d3d9783d4d2482edb91cb765109e (patch) | |
| tree | 42bc3b4d44771d1c1bca389f20b9321793d268e1 /tools | |
| parent | 047adbd4dd3dd6e3098adcb63a8ac475ae06d20d (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.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) |
