Skip to content

gg: mipmap generation when using sokol#27206

Merged
medvednikov merged 2 commits into
vlang:masterfrom
SurmanPP:gg_mipmap
May 21, 2026
Merged

gg: mipmap generation when using sokol#27206
medvednikov merged 2 commits into
vlang:masterfrom
SurmanPP:gg_mipmap

Conversation

@SurmanPP
Copy link
Copy Markdown
Contributor

@SurmanPP SurmanPP commented May 21, 2026

Changed create_image to take a ImageConfig struct replacing the create_image*_with_filter methods. Additionally max_mipmaps can be passed as a parameter. Setting max_mipmaps to a value above 1 will generate mipmaps up to that level when using sokol, "native" rendering(macos) is not affected. When setting it to a value below 1 as many mipmap levels as possible will be generated. A general limit is set by gfx.sg_max_mipmaps. Mipmap generation is capped by it.

Currently there are no test dedicated to the mipmap generation.

@medvednikov medvednikov merged commit ef5d8d6 into vlang:master May 21, 2026
81 checks passed
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

Successfully merging this pull request may close these issues.

2 participants