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

OpenGL bindless textures #1539

Open
heinezen opened this issue Sep 17, 2023 · 0 comments
Open

OpenGL bindless textures #1539

heinezen opened this issue Sep 17, 2023 · 0 comments
Labels
area: renderer Concerns our graphics renderer improvement Enhancement of an existing component lang: c++ Done in C++ code

Comments

@heinezen
Copy link
Member

We could use bindless textures in the renderer for texture drawing. The advantages of bindless textures are that they can be accessed as an index from the shader rather than having to be (re-)bound before every draw call. Bindless textures also allows using more textures per shader which is interesting for batch rendering (see #1536).

The implementation could be trivial. We just have to upload the texture to the GPU once and get a texture handle ID from OpenGL. The ID can then be passed as a uniform or using a buffer.

A problem with bindless texture support is that it is only available as an OpenGL extension and might not be available on all plattforms (e.g. macOS). Therefore, bindless textures should always stay an optional feature.

@heinezen heinezen added improvement Enhancement of an existing component area: renderer Concerns our graphics renderer lang: c++ Done in C++ code labels Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: renderer Concerns our graphics renderer improvement Enhancement of an existing component lang: c++ Done in C++ code
Projects
Status: 🔖 TODO
Development

No branches or pull requests

1 participant