Skip to content

Commit

Permalink
MojoShader update for new SPIR-V linker
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Jan 20, 2025
1 parent e9dd55e commit 3d160cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MojoShader
4 changes: 2 additions & 2 deletions src/FNA3D_Driver_SDL.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ static void SDLGPU_INTERNAL_GenerateVertexInputInfo(
FNA3D_VertexDeclaration vertexDeclaration;
FNA3D_VertexElement element;
FNA3D_VertexElementUsage usage;
MOJOSHADER_sdlVertexAttribute mojoshaderVertexAttributes[16];
MOJOSHADER_vertexAttribute mojoshaderVertexAttributes[16];
int32_t index, attribLoc;

MOJOSHADER_sdlGetBoundShaderData(renderer->mojoshaderContext, &vertexShader, &blah);
Expand Down Expand Up @@ -1377,7 +1377,7 @@ static void SDLGPU_INTERNAL_GenerateVertexInputInfo(
attributes[attributeDescriptionCounter].buffer_slot = i;

mojoshaderVertexAttributes[attributeDescriptionCounter].usage = VertexAttribUsage(element.vertexElementUsage);
mojoshaderVertexAttributes[attributeDescriptionCounter].vertexElementFormat = element.vertexElementFormat;
mojoshaderVertexAttributes[attributeDescriptionCounter].vertexElementFormat = (MOJOSHADER_vertexElementFormat) element.vertexElementFormat; /* FNA3D/MojoShader use the same enum values */
mojoshaderVertexAttributes[attributeDescriptionCounter].usageIndex = index;

attributeDescriptionCounter += 1;
Expand Down

0 comments on commit 3d160cb

Please sign in to comment.