diff options
| author | Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> | 2024-08-30 18:50:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-30 09:50:19 -0700 |
| commit | f428a058ea48535a323c32d206ebc7e551c3c3e9 (patch) | |
| tree | 2b004d07b630196f902b88679b4a08d8faaa97bc /tools/render-test/shader-input-layout.h | |
| parent | 12137e9b00436eee3bf27f7a2fc5106513af8981 (diff) | |
Draft: integrate slang-rhi (#4970)
* add slang-rhi submodule
* refactor render-test to use slang-rhi and remove OpenGL support
* remove -vk -glsl tests
* remove gl test
* disable failing test
* allow recursive submodules in github actions
* update slang-rhi
* update slang-rhi
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
| -rw-r--r-- | tools/render-test/shader-input-layout.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 996635b94..59aea2562 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -6,11 +6,11 @@ #include "source/core/slang-writer.h" -#include "slang-gfx.h" +#include <slang-rhi.h> namespace renderer_test { -using namespace gfx; +using namespace rhi; enum class ShaderInputType { @@ -128,7 +128,7 @@ struct TextureData clearSlices(); FormatInfo formatSizeInfo; - gfxGetFormatInfo(format, &formatSizeInfo); + rhiGetFormatInfo(format, &formatSizeInfo); m_formatSize = uint8_t(formatSizeInfo.blockSizeInBytes / formatSizeInfo.pixelsPerBlock); m_format = format; } @@ -147,7 +147,7 @@ struct TextureData m_slices.clear(); } - gfx::Format m_format = gfx::Format::Unknown; + rhi::Format m_format = rhi::Format::Unknown; uint8_t m_formatSize = 0; Slang::List<Slice> m_slices; |
