mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-27 15:09:11 +00:00
GPU: Remove pitch parameters from indirect draw calls (#10803)
This commit is contained in:
parent
3d7e8c9bb7
commit
ddd5723e2e
8 changed files with 47 additions and 99 deletions
|
@ -1631,8 +1631,7 @@ void SDL_DrawGPUPrimitivesIndirect(
|
|||
SDL_GPURenderPass *render_pass,
|
||||
SDL_GPUBuffer *buffer,
|
||||
Uint32 offset,
|
||||
Uint32 draw_count,
|
||||
Uint32 pitch)
|
||||
Uint32 draw_count)
|
||||
{
|
||||
if (render_pass == NULL) {
|
||||
SDL_InvalidParamError("render_pass");
|
||||
|
@ -1652,16 +1651,14 @@ void SDL_DrawGPUPrimitivesIndirect(
|
|||
RENDERPASS_COMMAND_BUFFER,
|
||||
buffer,
|
||||
offset,
|
||||
draw_count,
|
||||
pitch);
|
||||
draw_count);
|
||||
}
|
||||
|
||||
void SDL_DrawGPUIndexedPrimitivesIndirect(
|
||||
SDL_GPURenderPass *render_pass,
|
||||
SDL_GPUBuffer *buffer,
|
||||
Uint32 offset,
|
||||
Uint32 draw_count,
|
||||
Uint32 pitch)
|
||||
Uint32 draw_count)
|
||||
{
|
||||
if (render_pass == NULL) {
|
||||
SDL_InvalidParamError("render_pass");
|
||||
|
@ -1681,8 +1678,7 @@ void SDL_DrawGPUIndexedPrimitivesIndirect(
|
|||
RENDERPASS_COMMAND_BUFFER,
|
||||
buffer,
|
||||
offset,
|
||||
draw_count,
|
||||
pitch);
|
||||
draw_count);
|
||||
}
|
||||
|
||||
void SDL_EndGPURenderPass(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue