Using SDL_Texture as param for the gpu api

Hello. I have ported my sdl2 project to sdl3 and now I would like to use sdl 3 gpu. I haven’t found any example how to pass SDL_Texture (SDL_TEXTUREACCESS_TARGET) to the new gpu api (which uses SDL_GPU Texture). What is the proper way to it ? For example i would like to blur the image and apply simple shader to SDL_Texture

Nohow, because these are two different types — you can’t mix the SDL_Render API with the SDL_GPU API. If you want to use SDL_GPU API and its features (like shaders), just use the SDL_GPUTexture type.

Thanks for the reply. By the way, I looked across the code, and gpu render is based on the GPU api, some types are part of private data of SDL_XXType (SDL_GPUTextrure is a part of private data of SDL_Texture). So i thought there is a proper way to use SDL_Texture in the GPU api.