summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-11-12 15:23:43 +0000
committerazhirnov <zh1dron@gmail.com>2020-11-12 15:23:43 +0000
commit53572161c4ee39ff7d66b84e4a9f4979da2f8f0b (patch)
tree91b5d2df5003d15321d67d28b0cbe0ece1e0ca6e /Graphics/GraphicsEngine
parentremap resource binding for DirectX 12 (diff)
downloadDiligentCore-53572161c4ee39ff7d66b84e4a9f4979da2f8f0b.tar.gz
DiligentCore-53572161c4ee39ff7d66b84e4a9f4979da2f8f0b.zip
added address alignment checks
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");