Examples: WGPU: fixed initialization of WGPURenderPassColorAttachment (#7371)
This commit is contained in:
parent
65dc67f63c
commit
fc570ac922
@ -201,6 +201,7 @@ int main(int, char**)
|
|||||||
ImGui::Render();
|
ImGui::Render();
|
||||||
|
|
||||||
WGPURenderPassColorAttachment color_attachments = {};
|
WGPURenderPassColorAttachment color_attachments = {};
|
||||||
|
color_attachments.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED;
|
||||||
color_attachments.loadOp = WGPULoadOp_Clear;
|
color_attachments.loadOp = WGPULoadOp_Clear;
|
||||||
color_attachments.storeOp = WGPUStoreOp_Store;
|
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 };
|
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…
Reference in New Issue
Block a user