diff options
| author | Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> | 2025-06-06 16:39:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 16:39:14 +0200 |
| commit | 8abaec701f0637f082e081caa0dd4fa049a00430 (patch) | |
| tree | 79cb7d6257ecd4fe4f2ace21068d934fd9cff553 /tools/render-test/png-serialize-util.cpp | |
| parent | 4cfc0f1fd67499847f2fa745cd083ebf0edd8188 (diff) | |
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>
Diffstat (limited to 'tools/render-test/png-serialize-util.cpp')
| -rw-r--r-- | tools/render-test/png-serialize-util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |
