Skip to content
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

Access Interface through pointer #5677

Open
fknfilewalker opened this issue Nov 25, 2024 · 0 comments
Open

Access Interface through pointer #5677

fknfilewalker opened this issue Nov 25, 2024 · 0 comments
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang

Comments

@fknfilewalker
Copy link
Contributor

It is possible to access an Interface through a StructuredBuffer, though it is not possible to do this through a pointer.

interface ITest {};
// works
StructuredBuffer<ITest> buffer;

// does not work
[[vk::push_constant]] ITest* pc;

// also does not work 
struct MyData {
    ITest* ptr;
};
StructuredBuffer<MyData> data;

There should not really be a big difference between these usecases, so I hope this can be allowed soon.

@bmillsNV bmillsNV added this to the Q4 2024 (Fall) milestone Nov 26, 2024
@bmillsNV bmillsNV added the goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:quality & productivity Quality issues and issues that impact our productivity coding day to day inside slang
Projects
None yet
Development

No branches or pull requests

2 participants