Skip to content

Survey current ConstantBuffer<T> support in DXC and add tests to offload-test-suite #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hekota opened this issue Mar 31, 2025 · 0 comments

Comments

@hekota
Copy link
Member

hekota commented Mar 31, 2025

Document what can be done with ConstantBuffer<T> in DXC (local variables, arrays, ...).
Add a set of test cases for this to offload test suite.

struct S {
  int a;
  float4 b;
};

RWBuffer<float> Buf;

ConstantBuffer<S> CBS[2];

[numthreads(4,1,1)]
void main(int i : SV_GROUPID) {
    ConstantBuffer<S> cb = CBS[i % 2];
    Buf[0] = cb.b.x;
}

https://godbolt.org/z/M8TjExTnq

@hekota hekota moved this to Planning in HLSL Support Mar 31, 2025
@hekota hekota changed the title [HLSL] Survey current ConstantBuffer<T> support in DXC and add tests to offload-test-suite Survey current ConstantBuffer<T> support in DXC and add tests to offload-test-suite Apr 1, 2025
@damyanp damyanp moved this from Planning to Ready in HLSL Support Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant