Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding better instanced rendering support and buffer textures#345

Open
Gaalve wants to merge 10 commits into
nmwsharp:master from
Gaalve:instanced-rendering
Open

Adding better instanced rendering support and buffer textures #345
Gaalve wants to merge 10 commits into
nmwsharp:master from
Gaalve:instanced-rendering

Conversation

@Gaalve

@Gaalve Gaalve commented Jun 16, 2025

Copy link
Copy Markdown

This PR adds the following functionalities:

  • Instanced Rendering
    • fixed: you can now specify how many vertices are computed per instance
    • added divisor to attributes so that you can specify how many times an attribute is processed per instance
  • Buffer Textures
    • added buffer texture support to handle big arrays in shaders
    • reused GLTextureBuffer for this to minimize complexity when updating uniforms
    • set name to GLStorageTextureBuffer to avoid weird naming while still conveying meaning
  • Fixed integer types were previously cast implicitly to floating point. glVertexAttribIPointer fixes that by leaving them as integer values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /