Skip to content

Commit

Permalink
Fix the HLSL headers
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Oct 4, 2023
1 parent 69b9079 commit e46b86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/backends/hlsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ static void write_bytecode(char *hlsl, char *directory, const char *filename, co
{
sprintf(full_filename, "%s/%s.h", directory, filename);
FILE *file = fopen(full_filename, "wb");
fprintf(file, "#include <stddef.h>\n\n");
fprintf(file, "#include <stddef.h>\n");
fprintf(file, "#include <stdint.h>\n\n");
fprintf(file, "extern uint8_t *%s;\n", name);
fprintf(file, "extern size_t %s_size;\n", name);
fclose(file);
Expand Down

0 comments on commit e46b86c

Please sign in to comment.