Gpu cleanup

This commit is contained in:
luboslenco
2025-09-26 10:48:18 +02:00
parent 06c094313e
commit ef7f28aa34
9 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ declare function gpu_get_texture_pixels(texture: any): buffer_t;
declare function gpu_viewport(x: i32, y: i32, width: i32, height: i32): void;
declare function gpu_scissor(x: i32, y: i32, width: i32, height: i32): void;
declare function gpu_disable_scissor(): void;
declare function _gpu_begin(render_target: gpu_texture_t, additional: gpu_texture_t[] = null, depth_buffer: gpu_texture_t = null, flags: i32 = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0): void;
declare function _gpu_begin(render_target: gpu_texture_t, additional: gpu_texture_t[] = null, depth_buffer: gpu_texture_t = null, flags: clear_flag_t = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0): void;
declare function gpu_end(): void;
declare function gpu_present(): void;
declare function iron_file_save_bytes(path: string, bytes: buffer_t, length: i32 = 0): void;
+1 -1
View File
@@ -64,7 +64,7 @@ function render_path_render_frame() {
_render_path_frame++;
}
function render_path_set_target(target: string, additional: string[] = null, depth_buffer: string = null, flags: i32 = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0) {
function render_path_set_target(target: string, additional: string[] = null, depth_buffer: string = null, flags: clear_flag_t = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0) {
if (_render_path_current_image != null) {
render_path_end();
}