Ver Fonte

SDL_gpu.h: SDL_GetGPUDeviceProperties() is thread-safe.

Ryan C. Gordon há 6 meses atrás
pai
commit
05939909da
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      include/SDL3/SDL_gpu.h

+ 2 - 0
include/SDL3/SDL_gpu.h

@@ -2358,6 +2358,8 @@ extern SDL_DECLSPEC SDL_GPUShaderFormat SDLCALL SDL_GetGPUShaderFormats(SDL_GPUD
  * \returns a valid property ID on success or 0 on failure; call
  * \returns a valid property ID on success or 0 on failure; call
  *          SDL_GetError() for more information.
  *          SDL_GetError() for more information.
  *
  *
+ * \threadsafety It is safe to call this function from any thread.
+ *
  * \since This function is available since SDL 3.4.0.
  * \since This function is available since SDL 3.4.0.
  */
  */
 extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetGPUDeviceProperties(SDL_GPUDevice *device);
 extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetGPUDeviceProperties(SDL_GPUDevice *device);