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

SDL GPU clear texture of integers on render pass begin #11451

Closed
jsoulier opened this issue Nov 12, 2024 · 2 comments
Closed

SDL GPU clear texture of integers on render pass begin #11451

jsoulier opened this issue Nov 12, 2024 · 2 comments

Comments

@jsoulier
Copy link

jsoulier commented Nov 12, 2024

Pretty much the title. If I bind a texture of integers as a render target (R32_INT), how can I clear the render target? The SDL_GPUColorTargetInfo only takes floats and in the vulkan GPU implementation, only clearColor.float32 is set.

My use case is edge detection where I only need a boolean. Thanks

@jsoulier jsoulier changed the title SDL GPU clear color texture of integers SDL GPU clear texture of integers on render pass begin Nov 12, 2024
@flibitijibibo
Copy link
Collaborator

Does #11347 do what you need?

@jsoulier
Copy link
Author

Yeah it does thanks. Closing

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

No branches or pull requests

2 participants