Subversion Repository Public Repository

Divide-Dependencies

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 101 vs 102 for /sdl/include/SDL_vulkan.h

Diff revisions: vs.
  @@ -135,11 +135,11 @@
135 135 * \brief Get the names of the Vulkan instance extensions needed to create
136 136 * a surface with \c SDL_Vulkan_CreateSurface().
137 137 *
138 - * \param [in] window Window for which the required Vulkan instance
138 + * \param [in] \c NULL or window Window for which the required Vulkan instance
139 139 * extensions should be retrieved
140 - * \param [in,out] count pointer to an \c unsigned related to the number of
140 + * \param [in,out] pCount pointer to an \c unsigned related to the number of
141 141 * required Vulkan instance extensions
142 - * \param [out] names \c NULL or a pointer to an array to be filled with the
142 + * \param [out] pNames \c NULL or a pointer to an array to be filled with the
143 143 * required Vulkan instance extensions
144 144 *
145 145 * \return \c SDL_TRUE on success, \c SDL_FALSE on error.
  @@ -153,6 +153,10 @@
153 153 * is smaller than the number of required extensions, \c SDL_FALSE will be
154 154 * returned instead of \c SDL_TRUE, to indicate that not all the required
155 155 * extensions were returned.
156 + *
157 + * \note If \c window is not NULL, it will be checked against its creation
158 + * flags to ensure that the Vulkan flag is present. This parameter
159 + * will be removed in a future major release.
156 160 *
157 161 * \note The returned list of extensions will contain \c VK_KHR_surface
158 162 * and zero or more platform specific extensions
  @@ -160,12 +164,13 @@
160 164 * \note The extension names queried here must be enabled when calling
161 165 * VkCreateInstance, otherwise surface creation will fail.
162 166 *
163 - * \note \c window should have been created with the \c SDL_WINDOW_VULKAN flag.
167 + * \note \c window should have been created with the \c SDL_WINDOW_VULKAN flag
168 + * or be \c NULL
164 169 *
165 170 * \code
166 171 * unsigned int count;
167 172 * // get count of required extensions
168 - * if(!SDL_Vulkan_GetInstanceExtensions(window, &count, NULL))
173 + * if(!SDL_Vulkan_GetInstanceExtensions(NULL, &count, NULL))
169 174 * handle_error();
170 175 *
171 176 * static const char *const additionalExtensions[] =
  @@ -179,7 +184,7 @@
179 184 * handle_error();
180 185 *
181 186 * // get names of required extensions
182 - * if(!SDL_Vulkan_GetInstanceExtensions(window, &count, names))
187 + * if(!SDL_Vulkan_GetInstanceExtensions(NULL, &count, names))
183 188 * handle_error();
184 189 *
185 190 * // copy additional extensions after required extensions