libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.18k stars 1.86k forks source link

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

Closed jsoulier closed 2 weeks ago

jsoulier commented 2 weeks ago

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

flibitijibibo commented 2 weeks ago

Does #11347 do what you need?

jsoulier commented 2 weeks ago

Yeah it does thanks. Closing