Skip to content

Commit

Permalink
Define that render-target contents are undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Dec 10, 2023
1 parent 4d29c8c commit 2a6b4b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 6 additions & 4 deletions Sources/kinc/graphics4/rendertarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef struct kinc_g4_render_target {
} kinc_g4_render_target_t;

/// <summary>
/// Allocates and initializes a regular render-target.
/// Allocates and initializes a regular render-target. The contents of the render-target are undefined.
/// </summary>
/// <param name="renderTarget"></param>
/// <param name="width"></param>
Expand All @@ -50,7 +50,8 @@ KINC_FUNC void kinc_g4_render_target_init(kinc_g4_render_target_t *renderTarget,
int depthBufferBits, int stencilBufferBits);

/// <summary>
/// Allocates and initializes a multi-sampled render-target if possible - otherwise it falls back to a regular render-target.
/// Allocates and initializes a multi-sampled render-target if possible - otherwise it falls back to a regular render-target. The contents of the render-target
/// are undefined.
/// </summary>
/// <param name="renderTarget"></param>
/// <param name="width"></param>
Expand All @@ -64,7 +65,7 @@ KINC_FUNC void kinc_g4_render_target_init_with_multisampling(kinc_g4_render_targ
int samples_per_pixel);

/// <summary>
/// Allocates and initializes a render-target-cube-map.
/// Allocates and initializes a render-target-cube-map. The contents of the render-target are undefined.
/// </summary>
/// <param name="renderTarget"></param>
/// <param name="cubeMapSize"></param>
Expand All @@ -75,7 +76,8 @@ KINC_FUNC void kinc_g4_render_target_init_cube(kinc_g4_render_target_t *renderTa
int depthBufferBits, int stencilBufferBits);

/// <summary>
/// Allocates and initializes a multi-sampled render-target-cube-map. Can fall back to a non-multi-sampled cube-map.
/// Allocates and initializes a multi-sampled render-target-cube-map. Can fall back to a non-multi-sampled cube-map. The contents of the render-target are
/// undefined.
/// </summary>
/// <param name="renderTarget"></param>
/// <param name="cubeMapSize"></param>
Expand Down
12 changes: 6 additions & 6 deletions Sources/kinc/graphics5/rendertarget.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ typedef struct kinc_g5_render_target {
} kinc_g5_render_target_t;

/// <summary>
/// Allocates and initializes a regular render-target.
/// Allocates and initializes a regular render-target. The contents of the render-target are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="width"></param>
Expand All @@ -49,7 +49,7 @@ KINC_FUNC void kinc_g5_render_target_init(kinc_g5_render_target_t *target, int w
int stencilBufferBits);

/// <summary>
/// Allocates and initializes a regular render-target. Can fall back to a regular render-target.
/// Allocates and initializes a regular render-target. Can fall back to a regular render-target. The contents of the render-target are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="width"></param>
Expand All @@ -63,7 +63,7 @@ KINC_FUNC void kinc_g5_render_target_init_with_multisampling(kinc_g5_render_targ
int depthBufferBits, int stencilBufferBits, int samples_per_pixel);

/// <summary>
/// Allocates and initializes a framebuffer.
/// Allocates and initializes a framebuffer. The contents of the framebuffer are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="width"></param>
Expand All @@ -76,7 +76,7 @@ KINC_FUNC void kinc_g5_render_target_init_framebuffer(kinc_g5_render_target_t *t
int depthBufferBits, int stencilBufferBits);

/// <summary>
/// Allocates and initializes a multisampled framebuffer. Can fall back to a regular framebuffer.
/// Allocates and initializes a multisampled framebuffer. Can fall back to a regular framebuffer. The contents of the framebuffer are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="width"></param>
Expand All @@ -91,7 +91,7 @@ KINC_FUNC void kinc_g5_render_target_init_framebuffer_with_multisampling(kinc_g5
int samples_per_pixel);

/// <summary>
/// Allocates and initializes a render-target-cube-map.
/// Allocates and initializes a render-target-cube-map. The contents of the render-target are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="cubeMapSize"></param>
Expand All @@ -103,7 +103,7 @@ KINC_FUNC void kinc_g5_render_target_init_cube(kinc_g5_render_target_t *target,
int stencilBufferBits);

/// <summary>
/// Allocates and initializes a multisampled render-target-cube-map. Can fall back to a regular cube-map.
/// Allocates and initializes a multisampled render-target-cube-map. Can fall back to a regular cube-map. The contents of the render-target are undefined.
/// </summary>
/// <param name="target"></param>
/// <param name="cubeMapSize"></param>
Expand Down

0 comments on commit 2a6b4b1

Please sign in to comment.