@@ -3024,7 +3024,7 @@ auto CAssetConverter::reserve(const SInputs& inputs) -> SReserveResult
3024
3024
uint16_t alignment = hlsl::max (0x1u <<hlsl::findLSB (geom.vertexStride ),32u );
3025
3025
if (geom.hasTransform ())
3026
3026
{
3027
- size = core::alignUp (size,alignof ( float ) )+sizeof (hlsl::float32_t3x4);
3027
+ size = core::alignUp (size, IAccelerationStructure::TRANSFORM_DATA_MIN_ALIGNMENT )+sizeof (hlsl::float32_t3x4);
3028
3028
alignment = hlsl::max<uint16_t >(alignof (float ),alignment);
3029
3029
}
3030
3030
uint16_t indexSize = 0 ;
@@ -5061,7 +5061,7 @@ ISemaphore::future_t<IQueue::RESULT> CAssetConverter::convert_impl(SReserveResul
5061
5061
uint16_t alignment = hlsl::max (0x1u <<hlsl::findLSB (geom.vertexStride ),32u );
5062
5062
if (geom.hasTransform ())
5063
5063
{
5064
- size = core::alignUp (size,alignof ( float ) )+sizeof (hlsl::float32_t3x4);
5064
+ size = core::alignUp (size, IAccelerationStructure::TRANSFORM_DATA_MIN_ALIGNMENT )+sizeof (hlsl::float32_t3x4);
5065
5065
alignment = hlsl::max<uint16_t >(alignof (float ),alignment);
5066
5066
}
5067
5067
uint16_t indexSize = 0u ;
@@ -5265,7 +5265,7 @@ ISemaphore::future_t<IQueue::RESULT> CAssetConverter::convert_impl(SReserveResul
5265
5265
}
5266
5266
if (geom.hasTransform ())
5267
5267
{
5268
- offset = core::alignUp (offset,alignof ( float ) );
5268
+ offset = core::alignUp (offset, IAccelerationStructure::TRANSFORM_DATA_MIN_ALIGNMENT );
5269
5269
outGeom.transform = {.offset =offset,.buffer =smart_refctd_ptr<const IGPUBuffer>(scratchBuffer)};
5270
5270
memcpyCallback.data = &geom.transform ;
5271
5271
if (!streamDataToScratch (offset,sizeof (geom.transform ),memcpyCallback))
0 commit comments