Add SDL_SetGPUBlendConstants, SDL_SetGPUStencilReference (#10704)

This commit is contained in:
Caleb Cornett 2024-09-05 17:41:23 -05:00 committed by GitHub
parent 04a732881a
commit 2d4eb29c37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 383 additions and 189 deletions

View file

@ -398,6 +398,14 @@ struct SDL_GPUDevice
SDL_GPUCommandBuffer *commandBuffer,
const SDL_Rect *scissor);
void (*SetBlendConstants)(
SDL_GPUCommandBuffer *commandBuffer,
SDL_FColor blendConstants);
void (*SetStencilReference)(
SDL_GPUCommandBuffer *commandBuffer,
Uint8 reference);
void (*BindVertexBuffers)(
SDL_GPUCommandBuffer *commandBuffer,
Uint32 firstBinding,
@ -716,6 +724,8 @@ struct SDL_GPUDevice
ASSIGN_DRIVER_FUNC(BindGraphicsPipeline, name) \
ASSIGN_DRIVER_FUNC(SetViewport, name) \
ASSIGN_DRIVER_FUNC(SetScissor, name) \
ASSIGN_DRIVER_FUNC(SetBlendConstants, name) \
ASSIGN_DRIVER_FUNC(SetStencilReference, name) \
ASSIGN_DRIVER_FUNC(BindVertexBuffers, name) \
ASSIGN_DRIVER_FUNC(BindIndexBuffer, name) \
ASSIGN_DRIVER_FUNC(BindVertexSamplers, name) \