summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/src/DeviceContextBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/src/DeviceContextBase.cpp b/Graphics/GraphicsEngine/src/DeviceContextBase.cpp
index 9a4f137f..bccd0cc2 100644
--- a/Graphics/GraphicsEngine/src/DeviceContextBase.cpp
+++ b/Graphics/GraphicsEngine/src/DeviceContextBase.cpp
@@ -452,6 +452,8 @@ bool VerifyBuildBLASAttribs(const BuildBLASAttribs& Attribs)
CHECK_BUILD_BLAS_ATTRIBS(box.BoxStride >= BoxSize,
"pBoxData[", i, "].BoxStride (", box.BoxStride, ") must be at least ", BoxSize, " bytes");
+ CHECK_BUILD_BLAS_ATTRIBS(box.BoxStride % 8 == 0,
+ "pBoxData[", i, "].BoxStride (", box.BoxStride, ") must be aligned to 8 bytes");
CHECK_BUILD_BLAS_ATTRIBS(box.pBoxBuffer != nullptr, "pBoxData[", i, "].pBoxBuffer must not be null");