mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
include: Clarify that struct vkd3d_shader_code is not null-terminated.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
dffff8bdbc
commit
5d9398e10c
@@ -155,7 +155,13 @@ enum vkd3d_shader_visibility
|
|||||||
/** A generic structure containing a GPU shader, in text or byte-code format. */
|
/** A generic structure containing a GPU shader, in text or byte-code format. */
|
||||||
struct vkd3d_shader_code
|
struct vkd3d_shader_code
|
||||||
{
|
{
|
||||||
/** Pointer to the code. */
|
/**
|
||||||
|
* Pointer to the code. Note that textual formats are not null-terminated.
|
||||||
|
* Therefore \a size should not include a null terminator, when this
|
||||||
|
* structure is passed as input to a vkd3d-shader function, and the
|
||||||
|
* allocated string will not include a null terminator when this structure
|
||||||
|
* is used as output.
|
||||||
|
*/
|
||||||
const void *code;
|
const void *code;
|
||||||
/** Size of \a code, in bytes. */
|
/** Size of \a code, in bytes. */
|
||||||
size_t size;
|
size_t size;
|
||||||
|
Reference in New Issue
Block a user