|
|
@ -205,7 +205,7 @@ static void main_loop(void* window) |
|
|
|
WGPURenderPassColorAttachment color_attachments = {}; |
|
|
|
color_attachments.loadOp = WGPULoadOp_Clear; |
|
|
|
color_attachments.storeOp = WGPUStoreOp_Store; |
|
|
|
color_attachments.clearColor = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; |
|
|
|
color_attachments.clearValue = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w }; |
|
|
|
color_attachments.view = wgpuSwapChainGetCurrentTextureView(wgpu_swap_chain); |
|
|
|
WGPURenderPassDescriptor render_pass_desc = {}; |
|
|
|
render_pass_desc.colorAttachmentCount = 1; |
|
|
|