From c04b739df628b2c87f4b538dc75b4b48844458f5 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Sun, 12 Jan 2025 14:22:26 -0800 Subject: [PATCH] GPU: Note that resource naming functions are not thread safe. --- include/SDL3/SDL_gpu.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/SDL3/SDL_gpu.h b/include/SDL3/SDL_gpu.h index d4b92b9d7d..7ddc2f8138 100644 --- a/include/SDL3/SDL_gpu.h +++ b/include/SDL3/SDL_gpu.h @@ -2514,6 +2514,8 @@ extern SDL_DECLSPEC SDL_GPUTransferBuffer *SDLCALL SDL_CreateGPUTransferBuffer( * \param buffer a buffer to attach the name to. * \param text a UTF-8 string constant to mark as the name of the buffer. * + * \threadsafety This function is not thread safe, you must synchronize calls to this function. + * * \since This function is available since SDL 3.1.3. */ extern SDL_DECLSPEC void SDLCALL SDL_SetGPUBufferName( @@ -2530,6 +2532,8 @@ extern SDL_DECLSPEC void SDLCALL SDL_SetGPUBufferName( * \param texture a texture to attach the name to. * \param text a UTF-8 string constant to mark as the name of the texture. * + * \threadsafety This function is not thread safe, you must synchronize calls to this function. + * * \since This function is available since SDL 3.1.3. */ extern SDL_DECLSPEC void SDLCALL SDL_SetGPUTextureName(