From f428a058ea48535a323c32d206ebc7e551c3c3e9 Mon Sep 17 00:00:00 2001 From: Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> Date: Fri, 30 Aug 2024 18:50:19 +0200 Subject: 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 --- tools/render-test/shader-input-layout.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/render-test/shader-input-layout.h') 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 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 m_slices; -- cgit v1.2.3