File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments