a multi-threading problem of SDL3 GPU

Hi.
My game program has main thread and render thread. The main thread is used to create a window, handle window events, and run some scripts on every tick. The render thread is used to render game scene. I record render command to a byte buffer in the main thread, and in the render thread I call sdl gpu function to render.
So I need to call SDL_AcquireGPUCommandBuffer in the rendering thread to create a command buffer, and then call SDL_AcquireGPUSwapchainTexture(commandBuffer, sdlWindow, &colorTexture, &swapchainTextureWidth, &swapchainTextureHeight) to acquire swapchain texture for rendering. I found that the SDL_AcquireGPUSwapchainTexture function annotation says “This function should only be called from the thread that created the window”. But my window is created in the main thread. Can I only call SDL_AcquireGPUSwapchainTexture in the main thread?
What should I do if I want to call the rendering command in the rendering thread.