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

Trying to use compute shaders fail #8

Open
KaruroChori opened this issue Jan 6, 2025 · 2 comments
Open

Trying to use compute shaders fail #8

KaruroChori opened this issue Jan 6, 2025 · 2 comments

Comments

@KaruroChori
Copy link
Contributor

The logic of setting GRAPHICS_API_OPENGL_XX seems to be a bit wrong.
The safety case I think should be something like

const GRAPHICS_API_OPENGL_33
	@if(!$feature(GRAPHICS_API_OPENGL_11) &&
		!$feature(GRAPHICS_API_OPENGL_21) &&
		!$feature(GRAPHICS_API_OPENGL_33) &&
		!$feature(GRAPHICS_API_OPENGL_43) &&
		!$feature(GRAPHICS_API_OPENGL_ES2) &&
		!$feature(GRAPHICS_API_OPENGL_ES3)) = true;

else, it will complain of the circular definition based on GRAPHICS_API_OPENGL_33.
That being said, even manually setting GRAPHICS_API_OPENGL_43 does not let compute shaders work :(.

@KaruroChori
Copy link
Contributor Author

KaruroChori commented Jan 6, 2025

I found the issue. It is compiled to support only 33 by default.
The lib resulting from make GRAPHICS=GRAPHICS_API_OPENGL_43 PLATFORM=PLATFORM_DESKTOP is needed to support compute shaders.
So the second part is only a problem about raylib itself.

@NexushasTaken
Copy link
Owner

NexushasTaken commented Jan 7, 2025

i honestly dont know how to deal with these definitions since i was just converting the rlgl header file to C3, thus im not used to dealing with OpenGL thingy.
after all, these i retrieve these raylib prebuilt binaries directly from raylib repo releases.

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