You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know what the project would prefer, it could be an option to pass to the SpirvBuilder (I assume it could be desirable to always initialize these variables) or another symbol (similarly to how storage_buffer allows extra arguments):
As far as I can tell, the workgroup/shared memory (context) can not be declared as to be zero-initialized and one has to do it manually.
KhronosGroup/Vulkan-Docs#1457 has a bunch of interesting links: the extension
VK_KHR_zero_initialize_workgroup_memory
(promoted to core in Vulkan 1.3) allows to declare workgroup/shared variables with a null initializer. On the SPIR-V side,OpVariable
with aWorkgroup
storage class is allowed to be initialized withOpConstantNull
only (like so).I don't know what the project would prefer, it could be an option to pass to the
SpirvBuilder
(I assume it could be desirable to always initialize these variables) or another symbol (similarly to howstorage_buffer
allows extra arguments):The text was updated successfully, but these errors were encountered: