summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2022-09-22 10:07:38 +0800
committerYuhang Zhao <2546789017@qq.com>2022-10-10 18:46:38 +0800
commitf003e25258e0fd546abe5857f20b626f160beb81 (patch)
tree4bcf1e7adac4493f5278b4aeb1fcd02260f374cd /src/gui/rhi
parent2093d65a80b2c4bb6baa26062fc9c18d19b24c07 (diff)
QtRhi: make two plain arrays inline and constexpr
In the current case they can be inline and constexpr. Pick-to: 6.4 Task-number: QTBUG-100485 Change-Id: I8c200c0a756edbff914c4be8ba08fe6afbd61114 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/rhi')
-rw-r--r--src/gui/rhi/cs_tdr_p.h2
-rw-r--r--src/gui/rhi/vs_test_p.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/rhi/cs_tdr_p.h b/src/gui/rhi/cs_tdr_p.h
index 3e442de39c..de444200a0 100644
--- a/src/gui/rhi/cs_tdr_p.h
+++ b/src/gui/rhi/cs_tdr_p.h
@@ -70,7 +70,7 @@ ret
// Approximately 5 instruction slots used
#endif
-const BYTE g_killDeviceByTimingOut[] =
+inline constexpr BYTE g_killDeviceByTimingOut[] =
{
68, 88, 66, 67, 217, 62,
220, 38, 136, 51, 86, 245,
diff --git a/src/gui/rhi/vs_test_p.h b/src/gui/rhi/vs_test_p.h
index e24472cd95..5feaef7d38 100644
--- a/src/gui/rhi/vs_test_p.h
+++ b/src/gui/rhi/vs_test_p.h
@@ -76,7 +76,7 @@ ret
// Approximately 6 instruction slots used
#endif
-const BYTE g_testVertexShader[] =
+inline constexpr BYTE g_testVertexShader[] =
{
68, 88, 66, 67, 75, 198,
18, 149, 172, 244, 247, 123,