Skip to content

Commit

Permalink
Inform Kinc of the raytracing situation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Sep 17, 2024
1 parent 6422abd commit f07d795
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Sources/backends/hlsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,25 @@ static void hlsl_export_all_ray_shaders(char *directory) {
}

if (all_rayshaders_size == 0) {
char *name = "ray";

char filename[512];
sprintf(filename, "kong_%s", name);

char full_filename[512];

sprintf(full_filename, "%s/%s.h", directory, filename);
FILE *file = fopen(full_filename, "wb");

fprintf(file, "#ifndef KONG_%s_HEADER\n", name);
fprintf(file, "#define KONG_%s_HEADER\n\n", name);

fprintf(file, "#define KONG_HAS_NO_RAY_SHADERS\n\n");

fprintf(file, "#endif\n");

fclose(file);

return;
}

Expand Down

0 comments on commit f07d795

Please sign in to comment.