summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
authorSimon Kallweit <64953474+skallweitNV@users.noreply.github.com>2024-08-30 18:50:19 +0200
committerGitHub <noreply@github.com>2024-08-30 09:50:19 -0700
commitf428a058ea48535a323c32d206ebc7e551c3c3e9 (patch)
tree2b004d07b630196f902b88679b4a08d8faaa97bc /tools/render-test/shader-input-layout.h
parent12137e9b00436eee3bf27f7a2fc5106513af8981 (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.h8
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;