From d2466a602774fcaec063e2f8cdbf86fd5e160a21 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 13 Sep 2023 09:48:32 -0700 Subject: Add all RayQuery SPIRV Intrinsics. (#3204) * Add all RayQuery SPIRV Intrinsics. * Fix * Fix. * fix. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He --- source/core/slang-stream.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/core/slang-stream.h') diff --git a/source/core/slang-stream.h b/source/core/slang-stream.h index 388b178c9..9f405dbb0 100644 --- a/source/core/slang-stream.h +++ b/source/core/slang-stream.h @@ -253,6 +253,9 @@ enum class StreamBufferStyle struct StreamUtil { + // Write inputs to writeStream while simultaneously read from readStream and errStream. + static SlangResult readAndWrite(Stream* writeStream, ArrayView bytesToWrite, Stream* readStream, List& outReadBytes, Stream* errStream, List& outErrBytes); + /// Appends all bytes that can be read from stream into bytes static SlangResult readAll(Stream* stream, size_t readSize, List& ioBytes); -- cgit v1.2.3