From 8abaec701f0637f082e081caa0dd4fa049a00430 Mon Sep 17 00:00:00 2001 From: Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> Date: Fri, 6 Jun 2025 16:39:14 +0200 Subject: Update slang-rhi (#7303) * update slang-rhi * adapt to new slang-rhi API * enable slang-rhi agility sdk * fix handling empty list * disable failing slang-rhi tests * format code * fix slang-rhi-tests ci step * skip running slang-rhi-tests --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- tools/render-test/png-serialize-util.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/render-test/png-serialize-util.cpp') diff --git a/tools/render-test/png-serialize-util.cpp b/tools/render-test/png-serialize-util.cpp index 15aaba00b..9dca81ea8 100644 --- a/tools/render-test/png-serialize-util.cpp +++ b/tools/render-test/png-serialize-util.cpp @@ -17,10 +17,11 @@ using namespace Slang; const char* filename, ISlangBlob* pixels, uint32_t width, - uint32_t height) + uint32_t height, + uint32_t rowPitch) { int stbResult = - stbi_write_png(filename, width, height, 4, pixels->getBufferPointer(), width * 4); + stbi_write_png(filename, width, height, 4, pixels->getBufferPointer(), rowPitch); return stbResult ? SLANG_OK : SLANG_FAIL; } -- cgit v1.2.3