Skip to content

Commit

Permalink
igl | vulkan | Fix uniform/storage buffer alignment queries
Browse files Browse the repository at this point in the history
Summary: Fixed uniform/storage buffer alignment queries.

Reviewed By: rokuz

Differential Revision: D50866092

fbshipit-source-id: 75118743eb2927ee3c2cea93571c74384de4c370
  • Loading branch information
corporateshark authored and facebook-github-bot committed Nov 1, 2023
1 parent 626eb93 commit f52ebe7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/igl/vulkan/Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ bool Device::getFeatureLimits(DeviceFeatureLimits featureLimits, size_t& result)
result = 4;
return true;
case DeviceFeatureLimits::ShaderStorageBufferOffsetAlignment:
result = 8;
result = limits.minStorageBufferOffsetAlignment;
return true;
case DeviceFeatureLimits::BufferAlignment:
result = 1;
result = limits.minUniformBufferOffsetAlignment;
return true;
case DeviceFeatureLimits::BufferNoCopyAlignment:
result = 0;
result = limits.minUniformBufferOffsetAlignment;
return true;
case DeviceFeatureLimits::MaxBindBytesBytes:
result = 0;
Expand Down

0 comments on commit f52ebe7

Please sign in to comment.