PopcornFX / O3DEPopcornFXPlugin

PopcornFX plugin for O3DE
https://www.popcornfx.com/
Other
13 stars 12 forks source link

Add buffer alignment to 16 bytes #52

Closed akioCL closed 1 year ago

akioCL commented 1 year ago

Mapping a graphics buffers does not guarantee a 16 byte alignment needed for SIMD operations. With the new graphic memory allocator that O3DE will start to use for Vulkan, misaligned address are returned when mapping a buffer. By adding the specific alignment when creating the buffer, the returned address when mapping should always be aligned to 16 byte.

Fixes #45