From 8ff0adb710e6d1002374ccecd6d871ba4c522917 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Tue, 2 Jan 2024 16:04:40 +0300 Subject: [PATCH] Fix wgpu::device::create_render_pipeline --- libs/wgpu/source/device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/wgpu/source/device.cpp b/libs/wgpu/source/device.cpp index e3406a43..e5a10347 100644 --- a/libs/wgpu/source/device.cpp +++ b/libs/wgpu/source/device.cpp @@ -175,6 +175,10 @@ namespace psemek::wgpu std::vector & fragment_constants, std::vector & color_targets) { + descriptor.nextInChain = (WGPUChainedStruct const *)detail::fill_chain(desc.chain); + descriptor.label = desc.label.data(); + descriptor.layout = (WGPUPipelineLayout)desc.layout.get(); + for (auto const & constant_in : desc.vertex.constants) { auto & constant_out = vertex_constants.emplace_back();