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

Feature: Add reinterpret_casts for physical storage buffer pointers. #12

Open
seanbaxter opened this issue Jan 20, 2021 · 1 comment
Open

Comments

@seanbaxter
Copy link
Owner

No description provided.

@Clothoid1
Copy link

I have started to use circle for rather complex C++ shaders to create Spir-V binary code for Vulkan. Circle is really amazing, great to see that someone has created a Compiler Frontend that allows to use C++ instead of just C as GLSL does.
Nevertheless, I have found a few issues with the latest Circle compiler and i would like to give you some more info what issues i ran into.

The most important problem i ran into was that the circle compiler creates an error:
SPIR-V: cannot bitcast pointer types.
for C++ code that does e.g.
float* aTest = reinterpret_cast<float*>(aBuffer);
where aBuffer basically consists of and array of
class float3
{
float data[3];
}

I assume the issue i ran into would require that the feature "add reinterpret_cast" is added - so basically the feature request that you opened a few month ago.
Any update, when a reinterpret_cast (or C style cast) will be supported by circle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants