attribute [vk::offset]¶
Description¶
Declare offset for a struct field. Applies to all kinds of structs when targeting Vulkan. Applies only to structs that are directly used as interface blocks (such as push constants and uniforms) when targeting GLSL, as GLSL does not support the offset qualifier on regular structs. This attribute has no effect on other targets.
Signature¶
[vk::offset(index : int)]