From 7bce066cfc51296a538c7a7d325133d60e352494 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Wed, 26 Feb 2020 21:13:41 +0000 Subject: Support for RWTexture types on CPU and CUDA (#1243) * Added FloatTextureData as a mechanism to enable CPU based Texture writes. * Add [] RWTexture access for CPU. * Fixed rw-texture-simple.slang.expected.txt * WIP: CUDA stdlib has support for [] surface access. * Made IRWTexture class able to take different locations. Doing a Texture2d access on CUDA works. * Fix bug in outputing UniformState - was missing out padding. Support RWTexture with array. Support RWTexture3D. * Use * for locations for read only textures, so only need a ITexture interface. * Fix problem around application of set/get for CUDA on subscript Texture types. --- source/slang/slang-emit-cpp.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-emit-cpp.cpp') diff --git a/source/slang/slang-emit-cpp.cpp b/source/slang/slang-emit-cpp.cpp index f3d16444a..945c070d1 100644 --- a/source/slang/slang-emit-cpp.cpp +++ b/source/slang/slang-emit-cpp.cpp @@ -2615,6 +2615,7 @@ void CPPSourceEmitter::_emitUniformStateMembers(const List& actions, // We want to output some padding StringBuilder builder; builder << "uint8_t _pad" << (padIndex++) << "[" << (paramInfo.offset - offset) << "];\n"; + m_writer->emit(builder); } emitGlobalInst(paramInfo.inst); -- cgit v1.2.3