mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-23 10:36:24 +00:00
GPU: colorAttachmentDescriptions should be const
The `colorAttachmentDescriptions` field of `SDL_GPUGraphicsPipelineAttachmentInfo` should be marked `const`, similarly to the `vertexBindings` and `vertexAttributes` fields of `SDL_GPUVertexInputState`.
This commit is contained in:
committed by
Sam Lantinga
parent
249a74e436
commit
f61d4db39a
@@ -1158,7 +1158,7 @@ typedef struct SDL_GPUColorAttachmentDescription
|
||||
|
||||
typedef struct SDL_GPUGraphicsPipelineAttachmentInfo
|
||||
{
|
||||
SDL_GPUColorAttachmentDescription *colorAttachmentDescriptions;
|
||||
const SDL_GPUColorAttachmentDescription *colorAttachmentDescriptions;
|
||||
Uint32 colorAttachmentCount;
|
||||
SDL_bool hasDepthStencilAttachment;
|
||||
SDL_GPUTextureFormat depthStencilFormat;
|
||||
|
||||
Reference in New Issue
Block a user