Skip to content

Commit c301be4

Browse files
committed
Commentses
1 parent f99cbfc commit c301be4

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Sources/ObjectivelyGPU/ComputePass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct ComputePassInterface {
139139
* @fn ComputePass *ComputePass::init(ComputePass *self, CommandBuffer *cmd, SDL_GPUComputePass *pass)
140140
* @brief Initializes this ComputePass wrapping the given SDL compute pass.
141141
* @param self The ComputePass.
142-
* @param cmd The CommandBuffer this pass was begun from.
142+
* @param cmd The CommandBuffer that created this pass.
143143
* @param pass The SDL compute pass to wrap. Must not be NULL.
144144
* @return The initialized ComputePass, or NULL on failure.
145145
* @memberof ComputePass

Sources/ObjectivelyGPU/RenderPass.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ struct RenderPass {
6565
*/
6666
RenderPassInterface *interface;
6767

68-
/**
69-
* @brief The CommandBuffer this pass was begun from.
70-
* @private
71-
*/
72-
CommandBuffer *cmd;
73-
7468
/**
7569
* @brief When true, the render pass clears to @c clear_color before drawing.
7670
* @details Defaults to `true` (clear to opaque black).
@@ -83,6 +77,12 @@ struct RenderPass {
8377
*/
8478
SDL_FColor clearColor;
8579

80+
/**
81+
* @brief The CommandBuffer this pass was begun from.
82+
* @private
83+
*/
84+
CommandBuffer *cmd;
85+
8686
/**
8787
* @brief The underlying SDL render pass.
8888
* @details Set to NULL by `dealloc` after `SDL_EndGPURenderPass` is called.
@@ -196,7 +196,7 @@ struct RenderPassInterface {
196196
* @fn RenderPass *RenderPass::init(RenderPass *self, CommandBuffer *cmd, SDL_GPURenderPass *pass)
197197
* @brief Initializes this RenderPass wrapping the given SDL render pass.
198198
* @param self The RenderPass.
199-
* @param cmd The CommandBuffer this pass was begun from.
199+
* @param cmd The CommandBuffer that created this pass.
200200
* @param pass The SDL render pass to wrap. Must not be NULL.
201201
* @return The initialized RenderPass, or NULL on failure.
202202
* @memberof RenderPass

0 commit comments

Comments
 (0)