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

Validate another case of using DATA_FORMAT_A2B10G10R10_UNORM_PACK32 texture with storage flag #72068

Merged
merged 1 commit into from
Jan 26, 2023

Conversation

clayjohn
Copy link
Member

Might fix: #67430
Follow up to #71939

This time I went through every usage of TEXTURE_USAGE_STORAGE_BIT to see if it was possible that it could be called with a texture format that is not guaranteed by the Vulkan spec.

I found two places where it could happen. One is here, and it is likely the condition that OP is hitting. This is a branch that only runs when rendering/reflections/sky_reflections/texture_array_reflections is false.

The other is when using the CanvasItem screen SDF. It requests a R16G16_UINT texture with the storage flag, but that also requires the shaderStorageImageExtendedFormats feature. We need to implement a fallback for that so it falls back to an R16G16B16A16_UINT texture on such devices (or R32G32_UINT), but that will take a bit of refactoring and is better left for another PR

@akien-mga akien-mga merged commit bc73e32 into godotengine:master Jan 26, 2023
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

texture_create: Format 'R8_Uint' does not support usage as storage image.
2 participants