You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Misc] Replaced RenderSystem::CopyTextureImageData() with ConvertImageBuffer().
- Deprecated RenderSystem::CopyTextureImageData(): Use global ConvertImageBuffer() function instead.
- Deprecated RenderSystem::AssertImageDataSize(): Use LLGL_VERIFY() macro instead.
- Fixed global function ConvertImageBuffer(): The depth-stencil case did not return a value.
- Allow ConvertImageBuffer() function to also copy the source to destination buffer as is if requested.
- Make ConvertImageBuffer() return the number of bytes that have been written to.
Copy file name to clipboardExpand all lines: include/LLGL/ImageFlags.h
+19-5Lines changed: 19 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -201,28 +201,36 @@ struct LLGL_DEPRECATED("LLGL::DstImageDescriptor is deprecated since 0.04b; Use
201
201
202
202
/**
203
203
\brief Converts the image format and data type of the source image (only uncompressed color formats).
204
+
204
205
\param[in] srcImageView Specifies the source image view.
205
206
\param[out] dstImageView Specifies the destination image view.
206
207
\param[in] extent Specifies the extent of the image. This is required
207
208
\param[in] threadCount Specifies the number of threads to use for conversion.
208
209
If this is less than 2, no multi-threading is used. If this is equal to \c LLGL_MAX_THREAD_COUNT,
209
210
the maximal count of threads the system supports will be used (e.g. 4 on a quad-core processor). By default 0.
210
-
\return True if any conversion was necessary. Otherwise, no conversion was necessary and the destination buffer is not modified!
211
+
\param[in] copyUnchangedImage Specifies whether to copy the source buffer into the destination buffer if no conversion was necessary. By default false.
212
+
213
+
\return Number of bytes that have been written to the destination buffer.
214
+
If this is 0, no conversion was necessary and the destination buffer is not modified.
215
+
211
216
\note Compressed images and depth-stencil images cannot be converted with this function.
217
+
212
218
\throw std::invalid_argument If a compressed image format is specified either as source or destination.
213
219
\throw std::invalid_argument If a depth-stencil format is specified either as source or destination.
214
220
\throw std::invalid_argument If the source buffer size is not a multiple of the source data type size times the image format size.
215
221
\throw std::invalid_argument If the source buffer is a null pointer.
216
222
\throw std::invalid_argument If the destination buffer size does not match the required output buffer size.
217
223
\throw std::invalid_argument If the destination buffer is a null pointer.
0 commit comments