igl
igl copied to clipboard
Does DeviceFeatureLimits::BufferAlignment mean GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT?
Does DeviceFeatureLimits::BufferAlignment mean GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT?
If it is , the BufferAlignment on iOS Simulator for metal, it is 256 bytes. And On iOS Device, its is 16 bytes.
https://developer.apple.com/documentation/metal/developing_metal_apps_that_run_in_simulator 【When you set arguments for the render or compute command, align constant buffer offsets to 256 bytes.】
@vinsentli Thanks for pointing this out! I will take a closer look this week.
@corporateshark I have pull two request to fix it. https://github.com/facebook/igl/pull/113 https://github.com/facebook/igl/pull/114