Skip to content

Adds SamplerState.MinMipLevel & fixes SamplerState.MaxMipLevel#2634

Open
squarebananas wants to merge 4 commits into
kniEngine:mainfrom
squarebananas:SamplerStateMipLevel
Open

Adds SamplerState.MinMipLevel & fixes SamplerState.MaxMipLevel#2634
squarebananas wants to merge 4 commits into
kniEngine:mainfrom
squarebananas:SamplerStateMipLevel

Conversation

@squarebananas

@squarebananas squarebananas commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Adds SamplerState.MinMipLevel property and also ensures SamplerState.MaxMipLevel matches XNA behavior, where "max" refers to the largest mipmap with the maximum level of detail. <summary> comments have been added to clarify this too.

The conditions for GraphicsCapabilities.SupportsTextureMaxLevel have also been corrected, including removing the "GL_APPLE_texture_max_level" extension check as this extension doesn't provide sampler min/max LOD support for texture filtering.

This PR is dependent on the following PR:

For testing, this project can be used to adjust and view sampler state mip levels: https://github.com/squarebananas/XnaApiTesting

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.

1 participant