Skip to content

Resources with controlled memory access #340

@hekota

Description

@hekota

We need to support for resource access qualifiers globallycoherent and reordercoherent that help control memory access and ordering of UAV resources.

  1. globallycoherent ensures that memory accesses to a resource are globally visible across all threads and thread groups, and that memory access ordering is preserved when used with memory barriers.
    https://godbolt.org/z/EjYhPcrnb

  2. reordercoherent guarantees that reads and writes occur in program order for a single thread, but does not affect visibility across threads. It requires SM 6.9.
    https://godbolt.org/z/8Pav51r81

In the DXIL container these qualifiers show up in the DXIL resource metadata. globallycoherent is a documented flag on the DXIL metadata node DXIL.rst#metadata-resource-records ). There is not much documentation on reordercoherent, but it does show up on the resource metadata node in the extended metadata tag-value list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions