Renamed SDL_GpuGraphicsPipelineTargetInfo to SDL_GPUGraphicsPipelineTargetInfo

Fixes https://github.com/libsdl-org/SDL/issues/10855
This commit is contained in:
Sam Lantinga 2024-09-15 07:46:26 -07:00
parent 604d0c519e
commit 19243092c6
2 changed files with 4 additions and 4 deletions

View File

@ -1434,7 +1434,7 @@ typedef struct SDL_GPUColorTargetDescription
* *
* \sa SDL_GPUGraphicsPipelineCreateInfo * \sa SDL_GPUGraphicsPipelineCreateInfo
*/ */
typedef struct SDL_GpuGraphicsPipelineTargetInfo typedef struct SDL_GPUGraphicsPipelineTargetInfo
{ {
const SDL_GPUColorTargetDescription *color_target_descriptions; /**< A pointer to an array of color target descriptions. */ const SDL_GPUColorTargetDescription *color_target_descriptions; /**< A pointer to an array of color target descriptions. */
Uint32 num_color_targets; /**< The number of color target descriptions in the above array. */ Uint32 num_color_targets; /**< The number of color target descriptions in the above array. */
@ -1443,7 +1443,7 @@ typedef struct SDL_GpuGraphicsPipelineTargetInfo
Uint8 padding1; Uint8 padding1;
Uint8 padding2; Uint8 padding2;
Uint8 padding3; Uint8 padding3;
} SDL_GpuGraphicsPipelineTargetInfo; } SDL_GPUGraphicsPipelineTargetInfo;
/** /**
* A structure specifying the parameters of a graphics pipeline state. * A structure specifying the parameters of a graphics pipeline state.
@ -1461,7 +1461,7 @@ typedef struct SDL_GPUGraphicsPipelineCreateInfo
SDL_GPURasterizerState rasterizer_state; /**< The rasterizer state of the graphics pipeline. */ SDL_GPURasterizerState rasterizer_state; /**< The rasterizer state of the graphics pipeline. */
SDL_GPUMultisampleState multisample_state; /**< The multisample state of the graphics pipeline. */ SDL_GPUMultisampleState multisample_state; /**< The multisample state of the graphics pipeline. */
SDL_GPUDepthStencilState depth_stencil_state; /**< The depth-stencil state of the graphics pipeline. */ SDL_GPUDepthStencilState depth_stencil_state; /**< The depth-stencil state of the graphics pipeline. */
SDL_GpuGraphicsPipelineTargetInfo target_info; /**< Formats and blend modes for the render targets of the graphics pipeline. */ SDL_GPUGraphicsPipelineTargetInfo target_info; /**< Formats and blend modes for the render targets of the graphics pipeline. */
SDL_PropertiesID props; /**< A properties ID for extensions. Should be 0 if no extensions are needed. */ SDL_PropertiesID props; /**< A properties ID for extensions. Should be 0 if no extensions are needed. */
} SDL_GPUGraphicsPipelineCreateInfo; } SDL_GPUGraphicsPipelineCreateInfo;

View File

@ -6192,7 +6192,7 @@ static VkRenderPass VULKAN_INTERNAL_CreateRenderPass(
static VkRenderPass VULKAN_INTERNAL_CreateTransientRenderPass( static VkRenderPass VULKAN_INTERNAL_CreateTransientRenderPass(
VulkanRenderer *renderer, VulkanRenderer *renderer,
SDL_GpuGraphicsPipelineTargetInfo attachmentInfo, SDL_GPUGraphicsPipelineTargetInfo attachmentInfo,
VkSampleCountFlagBits sampleCount) VkSampleCountFlagBits sampleCount)
{ {
VkAttachmentDescription attachmentDescriptions[2 * MAX_COLOR_TARGET_BINDINGS + 1]; VkAttachmentDescription attachmentDescriptions[2 * MAX_COLOR_TARGET_BINDINGS + 1];