Skip to content

[0051] Specifying base alignment in SPIR-V #802

@Cyphall

Description

@Cyphall

Which proposal does this relate to?
0051-byte-address-buffer-alignment.md

Describe the issue or outstanding question.
The proposal says:

Buffer objects can carry base alignment information in their descriptors, while individual buffer access operations can specify per-operation alignment requirements through existing SPIR-V alignment parameters, requiring no new SPIR-V instructions or capabilities.

Which "buffer descriptor" is this referring to?

In SPIR-V, buffers are specified as decorated pointers, and AFAIK Vulkan SPIR-V does not have a way to specify a base alignment for these pointers.
There is the Alignment decoration that can be attached to pointers, but it is exclusive to the Kernel capability (aka OpenCL).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions