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

Add missing SDL_GPU_TEXTUREFORMAT_R8_INT to SDL_GPUTextureFormatTexel… #12151

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

coffeechriph
Copy link
Contributor

…BlockSize

Description

Adds SDL_GPU_TEXTUREFORMAT_R8_INT to the switch together with the other R8 formats.

@@ -605,6 +605,7 @@ Uint32 SDL_GPUTextureFormatTexelBlockSize(
case SDL_GPU_TEXTUREFORMAT_R8_SNORM:
case SDL_GPU_TEXTUREFORMAT_A8_UNORM:
case SDL_GPU_TEXTUREFORMAT_R8_UINT:
case SDL_GPU_TEXTUREFORMAT_R8_INT:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the other INT formats to this function as well? R16_INT, etc?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, went through and compared and think I got the missing ones now.

@coffeechriph coffeechriph force-pushed the add_missing_texture_format branch from 928a962 to 7cba35e Compare February 1, 2025 08:30
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