|
@@ -1513,6 +1513,7 @@ typedef struct SDL_GPUTextureCreateInfo
|
|
|
* \since This struct is available since SDL 3.1.3
|
|
|
*
|
|
|
* \sa SDL_CreateGPUBuffer
|
|
|
+ * \sa SDL_GPUBufferUsageFlags
|
|
|
*/
|
|
|
typedef struct SDL_GPUBufferCreateInfo
|
|
|
{
|
|
@@ -2296,6 +2297,11 @@ extern SDL_DECLSPEC SDL_GPUTexture *SDLCALL SDL_CreateGPUTexture(
|
|
|
* Note that certain combinations of usage flags are invalid. For example, a
|
|
|
* buffer cannot have both the VERTEX and INDEX flags.
|
|
|
*
|
|
|
+ * For better understanding of underlying concepts and memory management with
|
|
|
+ * SDL GPU API, you may refer
|
|
|
+ * [this blog post](https://moonside.games/posts/sdl-gpu-concepts-cycling/)
|
|
|
+ * .
|
|
|
+ *
|
|
|
* \param device a GPU Context.
|
|
|
* \param createinfo a struct describing the state of the buffer to create.
|
|
|
* \returns a buffer object on success, or NULL on failure; call
|