kong: bigger buffers
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user