Browse Source

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

pull/7373/head
Kevin Leonardic 8 months ago
committed by GitHub
parent
commit
fc570ac922
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      examples/example_emscripten_wgpu/main.cpp

1
examples/example_emscripten_wgpu/main.cpp

@ -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 };

Loading…
Cancel
Save