kong: bigger buffers

This commit is contained in:
luboslenco
2026-07-23 16:22:51 +02:00
parent 99e1cab6ee
commit 733e076da4
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1236,7 +1236,7 @@ static void write_functions(char *hlsl, size_t *offset, shader_stage stage, func
}
static char *hlsl_export_vertex2(api_kind d3d, function *main, bool debug) {
static char _buffer[1024 * 1024];
static char _buffer[1024 * 1024 * 8];
char *hlsl = &_buffer[0];
size_t offset = 0;
@@ -1258,7 +1258,7 @@ static char *hlsl_export_vertex2(api_kind d3d, function *main, bool debug) {
}
static char *hlsl_export_fragment2(api_kind d3d, function *main, bool debug) {
static char _buffer[1024 * 1024];
static char _buffer[1024 * 1024 * 8];
char *hlsl = &_buffer[0];
size_t offset = 0;
+1 -1
View File
@@ -815,7 +815,7 @@ static void write_functions(char *code, size_t *offset) {
}
static char *metal_export_everything(char *directory) {
char *metal = (char *)calloc(1024 * 1024, 1);
char *metal = (char *)calloc(1024 * 1024 * 8, 1);
debug_context context = {0};
check(metal != NULL, context, "Could not allocate Metal string");
size_t offset = 0;
+2 -2
View File
@@ -1054,7 +1054,7 @@ static void write_functions(char *code, size_t *offset, shader_stage stage, func
}
static char *wgsl_export_vertex2(function *main) {
char *wgsl = (char *)calloc(1024 * 1024, 1);
char *wgsl = (char *)calloc(1024 * 1024 * 8, 1);
debug_context context = {0};
check(wgsl != NULL, context, "Could not allocate the wgsl string");
@@ -1087,7 +1087,7 @@ static char *wgsl_export_vertex2(function *main) {
}
static char *wgsl_export_fragment2(function *main) {
char *wgsl = (char *)calloc(1024 * 1024, 1);
char *wgsl = (char *)calloc(1024 * 1024 * 8, 1);
debug_context context = {0};
check(wgsl != NULL, context, "Could not allocate the wgsl string");