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
@@ -50,7 +50,7 @@ void gpu_init_internal(int depth_bits, bool vsync) {
swapChain = wgpuDeviceCreateSwapChain(device, surface, &scDesc);
}
void gpu_begin_internal(unsigned flags, unsigned color, float depth) {
void gpu_begin_internal(gpu_clear_t flags, unsigned color, float depth) {
WGPUCommandEncoderDescriptor ceDesc;
memset(&ceDesc, 0, sizeof(ceDesc));
encoder = wgpuDeviceCreateCommandEncoder(device, &ceDesc);