1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-12 02:00:58 +01:00

Examples: WGPU: fixed initialization of WGPURenderPassColorAttachment (#7371)

This commit is contained in:
Kevin Leonardic 2024-03-06 13:44:37 +01:00 committed by GitHub
parent 65dc67f63c
commit fc570ac922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,6 +201,7 @@ int main(int, char**)
ImGui::Render();
WGPURenderPassColorAttachment color_attachments = {};
color_attachments.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
color_attachments.loadOp = WGPULoadOp_Clear;
color_attachments.storeOp = WGPUStoreOp_Store;
color_attachments.clearValue = { clear_color.x * clear_color.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w };