summaryrefslogtreecommitdiff
path: root/source/slang/core.meta.slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-05-15 11:45:58 -0400
committerGitHub <noreply@github.com>2021-05-15 11:45:58 -0400
commitd5e8044d0a9723bb0bbd7ae1738d1157265da783 (patch)
treed330e87e67646fd6e978e4debad17b4f7fbe2c40 /source/slang/core.meta.slang
parentbfe75618be81566882be8570b8db82ad5a2f8fe4 (diff)
Read half->float RWTexture conversion (#1842)
* #include an absolute path didn't work - because paths were taken to always be relative. * Fix for writing to RWTexture with half types on CUDA. * CUDA half functionality doc updates. * First pass support for sust.p RWTexture format conversion on write. * Tidy up implementation of $C. Made clamping mode #define able. * A simple test for RWTexture CUDA format conversion. * Add support for float2 and float4. * WIP conversion testing. * Use $E to fix byte addressing in X in CUDA. * Do not scale when accessing via _convert versions of surface functions. * Revert to previous test. * Test with half/float convert write/read. * More broad half->float read conversion testing. * Improve documentation around half and RWTexture conversion.
Diffstat (limited to 'source/slang/core.meta.slang')
-rw-r--r--source/slang/core.meta.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/core.meta.slang b/source/slang/core.meta.slang
index 9e5cf80c8..6b73630a3 100644
--- a/source/slang/core.meta.slang
+++ b/source/slang/core.meta.slang
@@ -1083,7 +1083,7 @@ for (int tt = 0; tt < kBaseTextureTypeCount; ++tt)
}
sb << (isArray ? "Layered" : "");
- sb << "read<$T0>($0";
+ sb << "read$C<$T0>($0";
for (int i = 0; i < vecCount; ++i)
{