Преглед на файлове

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot преди 1 година
родител
ревизия
129ebc77b9
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      include/SDL3/SDL_gpu.h

+ 3 - 1
include/SDL3/SDL_gpu.h

@@ -3410,7 +3410,9 @@ extern SDL_DECLSPEC void SDLCALL SDL_EndGPUComputePass(
 /**
 /**
  * Maps a transfer buffer into application address space.
  * Maps a transfer buffer into application address space.
  *
  *
- * You must unmap the transfer buffer before encoding upload commands.
+ * You must unmap the transfer buffer before encoding upload commands. The
+ * memory is owned by the graphics driver - do NOT call SDL_free() on the
+ * returned pointer.
  *
  *
  * \param device a GPU context.
  * \param device a GPU context.
  * \param transfer_buffer a transfer buffer.
  * \param transfer_buffer a transfer buffer.