Skip to content

[DirectX] Introduce llvm.dx.bufferUpdateCounter and lower it to bufferUpdateCounter dxil ops  #112969

@hekota

Description

@hekota

We need LLVM intrinsics for bufferUpdateCounter which will be lowered to the op.dx.bufferUpdateCounter dxil operations. These will be used on structured buffers.

Fox example:

https://godbolt.org/z/qKGdYj5zj

struct MyStruct {
    float4 a;
};

AppendStructuredBuffer<MyStruct> AB;
ConsumeStructuredBuffer<MyStruct> CB;

[numthreads(4,1,1)]
void main() {
  MyStruct val = CB.Consume();
  AB.Append(val);
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions