浏览代码

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot 1 周之前
父节点
当前提交
1b4fd3aa83
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      include/SDL3/SDL_gpu.h

+ 4 - 1
include/SDL3/SDL_gpu.h

@@ -2667,7 +2667,8 @@ extern SDL_DECLSPEC SDL_GPUShader * SDLCALL SDL_CreateGPUShader(
  * Creates a texture object to be used in graphics or compute workflows.
  * Creates a texture object to be used in graphics or compute workflows.
  *
  *
  * The contents of this texture are undefined until data is written to the
  * The contents of this texture are undefined until data is written to the
- * texture.
+ * texture, either via SDL_UploadToGPUTexture or by performing a render or
+ * compute pass with this texture as a target.
  *
  *
  * Note that certain combinations of usage flags are invalid. For example, a
  * Note that certain combinations of usage flags are invalid. For example, a
  * texture cannot have both the SAMPLER and GRAPHICS_STORAGE_READ flags.
  * texture cannot have both the SAMPLER and GRAPHICS_STORAGE_READ flags.
@@ -2709,6 +2710,8 @@ extern SDL_DECLSPEC SDL_GPUShader * SDLCALL SDL_CreateGPUShader(
  *
  *
  * \sa SDL_UploadToGPUTexture
  * \sa SDL_UploadToGPUTexture
  * \sa SDL_DownloadFromGPUTexture
  * \sa SDL_DownloadFromGPUTexture
+ * \sa SDL_BeginGPURenderPass
+ * \sa SDL_BeginGPUComputePass
  * \sa SDL_BindGPUVertexSamplers
  * \sa SDL_BindGPUVertexSamplers
  * \sa SDL_BindGPUVertexStorageTextures
  * \sa SDL_BindGPUVertexStorageTextures
  * \sa SDL_BindGPUFragmentSamplers
  * \sa SDL_BindGPUFragmentSamplers