Skip to content

Commit

Permalink
Update SDL_gpu_shadercross
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Oct 7, 2024
1 parent 201abd8 commit 625f307
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 51 deletions.
10 changes: 4 additions & 6 deletions mojoshader_sdlgpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,9 @@ static MOJOSHADER_sdlProgram *compile_spirv_program(
createInfo.num_samplers = vshader->samplerSlots;
createInfo.num_uniform_buffers = 1;

program->vertexShader = SDL_ShaderCross_CompileFromSPIRV(
program->vertexShader = SDL_ShaderCross_CompileGraphicsShaderFromSPIRV(
ctx->device,
&createInfo,
false
&createInfo
);

if (program->vertexShader == NULL)
Expand All @@ -453,10 +452,9 @@ static MOJOSHADER_sdlProgram *compile_spirv_program(
createInfo.stage = SDL_GPU_SHADERSTAGE_FRAGMENT;
createInfo.num_samplers = pshader->samplerSlots;

program->pixelShader = SDL_ShaderCross_CompileFromSPIRV(
program->pixelShader = SDL_ShaderCross_CompileGraphicsShaderFromSPIRV(
ctx->device,
&createInfo,
false
&createInfo
);

if (program->pixelShader == NULL)
Expand Down
Loading

0 comments on commit 625f307

Please sign in to comment.